| 220 | return ::pcoinsTip->GetCoin(output, coin); |
| 221 | } |
| 222 | std::vector<std::unique_ptr<Wallet>> getWallets() override |
| 223 | { |
| 224 | #ifdef ENABLE_WALLET |
| 225 | std::vector<std::unique_ptr<Wallet>> wallets; |
| 226 | for (const std::shared_ptr<CWallet>& wallet : GetWallets()) { |
| 227 | wallets.emplace_back(MakeWallet(wallet)); |
| 228 | } |
| 229 | return wallets; |
| 230 | #else |
| 231 | throw std::logic_error("Node::getWallets() called in non-wallet build."); |
| 232 | #endif |
| 233 | } |
| 234 | std::unique_ptr<Handler> handleInitMessage(InitMessageFn fn) override |
| 235 | { |
| 236 | return MakeHandler(::uiInterface.InitMessage.connect(fn)); |