Skip to content

Conversation

@iulianbarbu
Copy link

@iulianbarbu iulianbarbu commented Oct 22, 2025

Motivation

Implement coinbase setup at genesis or through anvil_setCoinbase and getter through eth_coinbase.

Rely on pallet-aura storage keys, especially Authorities, and implement a manual seal consensus data provider that provides digests referring to slot 0, which should be usable by an assethub fork, when computing the slot for the authority that should be picked with FindAuthor pallet_aura impl.

TODO

  • manual test for anvil_setCoinbase/eth_coinbase via cast.
  • integration tests for RPC & contract call to coinbase
  • unit test for coinbase setup at genesis

@iulianbarbu iulianbarbu self-assigned this Oct 22, 2025
@iulianbarbu iulianbarbu added the enhancement New feature or request label Oct 22, 2025
@iulianbarbu iulianbarbu linked an issue Oct 22, 2025 that may be closed by this pull request
@iulianbarbu iulianbarbu marked this pull request as ready for review October 23, 2025 13:43
Copy link

@re-gius re-gius left a comment

Choose a reason for hiding this comment

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

LGTM - just a few nits

@iulianbarbu iulianbarbu enabled auto-merge (squash) October 28, 2025 14:51
@iulianbarbu iulianbarbu disabled auto-merge October 28, 2025 14:51
@iulianbarbu iulianbarbu enabled auto-merge (squash) October 28, 2025 14:54
@iulianbarbu iulianbarbu merged commit 5d0dbc9 into master Oct 28, 2025
19 of 30 checks passed
@iulianbarbu iulianbarbu deleted the ib-add-genesis-coinbase-support branch October 28, 2025 16:19
@iulianbarbu
Copy link
Author

Opened #369 for the technical debt created here.

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Anvil] Genesis customisation

5 participants