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

Method GetWalletTx

src/wallet/wallet.cpp:420–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418 */
419
420const CWalletTx* CWallet::GetWalletTx(const uint256& hash) const
421{
422 AssertLockHeld(cs_wallet);
423 std::map<uint256, CWalletTx>::const_iterator it = mapWallet.find(hash);
424 if (it == mapWallet.end())
425 return nullptr;
426 return &(it->second);
427}
428
429void CWallet::UpgradeKeyMetadata()
430{

Callers 3

TransactionCanBeBumpedFunction · 0.80
CachedTxIsTrustedFunction · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by 1

BOOST_FIXTURE_TEST_CASEFunction · 0.64