Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants