CodeChain-io / CodeChain-io/foundry

Request transactions, which were rejected by the mempool limit, again when the mempool has enough space

Open
#70 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
36
Forks
11
PR merge metrics
No merged PRs in 30d

Description

The current implementation of `body_downloader` imports a transaction only once, and the transaction can be rejected while importing to the mempool because of the mempool limit (memory limit or size limit). After being rejected, `body_downloader` will never request them again.

Contributor guide

Open the contributing guide

Research direction

Start by reading the body_downloader implementation and tracing how transactions are imported into the mempool. Reproduce or inspect the path where the mempool-limit rejection occurs, then determine how available space is detected. Done means rejected transactions are requested again after the mempool has enough memory or size capacity.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
blockchain
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.