Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 1,416 Lines • ▼ Show 20 Lines | for (const CTxOut &txout : tx.vout) { | ||||
": value out of range"); | ": value out of range"); | ||||
} | } | ||||
} | } | ||||
return nChange; | return nChange; | ||||
} | } | ||||
bool CWallet::IsHDEnabled() const { | bool CWallet::IsHDEnabled() const { | ||||
// All Active ScriptPubKeyMans must be HD for this to be true | |||||
bool result = true; | bool result = true; | ||||
for (const auto &spk_man_pair : m_spk_managers) { | for (const auto &spk_man : GetActiveScriptPubKeyMans()) { | ||||
result &= spk_man_pair.second->IsHDEnabled(); | result &= spk_man->IsHDEnabled(); | ||||
} | } | ||||
return result; | return result; | ||||
} | } | ||||
bool CWallet::CanGetAddresses(bool internal) const { | bool CWallet::CanGetAddresses(bool internal) const { | ||||
LOCK(cs_wallet); | LOCK(cs_wallet); | ||||
if (m_spk_managers.empty()) { | if (m_spk_managers.empty()) { | ||||
return false; | return false; | ||||
▲ Show 20 Lines • Show All 3,505 Lines • Show Last 20 Lines |