Browse Source
This makes it possible to mine to any wallet when multi-wallet mode is added. Solves the same problem as #10649, but IMO in a cleaner way. It also gets rid of the circuitous `ScriptForMining` method on `CValidationInterface`, which really doesn't belong there. After this change it's still possible to mine without wallet through `generatetoaddress`.0.15
Wladimir J. van der Laan
8 years ago
7 changed files with 62 additions and 44 deletions
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
// Copyright (c) 2017 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 |
||||
|
||||
#include "script/script.h" |
||||
|
||||
#include <univalue.h> |
||||
|
||||
/** Generate blocks (mine) */ |
||||
UniValue generateBlocks(std::shared_ptr<CReserveScript> coinbaseScript, int nGenerate, uint64_t nMaxTries, bool keepScript); |
||||
|
||||
#endif |
Loading…
Reference in new issue