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

Method transactionAddedToMempool

src/wallet/wallet.cpp:1280–1288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1278}
1279
1280void CWallet::transactionAddedToMempool(const CTransactionRef& tx, uint64_t mempool_sequence) {
1281 LOCK(cs_wallet);
1282 SyncTransaction(tx, TxStateInMempool{});
1283
1284 auto it = mapWallet.find(tx->GetHash());
1285 if (it != mapWallet.end()) {
1286 RefreshMempoolStatus(it->second, chain());
1287 }
1288}
1289
1290void CWallet::transactionRemovedFromMempool(const CTransactionRef& tx, MemPoolRemovalReason reason, uint64_t mempool_sequence) {
1291 LOCK(cs_wallet);

Callers 2

Calls 4

RefreshMempoolStatusFunction · 0.85
findMethod · 0.80
GetHashMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected