[go: up one dir, main page]

EVM/node: transaction are confirmed in the tx_queue when seen in a block

Checklist

  • Provide automatic testing.
  • Add an item in the changelog

What

meta-issue for the stacked MR: #7785

When transaction forwarded by the observer are seen in a block received from the sequencer they are removed from the tx_queue pending table.

Also to test this I've made the max_lifespan of transaction in the pending state configurable.

Why

This allows to clean unnecessary data from the tx_queue

How

By making the on_new_blueprint function of the observer blueprint_follower call the Tx_queue.confirm function

Manually testing the MR

Try to submit a transaction and query the node until you see the tx confirmed

Edited by Sylvain R.

Merge request reports

Loading