Page MenuHomePhabricator

DumpMempool: Pass in dump_path, stop using gArgs
ClosedPublic

Authored by PiRK on Mar 18 2024, 13:26.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC54d2d1dd8893: DumpMempool: Pass in dump_path, stop using gArgs
Summary

Also introduce node::{ShouldPersistMempool,MempoolPath} helper functions
in node/mempool_persist_args.{h,cpp} which are used by non-kernel
DumpMempool callers to determine whether or not to automatically dump
the mempool and where to dump it to.

This is a partial backport of core#25487
https://github.com/bitcoin/bitcoin/pull/25487/commits/413f4bb52b72e082ad8716664ede48352b8e7e5a

Depends on D15716

Test Plan

ninja all check-all bitcoin-fuzzers

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable