We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bacd8c2 commit 7fe685fCopy full SHA for 7fe685f
framework/src/main/java/org/tron/core/net/service/sync/SyncService.java
@@ -169,7 +169,7 @@ private LinkedList<BlockId> getBlockChainSummary(PeerConnection peer) throws P2p
169
if (beginBlockId.getNum() == 0) {
170
highNoFork = high = tronNetDelegate.getHeadBlockId().getNum();
171
} else {
172
- if (tronNetDelegate.getKhaosDbHeadBlockId().compareTo(beginBlockId) == 0
+ if (tronNetDelegate.getKhaosDbHeadBlockId().equals(beginBlockId)
173
|| tronNetDelegate.containBlockInMainChain(beginBlockId)) {
174
highNoFork = high = beginBlockId.getNum();
175
0 commit comments