Skip to content

fatxpool: ChainApi is now async#8875

Merged
michalkucharczyk merged 15 commits intomasterfrom
mku-txpool-chain-api-is-async
Jun 25, 2025
Merged

fatxpool: ChainApi is now async#8875
michalkucharczyk merged 15 commits intomasterfrom
mku-txpool-chain-api-is-async

Conversation

@michalkucharczyk
Copy link
Copy Markdown
Contributor

@michalkucharczyk michalkucharczyk commented Jun 17, 2025

ChainApi is now async_trait, validate_transaction and block_body are now async methods. This is just cleanup - migrating from returning Future to async method

Comment thread substrate/client/transaction-pool/src/graph/pool.rs Outdated
@michalkucharczyk michalkucharczyk added R0-no-crate-publish-required The change does not require any crates to be re-published. T0-node This PR/Issue is related to the topic “node”. labels Jun 17, 2025
@michalkucharczyk
Copy link
Copy Markdown
Contributor Author

/cmd prdoc --bump minor --audience node_dev

data.to_vec()
}

#[async_trait]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

DQ: With async traits stabilized, do we even need this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

#[async_trait] also makes a future Send. I've just tried removing this and run into some lengthy errors which seems to be related to it.

Comment thread substrate/client/transaction-pool/src/common/tests.rs Outdated
Comment thread substrate/client/transaction-pool/src/graph/pool.rs
@paritytech-workflow-stopper
Copy link
Copy Markdown

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/15735366062
Failed job name: cargo-clippy

Comment thread prdoc/pr_8875.prdoc Outdated
Comment thread prdoc/pr_8875.prdoc Outdated
@ggwpez ggwpez removed the R0-no-crate-publish-required The change does not require any crates to be re-published. label Jun 25, 2025
@michalkucharczyk michalkucharczyk added this pull request to the merge queue Jun 25, 2025
Merged via the queue into master with commit caf9993 Jun 25, 2025
250 checks passed
@michalkucharczyk michalkucharczyk deleted the mku-txpool-chain-api-is-async branch June 25, 2025 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T0-node This PR/Issue is related to the topic “node”.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants