@@ -1222,7 +1222,13 @@ bool MemPoolAccept::SubmitPackage(const ATMPArgs& args, std::vector<Workspace>&
12221222 results.emplace (ws.m_ptx ->GetWitnessHash (),
12231223 MempoolAcceptResult::Success (std::move (ws.m_replaced_transactions ), ws.m_vsize ,
12241224 ws.m_base_fees , effective_feerate, effective_feerate_wtxids));
1225- GetMainSignals ().TransactionAddedToMempool (ws.m_ptx , m_pool.GetAndIncrementSequence ());
1225+ const CTransaction& tx = *ws.m_ptx ;
1226+ const auto tx_info = NewMempoolTransactionInfo (ws.m_ptx , ws.m_base_fees ,
1227+ ws.m_vsize , ws.m_entry ->GetHeight (),
1228+ args.m_bypass_limits , args.m_package_submission ,
1229+ IsCurrentForFeeEstimation (m_active_chainstate),
1230+ m_pool.HasNoInputsOf (tx));
1231+ GetMainSignals ().TransactionAddedToMempool (tx_info, m_pool.GetAndIncrementSequence ());
12261232 }
12271233 return all_submitted;
12281234}
@@ -1265,7 +1271,13 @@ MempoolAcceptResult MemPoolAccept::AcceptSingleTransaction(const CTransactionRef
12651271 return MempoolAcceptResult::FeeFailure (ws.m_state , CFeeRate (ws.m_modified_fees , ws.m_vsize ), {ws.m_ptx ->GetWitnessHash ()});
12661272 }
12671273
1268- GetMainSignals ().TransactionAddedToMempool (ptx, m_pool.GetAndIncrementSequence ());
1274+ const CTransaction& tx = *ws.m_ptx ;
1275+ const auto tx_info = NewMempoolTransactionInfo (ws.m_ptx , ws.m_base_fees ,
1276+ ws.m_vsize , ws.m_entry ->GetHeight (),
1277+ args.m_bypass_limits , args.m_package_submission ,
1278+ IsCurrentForFeeEstimation (m_active_chainstate),
1279+ m_pool.HasNoInputsOf (tx));
1280+ GetMainSignals ().TransactionAddedToMempool (tx_info, m_pool.GetAndIncrementSequence ());
12691281
12701282 return MempoolAcceptResult::Success (std::move (ws.m_replaced_transactions ), ws.m_vsize , ws.m_base_fees ,
12711283 effective_feerate, single_wtxid);
0 commit comments