diff options
author | stickies-v <stickies-v@protonmail.com> | 2022-11-29 17:58:36 +0000 |
---|---|---|
committer | stickies-v <stickies-v@protonmail.com> | 2022-11-29 17:58:36 +0000 |
commit | f537127271b1f22ee4651915b7b9266e0df72841 (patch) | |
tree | bed14916824cbd7be5a0ffa01a8179a63c93029c /src/consensus | |
parent | a035b6a0c418d0b720707df69559028bd662fa70 (diff) |
doc: fix: prevHeights entries are set to 0, not removed
Diffstat (limited to 'src/consensus')
-rw-r--r-- | src/consensus/tx_verify.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/consensus/tx_verify.h b/src/consensus/tx_verify.h index 1209c0faa5..d2cf792cf3 100644 --- a/src/consensus/tx_verify.h +++ b/src/consensus/tx_verify.h @@ -63,8 +63,8 @@ bool IsFinalTx(const CTransaction &tx, int nBlockHeight, int64_t nBlockTime); /** * Calculates the block height and previous block's median time past at * which the transaction will be considered final in the context of BIP 68. - * Also removes from the vector of input heights any entries which did not - * correspond to sequence locked inputs as they do not affect the calculation. + * For each input that is not sequence locked, the corresponding entries in + * prevHeights are set to 0 as they do not affect the calculation. */ std::pair<int, int64_t> CalculateSequenceLocks(const CTransaction &tx, int flags, std::vector<int>& prevHeights, const CBlockIndex& block); |