Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/node.cpp
Show First 20 Lines • Show All 234 Lines • ▼ Show 20 Lines | class NodeImpl : public Node { | ||||
return ::tableRPC.listCommands(); | return ::tableRPC.listCommands(); | ||||
} | } | ||||
void rpcSetTimerInterfaceIfUnset(RPCTimerInterface *iface) override { | void rpcSetTimerInterfaceIfUnset(RPCTimerInterface *iface) override { | ||||
RPCSetTimerInterfaceIfUnset(iface); | RPCSetTimerInterfaceIfUnset(iface); | ||||
} | } | ||||
void rpcUnsetTimerInterface(RPCTimerInterface *iface) override { | void rpcUnsetTimerInterface(RPCTimerInterface *iface) override { | ||||
RPCUnsetTimerInterface(iface); | RPCUnsetTimerInterface(iface); | ||||
} | } | ||||
bool getUnspentOutput(const COutPoint &output, Coin &coin) override { | |||||
LOCK(::cs_main); | |||||
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 (CWalletRef wallet : ::vpwallets) { | ||||
wallets.emplace_back(MakeWallet(*wallet)); | wallets.emplace_back(MakeWallet(*wallet)); | ||||
} | } | ||||
return wallets; | return wallets; | ||||
#else | #else | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |