doc: fix: prevHeights entries are set to 0, not removed
This commit is contained in:
1 file changed
+2
-2
@@ -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
|
* 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.
|
* 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
|
* For each input that is not sequence locked, the corresponding entries in
|
||||||
* correspond to sequence locked inputs as they do not affect the calculation.
|
* 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);
|
std::pair<int, int64_t> CalculateSequenceLocks(const CTransaction &tx, int flags, std::vector<int>& prevHeights, const CBlockIndex& block);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user