Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 3,697 Lines • ▼ Show 20 Lines | void CWallet::UpdatedTransaction(const uint256 &hashTx) { | ||||
LOCK(cs_wallet); | LOCK(cs_wallet); | ||||
// Only notify UI if this transaction is in this wallet. | // Only notify UI if this transaction is in this wallet. | ||||
std::map<uint256, CWalletTx>::const_iterator mi = mapWallet.find(hashTx); | std::map<uint256, CWalletTx>::const_iterator mi = mapWallet.find(hashTx); | ||||
if (mi != mapWallet.end()) { | if (mi != mapWallet.end()) { | ||||
NotifyTransactionChanged(this, hashTx, CT_UPDATED); | NotifyTransactionChanged(this, hashTx, CT_UPDATED); | ||||
} | } | ||||
} | } | ||||
void CWallet::GetScriptForMining(boost::shared_ptr<CReserveScript> &script) { | void CWallet::GetScriptForMining(std::shared_ptr<CReserveScript> &script) { | ||||
boost::shared_ptr<CReserveKey> rKey(new CReserveKey(this)); | std::shared_ptr<CReserveKey> rKey(new CReserveKey(this)); | ||||
CPubKey pubkey; | CPubKey pubkey; | ||||
if (!rKey->GetReservedKey(pubkey)) { | if (!rKey->GetReservedKey(pubkey)) { | ||||
return; | return; | ||||
} | } | ||||
script = rKey; | script = rKey; | ||||
script->reserveScript = CScript() << ToByteVector(pubkey) << OP_CHECKSIG; | script->reserveScript = CScript() << ToByteVector(pubkey) << OP_CHECKSIG; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 768 Lines • Show Last 20 Lines |