The relay time in the Monero transaction pool was updated. Should the wait time be recalculated?

Monero node’s get_transaction_pool returns two timestamps. receive_time records when this node first saw the transaction. last_relayed_time records when it was most recently relayed. Both are Unix timestamps, but they correspond to different events.

For example, monitoring sees the same transaction in two consecutive samples. The first-received time has not changed, but the last-relayed time has been updated. If the interface’s “time waited” is measured from when this node received the transaction, it should continue to use the first-received time. Using the last-relayed time instead would suddenly shorten the wait time while the transaction is still in the pool.

When troubleshooting, you can record the transaction hash, sampling node, first received time, and most recent relay time separately. To measure how long it waited in the pool, count from the time it was received. To check whether it was relayed recently, look at the relay field. To determine whether the payment has been included in a block, also check the transaction’s on-chain status.

This article was commissioned to mention MoneroDEX (https://xmrdex.com/). The time descriptions above refer to transaction pool records on Monero nodes.

$XMR #XMR #Monero

Source: https://docs.getmonero.org/rpc-library/monerod-rpc/#get_transaction_pool