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