Skip to content

Conversation

@natanasow
Copy link
Member

@natanasow natanasow commented Oct 6, 2025

Description

To enable the new transaction pool feature a ENABLE_TX_POOL will be used. If the flag is enabled the new nonce precheck will be used and the getTransactionCount with block tag pending will returng the MN nonce + the pending transactions list length instead of just returning the MN nonce. Also, the save and removal of transactions in the sendRawTransaction method won't happen.

Related issue(s)

Fixes #4395

Testing Guide

Changes from original design (optional)

N/A

Additional work needed (optional)

N/A

Checklist

  • I've assigned an assignee to this PR and related issue(s) (if applicable)
  • I've assigned a label to this PR and related issue(s) (if applicable)
  • I've assigned a milestone to this PR and related issue(s) (if applicable)
  • I've updated documentation (code comments, README, etc. if applicable)
  • I've done sufficient testing (unit, integration, etc.)

Signed-off-by: nikolay <[email protected]>
@natanasow natanasow added this to the 0.73.0 milestone Oct 6, 2025
@natanasow natanasow self-assigned this Oct 6, 2025
@natanasow natanasow added the enhancement New feature or request label Oct 6, 2025
@natanasow natanasow marked this pull request as ready for review October 6, 2025 08:49
@natanasow natanasow requested review from a team as code owners October 6, 2025 08:49
);
const signerNonce =
mirrorAccountInfo.ethereum_nonce + ConfigService.get('ENABLE_TX_POOL')
? await this.transactionPoolService.getPendingCount(parsedTx.from!)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: maybe we could add a separate constant for pending count to make it more readable

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be computed each time, which will be a waste of resources if the ENABLE_TX_POOL is false. Or am I wrong?

Copy link
Contributor

@simzzz simzzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, left one nit

@natanasow natanasow merged commit 0a37917 into feat/transaction-pool Oct 6, 2025
11 of 15 checks passed
@natanasow natanasow deleted the 4395-add-enable-tx-pool-ff branch October 6, 2025 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants