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

miner/stress: initialize account backends explicitly #23699

Merged
merged 1 commit into from Oct 9, 2021

Conversation

fjl
Copy link
Contributor

@fjl fjl commented Oct 8, 2021

node.Node no longer has any account manager backends by default, they need to be registered explicitly. This was changed recently, in #23019, and broke the stress tests.

For ethash-based tests, we actually don't need any accounts in the miner keystore. Just set the etherbase instead to make mining work. For clique, the signer account must be in the keystore.

The change also adds interrupt handling in all stress tests.

node.Node no longer registers any account manager backends by default,
they need to be registered explicitly.

For ethash-based tests, we actually don't need any accounts in the miner
keystore. Just set the etherbase instead to make mining work. For
clique, the signer account must be in the keystore.

The change also adds interrupt handling in stress tests.
@fjl fjl requested a review from rjl493456442 October 8, 2021 18:21
@fjl fjl added this to the 1.10.10 milestone Oct 8, 2021
Copy link
Member

@rjl493456442 rjl493456442 left a comment

Choose a reason for hiding this comment

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

I have tested it, all works. LGTM

@fjl fjl merged commit 1bea4b0 into ethereum:master Oct 9, 2021
@fjl fjl changed the title miner/stress: initialize account backends explictly miner/stress: initialize account backends explicitly Oct 9, 2021
sidhujag pushed a commit to syscoin/go-ethereum that referenced this pull request Oct 9, 2021
node.Node no longer registers any account manager backends by default,
they need to be registered explicitly.

For ethash-based tests, we actually don't need any accounts in the miner
keystore. Just set the etherbase instead to make mining work. For
clique, the signer account must be in the keystore.

The change also adds interrupt handling in stress tests.
yongjun925 pushed a commit to DODOEX/go-ethereum that referenced this pull request Dec 3, 2022
node.Node no longer registers any account manager backends by default,
they need to be registered explicitly.

For ethash-based tests, we actually don't need any accounts in the miner
keystore. Just set the etherbase instead to make mining work. For
clique, the signer account must be in the keystore.

The change also adds interrupt handling in stress tests.
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