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

fix(sync): ignore publishing a block if it is received before #829

Merged
merged 6 commits into from
Nov 29, 2023

Conversation

b00f
Copy link
Collaborator

@b00f b00f commented Nov 29, 2023

Description

This PR checks if a new block has been received before; if it has, it won't be published again.
The purpose of this change is to reduce network bandwidth usage by preventing the unnecessary publication of new blocks by all validators.

Copy link

codecov bot commented Nov 29, 2023

Codecov Report

Merging #829 (8f7f847) into main (fc66588) will increase coverage by 0.01%.
The diff coverage is 90.47%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #829      +/-   ##
==========================================
+ Coverage   82.76%   82.78%   +0.01%     
==========================================
  Files         172      172              
  Lines        8383     8398      +15     
==========================================
+ Hits         6938     6952      +14     
- Misses       1118     1119       +1     
  Partials      327      327              

@b00f b00f force-pushed the block-announce-ignore branch from 257c16a to 2b06040 Compare November 29, 2023 16:17
@themantre themantre merged commit 29c8d60 into pactus-project:main Nov 29, 2023
@b00f b00f deleted the block-announce-ignore branch December 1, 2023 16:53
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.

2 participants