Fix 'version' message exhanging

This commit is contained in:
Ivan Kuznetsov 2017-10-03 15:47:56 +07:00
parent 3cb93b5278
commit 9de40a9385
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ func handleVersion(request []byte, bc *Blockchain) {
if myBestHeight < foreignerBestHeight { if myBestHeight < foreignerBestHeight {
sendGetBlocks(payload.AddrFrom) sendGetBlocks(payload.AddrFrom)
} else { } else if myBestHeight > foreignerBestHeight {
sendVersion(payload.AddrFrom, bc) sendVersion(payload.AddrFrom, bc)
} }