diff --git a/pkg/network/tcp_peer.go b/pkg/network/tcp_peer.go index 8c56f9d45..2c408b22d 100644 --- a/pkg/network/tcp_peer.go +++ b/pkg/network/tcp_peer.go @@ -207,7 +207,7 @@ func (p *TCPPeer) StartProtocol() { // Try to sync in headers and block with the peer if his block height is higher then ours. if p.LastBlockIndex() > p.server.chain.BlockHeight() { err = p.server.requestBlocks(p) - } else if p.server.chain.HeaderHeight() >= p.LastBlockIndex() { + } else { block, errGetBlock := p.server.chain.GetBlock(p.server.chain.CurrentBlockHash()) if errGetBlock != nil { err = errGetBlock