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