diff options
| author | Jonas Schnelli <[email protected]> | 2015-04-10 12:49:01 +0200 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2015-06-30 21:45:46 +0200 |
| commit | d0fc10a8444484fabc3702e081ec77473c6c41d2 (patch) | |
| tree | 0ffc49fc02777804ac6b48480a3fe88b39d81586 /src/wallet/wallet.cpp | |
| parent | Merge pull request #6354 (diff) | |
| download | discoin-d0fc10a8444484fabc3702e081ec77473c6c41d2.tar.xz discoin-d0fc10a8444484fabc3702e081ec77473c6c41d2.zip | |
detach wallet from miner
Diffstat (limited to 'src/wallet/wallet.cpp')
| -rw-r--r-- | src/wallet/wallet.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index eee57900b..440459fde 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2583,6 +2583,17 @@ void CWallet::UpdatedTransaction(const uint256 &hashTx) } } +void CWallet::GetScriptForMining(CScript &script) +{ + CReserveKey reservekey(this); + reservekey.KeepKey(); + + CPubKey pubkey; + if (!reservekey.GetReservedKey(pubkey)) + return; + script = CScript() << ToByteVector(pubkey) << OP_CHECKSIG; +} + void CWallet::LockCoin(COutPoint& output) { AssertLockHeld(cs_wallet); // setLockedCoins |