MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / AddTx

Function AddTx

src/bench/wallet_loading.cpp:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28namespace wallet{
29static void AddTx(CWallet& wallet)
30{
31 CMutableTransaction mtx;
32 mtx.vout.emplace_back(COIN, GetScriptForDestination(*Assert(wallet.GetNewDestination(OutputType::BECH32, ""))));
33 mtx.vin.emplace_back();
34
35 wallet.AddToWallet(MakeTransactionRef(mtx), TxStateInactive{});
36}
37
38static void WalletLoadingDescriptors(benchmark::Bench& bench)
39{

Callers 8

MemPoolAddTransactionsFunction · 0.70
ComplexMemPoolFunction · 0.70
RpcMempoolFunction · 0.70
WalletLoadingDescriptorsFunction · 0.70
BlockEncodingBenchFunction · 0.70
MempoolEvictionFunction · 0.70

Calls 5

GetScriptForDestinationFunction · 0.85
MakeTransactionRefFunction · 0.85
AddToWalletMethod · 0.80
emplace_backMethod · 0.45
GetNewDestinationMethod · 0.45

Tested by

no test coverage detected