rpc: create rpc/mining.h, hoist default max tries values to constant

This commit is contained in:
Jon Atack
2020-05-31 14:11:21 +02:00
parent 9bc7751cad
commit cb00510dba
3 changed files with 18 additions and 5 deletions

11
src/rpc/mining.h Normal file
View File

@@ -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