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

feat: add --no-mine mode #445

Merged
merged 1 commit into from
Nov 28, 2024
Merged

feat: add --no-mine mode #445

merged 1 commit into from
Nov 28, 2024

Conversation

itegulov
Copy link
Contributor

What 💻

Closes #405

Adds --no-mine CLI param that stops the node from sealing blocks automatically.

Why ✋

Feature parity with anvil

@itegulov itegulov requested a review from a team as a code owner November 28, 2024 08:58
.with_value(U256::from(100));
let pending_tx = provider.send_transaction(tx).await?.register().await?;
let finalization_result = tokio::time::timeout(Duration::from_secs(3), pending_tx).await;
assert!(finalization_result.is_err());
Copy link
Member

Choose a reason for hiding this comment

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

Can we force block to seal? If so, it would be nice to add it to this test too to make sure that the node doesn't just hang

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can seal a block manually but it won't have the tx in it (see https://github.com/matter-labs/era-test-node/issues/404). I am hoping to address this shortly and will update this test then

@itegulov itegulov merged commit bf55eb9 into main Nov 28, 2024
13 checks passed
@itegulov itegulov deleted the daniyar/anvil/no-mine branch November 28, 2024 11:19
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.

feat: support noop sealing mode
2 participants