diff --git a/src/avalanche/peermanager.cpp b/src/avalanche/peermanager.cpp --- a/src/avalanche/peermanager.cpp +++ b/src/avalanche/peermanager.cpp @@ -258,7 +258,8 @@ if (gArgs.GetBoolArg( "-enableavalancheproofreplacement", AVALANCHE_DEFAULT_PROOF_REPLACEMENT_ENABLED)) { - if (validProofPool.addProofIfPreferred(proof)) { + if (validProofPool.addProofIfPreferred(proof) == + ProofPool::AddProofStatus::SUCCEED) { // If we have overridden other proofs due to conflict, // remove the peers and attempt to move them to the // conflicting pool.