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

Block arrival activate #3970

Merged
merged 6 commits into from
Oct 24, 2022

Conversation

clemahieu
Copy link
Contributor

This change separates filtering block rebroadcast and election activation. The block arrival filter prevents bootstrapping nodes from rebroadcasting blocks they're bootstrapping, however, the logic would also prevent elections from being started on time in some situations.

… inserted in to the node before it is started. This ensures the added node will accurately be determined to be a rep once it is started and connects.

Adding system.block_sequence slow test which constructs a system of evenly weighted PRs and ensures a sequence of blocks from a single account can be confirmed. Ongoing bootstrap is disabled during this test to detect errors in the election activation process.
… Use nano::process instead of block_processor.add in order to directly insert blocks in to the ledger.
pwojcikdev
pwojcikdev previously approved these changes Oct 12, 2022
@clemahieu clemahieu force-pushed the block_arrival_activate branch from db77156 to 8b37c25 Compare October 24, 2022 12:44
@clemahieu clemahieu merged commit 5da8ad2 into nanocurrency:develop Oct 24, 2022
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.

3 participants