MCPcopy Create free account
hub / github.com/ElementsProject/elements / tryGetBalances

Method tryGetBalances

src/wallet/interfaces.cpp:394–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392 return result;
393 }
394 bool tryGetBalances(WalletBalances& balances, uint256& block_hash) override
395 {
396 TRY_LOCK(m_wallet->cs_wallet, locked_wallet);
397 if (!locked_wallet) {
398 return false;
399 }
400 block_hash = m_wallet->GetLastBlockHash();
401 balances = getBalances();
402 return true;
403 }
404 CAmountMap getBalance() override { return GetBalance(*m_wallet).m_mine_trusted; }
405 CAmountMap getAvailableBalance(const CCoinControl& coin_control) override
406 {

Callers 1

pollBalanceChangedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected