5#ifndef BITCOIN_AVALANCHE_TEST_UTIL_H
6#define BITCOIN_AVALANCHE_TEST_UTIL_H
static constexpr Amount COIN
An encapsulated secp256k1 private key.
static CKey MakeCompressedKey()
Produce a valid compressed key.
Serialized script, used inside transaction inputs and outputs.
Chainstate stores and provides an API to update our local knowledge of the current best chain.
static constexpr Amount PROOF_DUST_THRESHOLD
Minimum amount per utxo.
const CScript UNSPENDABLE_ECREG_PAYOUT_SCRIPT
ProofRef buildRandomProof(Chainstate &active_chainstate, uint32_t score, int height, const CKey &masterKey)
constexpr uint32_t MIN_VALID_PROOF_SCORE
bool hasDustStake(const ProofRef &proof)
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
static ProofRef buildWithReversedOrderStakes(ProofBuilder &pb)
static ProofRef buildDuplicatedStakes(ProofBuilder &pb)
static LimitedProofId getReverseOrderLimitedProofId(ProofBuilder &pb)
static LimitedProofId getDuplicatedStakeLimitedProofId(ProofBuilder &pb)