Skip to content

Commit c7268c4

Browse files
committed
fix(net): fix the bug that fails to generate SyncBlockChain
1 parent 0a145f4 commit c7268c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

framework/src/main/java/org/tron/core/net/messagehandler/ChainInventoryMsgHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void processMessage(PeerConnection peer, TronMessage msg) throws P2pExcep
7272
try {
7373
BlockId blockId = null;
7474
while (!peer.getSyncBlockToFetch().isEmpty() && tronNetDelegate
75-
.containBlock(peer.getSyncBlockToFetch().peek())) {
75+
.containBlockInMainChain(peer.getSyncBlockToFetch().peek())) {
7676
blockId = peer.getSyncBlockToFetch().pop();
7777
peer.setBlockBothHave(blockId);
7878
}

0 commit comments

Comments
 (0)