hyperledger / hyperledger/fabric-x-evm

Reject Invalid Nonce Transactions

Open
#53 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

task
Dominant language
Go
Stars
12
Forks
19
Avg merge
4d 18h
Merged PRs (30d)
23

Description

Implement logic in the mempool to reject transactions with nonces lower than the sender's current committed nonce and evict any such transactions already in the queue. If a client submits a transaction with a nonce that has already been used, it indicates either a replay attack, a client error, or that the client's view of the nonce is stale. Immediately reject such transactions with an appropriate error code indicating invalid nonce. Periodically scan the mempool for queued transactions whose nonces have been superseded by committed transactions and evict them from the queue, freeing resources. This prevents the mempool from accumulating stale transactions that can never succeed and ensures clients receive timely feedback about nonce issues so they can correct their transaction submission logic.


Quarter: Q2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are identified in the issue. Start by locating the mempool transaction-admission and queue-management entry points, then inspect existing nonce and error handling; done means lower-than-committed-nonce submissions are rejected with the invalid-nonce code and superseded queued transactions are periodically evicted.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
blockchain
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.