Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/proof.h
Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Lines | const StakeCommitment getStakeCommitment() const { | ||||
return StakeCommitment(proofid, expirationTime, master); | return StakeCommitment(proofid, expirationTime, master); | ||||
}; | }; | ||||
uint32_t getScore() const; | uint32_t getScore() const; | ||||
bool verify(ProofValidationState &state) const; | bool verify(ProofValidationState &state) const; | ||||
bool verify(ProofValidationState &state, const CCoinsView &view) const; | bool verify(ProofValidationState &state, const CCoinsView &view) const; | ||||
}; | }; | ||||
using ProofRef = std::shared_ptr<Proof>; | |||||
} // namespace avalanche | } // namespace avalanche | ||||
#endif // BITCOIN_AVALANCHE_PROOF_H | #endif // BITCOIN_AVALANCHE_PROOF_H |