aboutsummaryrefslogtreecommitdiff
path: root/src/consensus/tx_verify.h
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2020-05-26 16:05:51 +0200
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2020-05-26 16:05:51 +0200
commitb00266fe0cf05fe6044f471105ce2bfed4349626 (patch)
treeeaac08898e9a0b07a4cc4f3ce50bf7884ed65c26 /src/consensus/tx_verify.h
parentfe1357a03af108c41baa6bd31903f2cfb0d75ef5 (diff)
refactor: replace pointers by references within tx_verify.{h,cpp}
affects "prevHeights" parameter of the functions - CalculateSequenceLocks() - SequenceLocks()
Diffstat (limited to 'src/consensus/tx_verify.h')
-rw-r--r--src/consensus/tx_verify.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/consensus/tx_verify.h b/src/consensus/tx_verify.h
index ffcaf3cab1..e2a9328df8 100644
--- a/src/consensus/tx_verify.h
+++ b/src/consensus/tx_verify.h
@@ -66,13 +66,13 @@ bool IsFinalTx(const CTransaction &tx, int nBlockHeight, int64_t nBlockTime);
* 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.
*/
-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);
bool EvaluateSequenceLocks(const CBlockIndex& block, std::pair<int, int64_t> lockPair);
/**
* Check if transaction is final per BIP 68 sequence numbers and can be included in a block.
* Consensus critical. Takes as input a list of heights at which tx's inputs (in order) confirmed.
*/
-bool SequenceLocks(const CTransaction &tx, int flags, std::vector<int>* prevHeights, const CBlockIndex& block);
+bool SequenceLocks(const CTransaction &tx, int flags, std::vector<int>& prevHeights, const CBlockIndex& block);
#endif // BITCOIN_CONSENSUS_TX_VERIFY_H