dash/src/consensus
PastaPastaPasta aaad47a874
refactor: use a vector instead of map for llmqs (#4658)
* refactor: use a vector instead of map for llmqs

this is a valuable refactor for a number of reasons.

it forces the removal of more verbose `Params().GetConsensus().llmqs.count` and instead call to `Params().HasLLMQ()`

`llmqs` is now stored in contiguous memory (which hopefully means better lookup time / iteration time)

std::vector is much more constexpr friendly, and normally is better optimized
Signed-off-by: Pasta <pasta@dashboost.org>

* use copy_if

Signed-off-by: Pasta <pasta@dashboost.org>

* fixes

Signed-off-by: Pasta <pasta@dashboost.org>
2022-01-10 21:36:18 +03:00
..
consensus.h Refactor the hardening of DIP 1 (#3874) 2020-12-15 15:54:51 -06:00
merkle.cpp Merge #16129: refactor: Remove unused includes (#4623) 2022-01-03 13:10:02 -06:00
merkle.h Merge #16659: refactoring: Remove unused includes 2021-12-12 16:44:54 -05:00
params.h refactor: use a vector instead of map for llmqs (#4658) 2022-01-10 21:36:18 +03:00
tx_check.cpp Merge #14696: qa: Add explicit references to related CVE's in p2p_invalid_block test. 2021-12-15 20:09:58 +05:30
tx_check.h merge bitcoin#15638: Pull wallet code out of libbitcoin_server (#4560) 2021-11-16 10:19:47 -05:00
tx_verify.cpp 16659 continuation 2021-12-17 12:02:16 -05:00
tx_verify.h merge bitcoin#15638: Pull wallet code out of libbitcoin_server (#4560) 2021-11-16 10:19:47 -05:00
validation.h Merge #10560: Remove unused constants 2019-07-08 13:50:05 -05:00