Changeset View
Changeset View
Standalone View
Standalone View
src/script/sighashtype.h
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | bool hasAnyoneCanPay() const { | ||||
return (sigHash & SIGHASH_ANYONECANPAY) != 0; | return (sigHash & SIGHASH_ANYONECANPAY) != 0; | ||||
} | } | ||||
uint32_t getRawSigHashType() const { return sigHash; } | uint32_t getRawSigHashType() const { return sigHash; } | ||||
template <typename Stream> void Serialize(Stream &s) const { | template <typename Stream> void Serialize(Stream &s) const { | ||||
::Serialize(s, getRawSigHashType()); | ::Serialize(s, getRawSigHashType()); | ||||
} | } | ||||
template <typename Stream> void Unserialize(Stream &s) { | |||||
::Unserialize(s, sigHash); | |||||
} | |||||
}; | }; | ||||
#endif // BITCOIN_SCRIPT_SIGHASHTYPE_H | #endif // BITCOIN_SCRIPT_SIGHASHTYPE_H |