Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/test/util.h
Show All 16 Lines | |||||
ProofRef buildRandomProof(uint32_t score, | ProofRef buildRandomProof(uint32_t score, | ||||
const CKey &masterKey = CKey::MakeCompressedKey()); | const CKey &masterKey = CKey::MakeCompressedKey()); | ||||
bool hasDustStake(const ProofRef &proof); | bool hasDustStake(const ProofRef &proof); | ||||
struct TestProofBuilder { | struct TestProofBuilder { | ||||
static ProofId getReverseOrderProofId(ProofBuilder &pb); | static ProofId getReverseOrderProofId(ProofBuilder &pb); | ||||
static Proof buildWithReversedOrderStakes(ProofBuilder &pb); | static ProofRef buildWithReversedOrderStakes(ProofBuilder &pb); | ||||
static ProofId getDuplicatedStakeProofId(ProofBuilder &pb); | static ProofId getDuplicatedStakeProofId(ProofBuilder &pb); | ||||
static Proof buildDuplicatedStakes(ProofBuilder &pb); | static ProofRef buildDuplicatedStakes(ProofBuilder &pb); | ||||
}; | }; | ||||
} // namespace avalanche | } // namespace avalanche | ||||
#endif // BITCOIN_AVALANCHE_TEST_UTIL_H | #endif // BITCOIN_AVALANCHE_TEST_UTIL_H |