Changeset View
Changeset View
Standalone View
Standalone View
src/script/interpreter.h
Show First 20 Lines • Show All 160 Lines • ▼ Show 20 Lines | TransactionSignatureChecker(const CTransaction *txToIn, unsigned int nInIn, | ||||
const Amount amountIn) | const Amount amountIn) | ||||
: txTo(txToIn), nIn(nInIn), amount(amountIn), txdata(nullptr) {} | : txTo(txToIn), nIn(nInIn), amount(amountIn), txdata(nullptr) {} | ||||
TransactionSignatureChecker(const CTransaction *txToIn, unsigned int nInIn, | TransactionSignatureChecker(const CTransaction *txToIn, unsigned int nInIn, | ||||
const Amount amountIn, | const Amount amountIn, | ||||
const PrecomputedTransactionData &txdataIn) | const PrecomputedTransactionData &txdataIn) | ||||
: txTo(txToIn), nIn(nInIn), amount(amountIn), txdata(&txdataIn) {} | : txTo(txToIn), nIn(nInIn), amount(amountIn), txdata(&txdataIn) {} | ||||
bool CheckSig(const std::vector<uint8_t> &scriptSig, | bool CheckSig(const std::vector<uint8_t> &scriptSig, | ||||
const std::vector<uint8_t> &vchPubKey, | const std::vector<uint8_t> &vchPubKey, | ||||
const CScript &scriptCode, uint32_t flags) const; | const CScript &scriptCode, uint32_t flags) const override; | ||||
bool CheckLockTime(const CScriptNum &nLockTime) const; | bool CheckLockTime(const CScriptNum &nLockTime) const override; | ||||
bool CheckSequence(const CScriptNum &nSequence) const; | bool CheckSequence(const CScriptNum &nSequence) const override; | ||||
}; | }; | ||||
class MutableTransactionSignatureChecker : public TransactionSignatureChecker { | class MutableTransactionSignatureChecker : public TransactionSignatureChecker { | ||||
private: | private: | ||||
const CTransaction txTo; | const CTransaction txTo; | ||||
public: | public: | ||||
MutableTransactionSignatureChecker(const CMutableTransaction *txToIn, | MutableTransactionSignatureChecker(const CMutableTransaction *txToIn, | ||||
Show All 12 Lines |