Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/mining.h
// Copyright (c) 2017 The Bitcoin Core developers | // Copyright (c) 2017 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_RPC_MINING_H | #ifndef BITCOIN_RPC_MINING_H | ||||
#define BITCOIN_RPC_MINING_H | #define BITCOIN_RPC_MINING_H | ||||
#include "script/script.h" | #include <script/script.h> | ||||
#include <univalue.h> | #include <univalue.h> | ||||
#include <memory> | #include <memory> | ||||
class Config; | class Config; | ||||
/** Generate blocks (mine) */ | /** Generate blocks (mine) */ | ||||
UniValue generateBlocks(const Config &config, | UniValue generateBlocks(const Config &config, | ||||
std::shared_ptr<CReserveScript> coinbaseScript, | std::shared_ptr<CReserveScript> coinbaseScript, | ||||
int nGenerate, uint64_t nMaxTries, bool keepScript); | int nGenerate, uint64_t nMaxTries, bool keepScript); | ||||
#endif | #endif |