forked from Qortal/qortal
No longer adding inferior chain signatures in comparePeers() as it doesn't seem 100% reliable in some cases. It's better to re-check weights on each pass.
This commit is contained in:
parent
434038fd12
commit
420b577606
@ -617,7 +617,7 @@ public class Synchronizer extends Thread {
|
|||||||
// We have already determined that the correct chain diverged from a lower height. We are safe to skip these peers.
|
// We have already determined that the correct chain diverged from a lower height. We are safe to skip these peers.
|
||||||
for (Peer peer : peersSharingCommonBlock) {
|
for (Peer peer : peersSharingCommonBlock) {
|
||||||
LOGGER.debug(String.format("Peer %s has common block at height %d but the superior chain is at height %d. Removing it from this round.", peer, commonBlockSummary.getHeight(), dropPeersAfterCommonBlockHeight));
|
LOGGER.debug(String.format("Peer %s has common block at height %d but the superior chain is at height %d. Removing it from this round.", peer, commonBlockSummary.getHeight(), dropPeersAfterCommonBlockHeight));
|
||||||
this.addInferiorChainSignature(peer.getChainTipData().getLastBlockSignature());
|
//this.addInferiorChainSignature(peer.getChainTipData().getLastBlockSignature());
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user