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 de45672 commit b4876e7Copy full SHA for b4876e7
framework/src/main/java/org/tron/core/net/service/sync/SyncService.java
@@ -210,7 +210,9 @@ private LinkedList<BlockId> getBlockChainSummary(PeerConnection peer) throws P2p
210
211
private BlockId getBlockIdByNum(long num) throws P2pException {
212
BlockId head = tronNetDelegate.getHeadBlockId();
213
- if (num == head.getNum()) {
+ if (num > head.getNum()) {
214
+ return tronNetDelegate.getKhaosDbHeadBlockId();
215
+ } else if (num == head.getNum()) {
216
return head;
217
}
218
return tronNetDelegate.getBlockIdByNum(num);
0 commit comments