Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/proofbuilder.h
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | ProofBuilder(uint64_t sequence_, int64_t expirationTime_, CKey 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(); | Proof build(); | ||||
private: | private: | ||||
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 |