forked from Qortal/qortal
Revert "Keep existing findCommonBlocksWithPeers() and comparePeers() behaviour prior to consensus switchover, to reduce the number of variables."
This reverts commit fecfac5ad9
.
This commit is contained in:
parent
5a4674c973
commit
b85afe3ca7
@ -241,12 +241,12 @@ public class Synchronizer extends Thread {
|
||||
|
||||
final int peersBeforeComparison = peers.size();
|
||||
|
||||
if (!isNewConsensusActive) {
|
||||
if (isNewConsensusActive) {
|
||||
// Request recent block summaries from the remaining peers, and locate our common block with each
|
||||
Synchronizer.getInstance().findCommonBlocksWithPeers(peers);
|
||||
// Synchronizer.getInstance().findCommonBlocksWithPeers(peers);
|
||||
|
||||
// Compare the peers against each other, and against our chain, which will return an updated list excluding those without common blocks
|
||||
peers = Synchronizer.getInstance().comparePeers(peers);
|
||||
// peers = Synchronizer.getInstance().comparePeers(peers);
|
||||
}
|
||||
|
||||
// We may have added more inferior chain tips when comparing peers, so remove any peers that are currently on those chains
|
||||
|
Loading…
Reference in New Issue
Block a user