Raven Core  3.0.0
P2P Digital Currency
mining.h
Go to the documentation of this file.
1 // Copyright (c) 2017 The Bitcoin Core developers
2 // Copyright (c) 2017-2019 The Raven Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef RAVEN_RPC_MINING_H
7 #define RAVEN_RPC_MINING_H
8 
9 #include "script/script.h"
10 
11 #include <univalue.h>
12 
13 static const bool DEFAULT_GENERATE = false;
14 static const int DEFAULT_GENERATE_THREADS = 1;
15 
17 UniValue generateBlocks(std::shared_ptr<CReserveScript> coinbaseScript, int nGenerate, uint64_t nMaxTries, bool keepScript);
18 
19 UniValue getgenerate(const UniValue& params, bool fHelp);
20 
22 unsigned int ParseConfirmTarget(const UniValue& value);
23 
24 #endif
UniValue getgenerate(const UniValue &params, bool fHelp)
unsigned int ParseConfirmTarget(const UniValue &value)
Check bounds on a command line confirm target.
Definition: mining.cpp:37
UniValue generateBlocks(std::shared_ptr< CReserveScript > coinbaseScript, int nGenerate, uint64_t nMaxTries, bool keepScript)
Generate blocks (mine)
Definition: mining.cpp:111