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

Method getTx

src/wallet/interfaces.cpp:306–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304 feebumper::Result::OK;
305 }
306 CTransactionRef getTx(const uint256& txid) override
307 {
308 LOCK(m_wallet->cs_wallet);
309 auto mi = m_wallet->mapWallet.find(txid);
310 if (mi != m_wallet->mapWallet.end()) {
311 return mi->second.tx;
312 }
313 return {};
314 }
315 WalletTx getWalletTx(const uint256& txid) override
316 {
317 LOCK(m_wallet->cs_wallet);

Callers 1

getTxHexMethod · 0.80

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected