mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 05:23:01 +01:00
a9f50ea944
b00266fe0cf05fe6044f471105ce2bfed4349626 refactor: replace pointers by references within tx_verify.{h,cpp} (Sebastian Falbesoner) Pull request description: This PR gets rid of another unnecessary use of raw pointers, similar to PR #19053 (see also issue #19062 where useful commands for finding potential candidates are listed) but in the tx verification module. For the functions `CalculateSequenceLocks()` and `SequenceLocks()`, the `prevHeights` vector parameter type is changed to be passed as a reference. Note that there were no checks for null pointers -- if one would pass `nullptr` to one of the functions, the following line would immediately lead to a crash: |
||
---|---|---|
.. | ||
consensus.h | ||
merkle.cpp | ||
merkle.h | ||
params.h | ||
tx_check.cpp | ||
tx_check.h | ||
tx_verify.cpp | ||
tx_verify.h | ||
validation.h |