tx_pool: notify txpool event when stem bumps to fluff

This commit is contained in:
j-berman
2026-04-15 16:42:29 -07:00
parent 474657ad49
commit d29ffb9616
2 changed files with 5 additions and 5 deletions

View File

@@ -1146,7 +1146,7 @@ namespace cryptonote
const bool res = m_mempool.add_tx(tx, tx_hash, blob, tx_weight, tvc, tx_relay, relayed, version);
// If new incoming tx passed verification and entered the pool, notify ZMQ
if (!tvc.m_verifivation_failed && res && matches_category(tx_relay, relay_category::legacy))
if (!tvc.m_verifivation_failed && res && matches_category(tvc.m_relay, relay_category::legacy))
{
m_blockchain_storage.notify_txpool_event({txpool_event{
.tx = tx,

View File

@@ -339,16 +339,16 @@ namespace cryptonote
MERROR("internal error: error adding transaction to txpool: " << e.what());
return false;
}
static_assert(unsigned(relay_method::none) == 0, "expected relay_method::none value to be zero");
if(meta.fee > 0 && tx_relay != relay_method::forward)
tvc.m_relay = tx_relay;
}
tvc.m_verifivation_failed = false;
if (tvc.m_added_to_pool)
m_txpool_weight += tx_weight;
static_assert(unsigned(relay_method::none) == 0, "expected relay_method::none value to be zero");
if (meta.fee > 0 && tx_relay != relay_method::forward)
tvc.m_relay = tx_relay;
++m_cookie;
MINFO("Transaction added to pool: txid " << id << " weight: " << tx_weight << " fee/byte: " << (fee / (double)(tx_weight ? tx_weight : 1)) << ", count: " << m_added_txs_by_id.size());