MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / getTx

Method getTx

src/interfaces/wallet.cpp:265–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263 feebumper::Result::OK;
264 }
265 CTransactionRef getTx(const uint256& txid) override
266 {
267 LOCK2(::cs_main, m_wallet.cs_wallet);
268 auto mi = m_wallet.mapWallet.find(txid);
269 if (mi != m_wallet.mapWallet.end()) {
270 return mi->second.tx;
271 }
272 return {};
273 }
274 WalletTx getWalletTx(const uint256& txid) override
275 {
276 LOCK2(::cs_main, m_wallet.cs_wallet);

Callers 1

getTxHexMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected