Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/node.cpp
Show First 20 Lines • Show All 229 Lines • ▼ Show 20 Lines | class NodeImpl : public Node { | ||||
} | } | ||||
bool getUnspentOutput(const COutPoint &output, Coin &coin) override { | bool getUnspentOutput(const COutPoint &output, Coin &coin) override { | ||||
LOCK(::cs_main); | LOCK(::cs_main); | ||||
return ::pcoinsTip->GetCoin(output, coin); | return ::pcoinsTip->GetCoin(output, coin); | ||||
} | } | ||||
std::vector<std::unique_ptr<Wallet>> getWallets() override { | std::vector<std::unique_ptr<Wallet>> getWallets() override { | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
std::vector<std::unique_ptr<Wallet>> wallets; | std::vector<std::unique_ptr<Wallet>> wallets; | ||||
for (CWalletRef wallet : ::vpwallets) { | for (CWallet *wallet : ::vpwallets) { | ||||
wallets.emplace_back(MakeWallet(*wallet)); | wallets.emplace_back(MakeWallet(*wallet)); | ||||
} | } | ||||
return wallets; | return wallets; | ||||
#else | #else | ||||
throw std::logic_error( | throw std::logic_error( | ||||
"Node::getWallets() called in non-wallet build."); | "Node::getWallets() called in non-wallet build."); | ||||
#endif | #endif | ||||
} | } | ||||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |