Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletmodel.cpp
Show First 20 Lines • Show All 526 Lines • ▼ Show 20 Lines | void WalletModel::UnlockContext::CopyFrom(const UnlockContext &rhs) { | ||||
rhs.relock = false; | rhs.relock = false; | ||||
} | } | ||||
bool WalletModel::getPubKey(const CKeyID &address, | bool WalletModel::getPubKey(const CKeyID &address, | ||||
CPubKey &vchPubKeyOut) const { | CPubKey &vchPubKeyOut) const { | ||||
return wallet->GetPubKey(address, vchPubKeyOut); | return wallet->GetPubKey(address, vchPubKeyOut); | ||||
} | } | ||||
bool WalletModel::havePrivKey(const CKeyID &address) const { | bool WalletModel::IsSpendable(const CTxDestination &dest) const { | ||||
return wallet->HaveKey(address); | return IsMine(*wallet, dest) & ISMINE_SPENDABLE; | ||||
} | } | ||||
bool WalletModel::getPrivKey(const CKeyID &address, CKey &vchPrivKeyOut) const { | bool WalletModel::getPrivKey(const CKeyID &address, CKey &vchPrivKeyOut) const { | ||||
return wallet->GetKey(address, vchPrivKeyOut); | return wallet->GetKey(address, vchPrivKeyOut); | ||||
} | } | ||||
// returns a list of COutputs from COutPoints | // returns a list of COutputs from COutPoints | ||||
void WalletModel::getOutputs(const std::vector<COutPoint> &vOutpoints, | void WalletModel::getOutputs(const std::vector<COutPoint> &vOutpoints, | ||||
▲ Show 20 Lines • Show All 138 Lines • Show Last 20 Lines |