Write down the folklore about nSequence

This commit is contained in:
Kris Nuttycombe 2020-12-07 14:50:55 -07:00
parent 877212414a
commit 2e9bdc6789
1 changed files with 3 additions and 1 deletions

View File

@ -359,7 +359,7 @@ class SaplingOutPoint : public BaseOutPoint
{
public:
SaplingOutPoint() : BaseOutPoint() {};
SaplingOutPoint(uint256 hashIn, uint32_t nIn) : BaseOutPoint(hashIn, nIn) {};
SaplingOutPoint(uint256 hashIn, uint32_t nIn) : BaseOutPoint(hashIn, nIn) {};
std::string ToString() const;
};
@ -372,6 +372,8 @@ class CTxIn
public:
COutPoint prevout;
CScript scriptSig;
// The only use of nSequence (via IsFinal) is in TransactionSignatureChecker::CheckLockTime
// It disables the nLockTime feature when set to maxint.
uint32_t nSequence;
CTxIn()