diff options
author | Jon Atack <jon@atack.com> | 2020-05-31 14:11:21 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2020-06-01 15:08:36 +0200 |
commit | cb00510dbac99b44f3f2cf6e58bb2e4401c5ef28 (patch) | |
tree | 468a63e35829f1ee4499edb2cf25c64eaa1c9495 /src/rpc/mining.h | |
parent | 9bc7751cadbd038faf8ac1d62cda23fcf00d4cc2 (diff) | |
download | bitcoin-cb00510dbac99b44f3f2cf6e58bb2e4401c5ef28.tar.xz |
rpc: create rpc/mining.h, hoist default max tries values to constant
Diffstat (limited to 'src/rpc/mining.h')
-rw-r--r-- | src/rpc/mining.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/rpc/mining.h b/src/rpc/mining.h new file mode 100644 index 0000000000..acc74e1dcc --- /dev/null +++ b/src/rpc/mining.h @@ -0,0 +1,11 @@ +// Copyright (c) 2020 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#ifndef BITCOIN_RPC_MINING_H +#define BITCOIN_RPC_MINING_H + +/** Default max iterations to try in RPC generatetodescriptor, generatetoaddress, and generateblock. */ +static const uint64_t DEFAULT_MAX_TRIES{1000000}; + +#endif // BITCOIN_RPC_MINING_H |