Skip to content

use fork aware txpool#2307

Merged
shannonwells merged 1 commit intoupgrade-step-2409from
fork_aware_txpool
Apr 3, 2025
Merged

use fork aware txpool#2307
shannonwells merged 1 commit intoupgrade-step-2409from
fork_aware_txpool

Conversation

@aramikm
Copy link
Copy Markdown
Collaborator

@aramikm aramikm commented Apr 3, 2025

Goal

The goal of this PR is

Closes

Discussion

Checklist

  • Updated Pallet Readme?
  • Updated js/api-augment for Custom RPC APIs?
  • Design doc(s) updated?
  • Unit Tests added?
  • e2e Tests added?
  • Benchmarks added?
  • Spec version incremented?

@aramikm aramikm requested a review from wilwade as a code owner April 3, 2025 00:36
Copy link
Copy Markdown
Collaborator

@shannonwells shannonwells left a comment

Choose a reason for hiding this comment

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

Nice, thank you

@shannonwells shannonwells merged commit ae09156 into upgrade-step-2409 Apr 3, 2025
@shannonwells shannonwells deleted the fork_aware_txpool branch April 3, 2025 00:40
}

args+=( "--" "--wasm-execution=compiled" "--chain=${chain}" "--bootnodes=$(bootnode "$alice" "$alice_rpc_port")" "--bootnodes=$(bootnode "$bob" "$bob_rpc_port")" )
args+=( "--" "--wasm-execution=compiled" "--pool-type=fork-aware" "--chain=${chain}" "--bootnodes=$(bootnode "$alice" "$alice_rpc_port")" "--bootnodes=$(bootnode "$bob" "$bob_rpc_port")" )
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@aramikm is there a way to make the fork aware pool default instead of needing to set it?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think it should be possible. I'll look into it.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Since the Configuration is part of the code we depend on, one thing we can do is just check for the SealingMode. and default it to ForkAware pool
if SealingMode != Instant

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

That sounds good. I'm also ok with just forcing the pool one way in Instant sealing mode. It's a special mode, so its ok to ignore that setting (as there are no forks in instant mode anyway).

In the end, we'll get that all collators and such upgrade, they default to the fork aware pool and avoid having to ask people to enable it when we need it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants