Skip to content

fatxpool: ChainApi is now async #8875

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Jun 25, 2025
Merged

Conversation

michalkucharczyk
Copy link
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

@michalkucharczyk michalkucharczyk added R0-no-code-change Absolutely no code changed and nobody would ever find out about it. T0-node This PR/Issue is related to the topic “node”. labels Jun 17, 2025
@michalkucharczyk
Copy link
Contributor Author

/cmd prdoc --bump minor --audience node_dev

@@ -55,30 +55,30 @@ fn to_tag(nonce: u64, from: AccountId) -> Tag {
data.to_vec()
}

#[async_trait]
Copy link
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
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.

@paritytech-workflow-stopper
Copy link

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

@ggwpez ggwpez removed the R0-no-code-change Absolutely no code changed and nobody would ever find out about it. 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.

4 participants