Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/test/util.cpp
Show All 13 Lines | |||||
namespace avalanche { | namespace avalanche { | ||||
Proof buildRandomProof(uint32_t score) { | Proof buildRandomProof(uint32_t score) { | ||||
CKey key; | CKey key; | ||||
key.MakeNewKey(true); | key.MakeNewKey(true); | ||||
ProofBuilder pb(0, std::numeric_limits<uint32_t>::max(), CPubKey()); | ProofBuilder pb(0, std::numeric_limits<uint32_t>::max(), CPubKey()); | ||||
pb.addUTXO(COutPoint(TxId(GetRandHash()), 0), (int64_t(score) * COIN) / 100, | pb.addUTXO(COutPoint(TxId(GetRandHash()), 0), (int64_t(score) * COIN) / 100, | ||||
0, std::move(key)); | 0, false, std::move(key)); | ||||
return pb.build(); | return pb.build(); | ||||
} | } | ||||
} // namespace avalanche | } // namespace avalanche |