Skip to content
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

fix(core): set miner.etherbase in clique mode #2210

Merged
merged 6 commits into from Mar 1, 2023

Conversation

Rjected
Copy link
Contributor

@Rjected Rjected commented Feb 28, 2023

Motivation

ethereum/go-ethereum#26413 caused the default clique configuration for the GethInstance to fail to start mining, because we did not pass a --miner.etherbase flag on startup.

For example, this would cause error logs in reth integration tests when we would try to start mining over RPC:

thread 'can_peer_with_geth' panicked at 'called `Result::unwrap()` on an `Err` value: ProviderError(MiddlewareError(JsonRpcClientError(JsonRpcError(JsonRpcError { code: -32000, message: "etherbase missing: etherbase must be explicitly specified", data: None }))))', crates/staged-sync/tests/sync.rs:93:72

Solution

Adds a --miner.etherbase flag with the clique signer address as the argument, when clique is enabled.

Ran reth integration tests multiple times after patching ethers

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog
  • Breaking changes

 * ethereum/go-ethereum#26413 caused the default
   clique configuration for the GethInstance to fail to start, because
   we did not pass a `miner.etherbase` flag on startup
 * adds a `miner.etherbase` flag with the clique signer address as the
   argument
@gakonst gakonst merged commit 9c09c2d into gakonst:master Mar 1, 2023
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.

None yet

2 participants