bitcoin/src/kernel
Carl Dong 6c5c60c412 mempool: Use m_limit for UpdateTransactionsFromBlock
Since:

- UpdateTransactionsFromBlock is only called by
  MaybeUpdateMempoolForReorg, which calls it with the gArgs-determined
  ancestor limits
- UpdateForDescendants is only called by UpdateTransactionsFromBlock
  with the ancestor limits unchanged

We can remove the requirement to specify the ancestor limits for both
UpdateTransactionsFromBlock and UpdateForDescendants and just use the
values in the m_limits member.

Also move some removed comments to MemPoolLimits struct members.

The uint64_t cast in UpdateForDescendants is not new behavior,
see the diff in CChainState::MaybeUpdateMempoolForReorg for where they
were previously.
2022-06-28 15:49:15 -04:00
..
bitcoinkernel.cpp
chainstatemanager_opts.h Add ChainstateManager::m_adjusted_time_callback 2022-05-20 11:57:51 -04:00
checks.cpp kernel: SanityChecks: Return an error struct 2022-06-02 12:22:46 -04:00
checks.h kernel: SanityChecks: Return an error struct 2022-06-02 12:22:46 -04:00
coinstats.cpp scripted-diff: Move src/kernel/coinstats to kernel:: 2022-05-23 14:53:35 -04:00
coinstats.h scripted-diff: Move src/kernel/coinstats to kernel:: 2022-05-23 14:53:35 -04:00
context.cpp init: Initialize globals with kernel::Context's life 2022-06-02 11:40:03 -04:00
context.h doc: fix typo in kernel/context.h 2022-06-08 10:03:43 -03:00
mempool_limits.h mempool: Use m_limit for UpdateTransactionsFromBlock 2022-06-28 15:49:15 -04:00
mempool_options.h mempool: Introduce (still-unused) MemPoolLimits 2022-06-28 15:46:10 -04:00