Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 4,376 Lines • ▼ Show 20 Lines | while (it != std::end(*setKeyPool)) { | ||||
} | } | ||||
LearnAllRelatedScripts(keypool.vchPubKey); | LearnAllRelatedScripts(keypool.vchPubKey); | ||||
batch.ErasePool(index); | batch.ErasePool(index); | ||||
WalletLogPrintf("keypool index %d removed\n", index); | WalletLogPrintf("keypool index %d removed\n", index); | ||||
it = setKeyPool->erase(it); | it = setKeyPool->erase(it); | ||||
} | } | ||||
} | } | ||||
void CWallet::GetScriptForMining(std::shared_ptr<CReserveScript> &script) { | |||||
std::shared_ptr<CReserveKey> rKey = std::make_shared<CReserveKey>(this); | |||||
CPubKey pubkey; | |||||
if (!rKey->GetReservedKey(pubkey)) { | |||||
return; | |||||
} | |||||
script = rKey; | |||||
script->reserveScript = CScript() << ToByteVector(pubkey) << OP_CHECKSIG; | |||||
} | |||||
void CWallet::LockCoin(const COutPoint &output) { | void CWallet::LockCoin(const COutPoint &output) { | ||||
// setLockedCoins | // setLockedCoins | ||||
AssertLockHeld(cs_wallet); | AssertLockHeld(cs_wallet); | ||||
setLockedCoins.insert(output); | setLockedCoins.insert(output); | ||||
} | } | ||||
void CWallet::UnlockCoin(const COutPoint &output) { | void CWallet::UnlockCoin(const COutPoint &output) { | ||||
// setLockedCoins | // setLockedCoins | ||||
▲ Show 20 Lines • Show All 1,047 Lines • Show Last 20 Lines |