diff options
author | chinggg <24590067+chinggg@users.noreply.github.com> | 2022-07-23 20:51:07 +0800 |
---|---|---|
committer | chinggg <24590067+chinggg@users.noreply.github.com> | 2022-07-28 14:39:45 +0800 |
commit | b4b657ba57a2ce31b3c21ea9245aad26d5b06a57 (patch) | |
tree | 8fb1b9db0e88fda2087ed13b34450ac22bce6565 /src/txorphanage.h | |
parent | 194f6dc43ccc330a8a4607be3a2b8935490d6db0 (diff) |
refactor: log `nEvicted` message in `LimitOrphans` then return void
`LimitOrphans()` can log expired tx and it should log evicted tx as well
instead of returning the number for caller to print the message.
Since `LimitOrphans()` now return void, the redundant assertion check in
fuzz test is also removed.
Diffstat (limited to 'src/txorphanage.h')
-rw-r--r-- | src/txorphanage.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txorphanage.h b/src/txorphanage.h index 24c8318f36..9363e6f733 100644 --- a/src/txorphanage.h +++ b/src/txorphanage.h @@ -41,7 +41,7 @@ public: void EraseForBlock(const CBlock& block) LOCKS_EXCLUDED(::g_cs_orphans); /** Limit the orphanage to the given maximum */ - unsigned int LimitOrphans(unsigned int max_orphans) EXCLUSIVE_LOCKS_REQUIRED(g_cs_orphans); + void LimitOrphans(unsigned int max_orphans) EXCLUSIVE_LOCKS_REQUIRED(g_cs_orphans); /** Add any orphans that list a particular tx as a parent into a peer's work set * (ie orphans that may have found their final missing parent, and so should be reconsidered for the mempool) */ |