diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-06-27 16:50:44 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-06-29 12:02:43 +0200 |
commit | df7e2f057b6c9f0f7c950f9077dc63a577f54117 (patch) | |
tree | 15eb622e97f335d74ceebc2583dbcd0ca5ffa4fe /src/wallet/wallet.h | |
parent | ac52492cd22782d7b09c78c198fb6fd8eb1da57c (diff) | |
download | bitcoin-df7e2f057b6c9f0f7c950f9077dc63a577f54117.tar.xz |
rpc: Move the `generate` RPC call to rpcwallet
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`.
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r-- | src/wallet/wallet.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 6ed955cf58..2af61b1aa5 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -1025,7 +1025,7 @@ public: } } - void GetScriptForMining(std::shared_ptr<CReserveScript> &script) override; + void GetScriptForMining(std::shared_ptr<CReserveScript> &script); unsigned int GetKeyPoolSize() { |