Skip to content

Commit f537127

Browse files
committed
doc: fix: prevHeights entries are set to 0, not removed
1 parent a035b6a commit f537127

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/consensus/tx_verify.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ bool IsFinalTx(const CTransaction &tx, int nBlockHeight, int64_t nBlockTime);
6363
/**
6464
* Calculates the block height and previous block's median time past at
6565
* which the transaction will be considered final in the context of BIP 68.
66-
* Also removes from the vector of input heights any entries which did not
67-
* correspond to sequence locked inputs as they do not affect the calculation.
66+
* For each input that is not sequence locked, the corresponding entries in
67+
* prevHeights are set to 0 as they do not affect the calculation.
6868
*/
6969
std::pair<int, int64_t> CalculateSequenceLocks(const CTransaction &tx, int flags, std::vector<int>& prevHeights, const CBlockIndex& block);
7070

0 commit comments

Comments
 (0)