LCOV - code coverage report
Current view: top level - src/node - mempool_persist_args.cpp (source / functions) Hit Total Coverage
Test: fuzz_coverage.info Lines: 3 8 37.5 %
Date: 2023-09-26 12:08:55 Functions: 3 5 60.0 %

          Line data    Source code
       1             : // Copyright (c) 2022 The Bitcoin Core developers
       2             : // Distributed under the MIT software license, see the accompanying
       3             : // file COPYING or http://www.opensource.org/licenses/mit-license.php.
       4             : 
       5             : #include <node/mempool_persist_args.h>
       6             : 
       7             : #include <common/args.h>
       8             : #include <util/fs.h>
       9             : #include <validation.h>
      10             : 
      11             : namespace node {
      12             : 
      13           0 : bool ShouldPersistMempool(const ArgsManager& argsman)
      14             : {
      15           0 :     return argsman.GetBoolArg("-persistmempool", DEFAULT_PERSIST_MEMPOOL);
      16           0 : }
      17           2 : 
      18           2 : fs::path MempoolPath(const ArgsManager& argsman)
      19             : {
      20           0 :     return argsman.GetDataDirNet() / "mempool.dat";
      21           0 : }
      22             : 
      23             : } // namespace node

Generated by: LCOV version 1.14