Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/proofbuilder.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | ProofBuilder(uint64_t sequence_, int64_t expirationTime_, CKey masterKey_, | ||||
const CScript &payoutScriptPubKey_ = CScript()) | const CScript &payoutScriptPubKey_ = CScript()) | ||||
: sequence(sequence_), expirationTime(expirationTime_), | : sequence(sequence_), expirationTime(expirationTime_), | ||||
masterKey(std::move(masterKey_)), | masterKey(std::move(masterKey_)), | ||||
payoutScriptPubKey(payoutScriptPubKey_) {} | payoutScriptPubKey(payoutScriptPubKey_) {} | ||||
[[nodiscard]] bool addUTXO(COutPoint utxo, Amount amount, uint32_t height, | [[nodiscard]] bool addUTXO(COutPoint utxo, Amount amount, uint32_t height, | ||||
bool is_coinbase, CKey key); | bool is_coinbase, CKey key); | ||||
Proof build(); | ProofRef build(); | ||||
private: | private: | ||||
LimitedProofId getLimitedProofId() const; | LimitedProofId getLimitedProofId() const; | ||||
ProofId getProofId() const; | ProofId getProofId() const; | ||||
friend struct TestProofBuilder; | friend struct TestProofBuilder; | ||||
}; | }; | ||||
} // namespace avalanche | } // namespace avalanche | ||||
#endif // BITCOIN_AVALANCHE_PROOFBUILDER_H | #endif // BITCOIN_AVALANCHE_PROOFBUILDER_H |