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/worker :: add : start commit work only after connecting to peers #977

Merged
merged 4 commits into from Aug 31, 2023

Conversation

0xsharma
Copy link
Member

In this PR, we wait for a validator node to connect to atleast 1 peer before starting to produce blocks. This helps in stopping the validator to creating its own fork which might later result in the entire networking getting reorged to that fork. This PR tries to improve the stability of the network.

This is only implemented to work on mainnet and mumbai. It will not work on devnets/testnets.

@codecov
Copy link

codecov bot commented Aug 30, 2023

Codecov Report

Patch coverage is 31.56% of modified lines.

Files Changed Coverage
accounts/abi/bind/backends/bor_simulated.go 0.00%
consensus/bor/api.go 0.00%
consensus/bor/heimdall/metrics.go ø
core/blockchain.go 0.00%
core/blockchain_reader.go 0.00%
core/rawdb/checkpoint.go 0.00%
core/rawdb/milestone.go 0.00%
eth/api.go 0.00%
eth/api_backend.go 0.00%
eth/backend.go 0.00%
... and 24 more

📢 Thoughts on this report? Let us know!.

Copy link
Contributor

@cffls cffls left a comment

Choose a reason for hiding this comment

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

LGTM

@0xsharma 0xsharma merged commit 4d96b14 into develop Aug 31, 2023
6 of 8 checks passed
@0xsharma 0xsharma deleted the shivam/POS-1681 branch August 31, 2023 05:29
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

4 participants