diff --git a/src/avalanche/proofbuilder.h b/src/avalanche/proofbuilder.h --- a/src/avalanche/proofbuilder.h +++ b/src/avalanche/proofbuilder.h @@ -39,12 +39,6 @@ Proof build(); - /** - * Builds a randomized (and therefore invalid) Proof. - * Useful for tests. - */ - static Proof buildRandom(uint32_t score); - private: ProofId getProofId() const; }; diff --git a/src/avalanche/proofbuilder.cpp b/src/avalanche/proofbuilder.cpp --- a/src/avalanche/proofbuilder.cpp +++ b/src/avalanche/proofbuilder.cpp @@ -63,11 +63,4 @@ return ProofId(ss2.GetHash()); } -Proof ProofBuilder::buildRandom(uint32_t score) { - ProofBuilder pb(0, std::numeric_limits::max(), CPubKey()); - pb.addUTXO(COutPoint(TxId(GetRandHash()), 0), (int64_t(score) * COIN) / 100, - 0, false, CKey::MakeCompressedKey()); - return pb.build(); -} - } // namespace avalanche