mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-04 10:07:27 -05:00
17 lines
567 B
C++
17 lines
567 B
C++
|
// Copyright (c) 2022 The Bitcoin Core developers
|
||
|
// Distributed under the MIT software license, see the accompanying
|
||
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||
|
|
||
|
#include <node/coins_view_args.h>
|
||
|
|
||
|
#include <txdb.h>
|
||
|
#include <util/system.h>
|
||
|
|
||
|
namespace node {
|
||
|
void ReadCoinsViewArgs(const ArgsManager& args, CoinsViewOptions& options)
|
||
|
{
|
||
|
if (auto value = args.GetIntArg("-dbbatchsize")) options.batch_write_bytes = *value;
|
||
|
if (auto value = args.GetIntArg("-dbcrashratio")) options.simulate_crash_ratio = *value;
|
||
|
}
|
||
|
} // namespace node
|