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

[Merged by Bors] - atxs: regossip atxs in publish epoch #5097

Closed

Conversation

dshulyak
Copy link
Contributor

closes: #5068

there is an indication that not all atxs are propagated before target epoch starts. it results in efficiency in some data structures and in future will lead to lost rewards.

if node was offline when built an atx or experienced some other problems, the only chance it has to broadcast an atx is when peers asks for it (atx sync). that approach is in general not scalable and naive about concurrent requests.

as atx are not large (~1KB) we can regossip them periodically. if peer already stores this atx it will not gossip it futher

@codecov
Copy link

codecov bot commented Sep 27, 2023

Codecov Report

Merging #5097 (e5bef32) into develop (060a126) will decrease coverage by 0.1%.
The diff coverage is 72.3%.

@@            Coverage Diff            @@
##           develop   #5097     +/-   ##
=========================================
- Coverage     77.0%   77.0%   -0.1%     
=========================================
  Files          257     257             
  Lines        30278   30320     +42     
=========================================
+ Hits         23339   23368     +29     
- Misses        5410    5420     +10     
- Partials      1529    1532      +3     
Files Coverage Δ
activation/handler.go 78.5% <100.0%> (+0.2%) ⬆️
config/config.go 100.0% <ø> (ø)
config/mainnet.go 95.8% <100.0%> (+<0.1%) ⬆️
config/presets/fastnet.go 100.0% <100.0%> (ø)
config/presets/testnet.go 95.6% <100.0%> (+<0.1%) ⬆️
node/node.go 63.7% <100.0%> (+<0.1%) ⬆️
activation/activation.go 74.9% <60.6%> (-1.0%) ⬇️

... and 2 files with indirect coverage changes

activation/activation.go Show resolved Hide resolved
activation/activation_test.go Outdated Show resolved Hide resolved
@dshulyak
Copy link
Contributor Author

bors merge

bors bot pushed a commit that referenced this pull request Sep 27, 2023
closes: #5068

there is an indication that not all atxs are propagated before target epoch starts. it results in efficiency in some data structures and in future will lead to lost rewards.

if node was offline when built an atx or experienced some other problems, the only chance it has to broadcast an atx is when peers asks for it (atx sync). that approach is in general not scalable and naive about concurrent requests.  

as atx are not large (~1KB) we can regossip them periodically. if peer already stores this atx it will not gossip it futher
@bors
Copy link

bors bot commented Sep 27, 2023

Canceled.

@dshulyak
Copy link
Contributor Author

bors merge

bors bot pushed a commit that referenced this pull request Sep 27, 2023
closes: #5068

there is an indication that not all atxs are propagated before target epoch starts. it results in efficiency in some data structures and in future will lead to lost rewards.

if node was offline when built an atx or experienced some other problems, the only chance it has to broadcast an atx is when peers asks for it (atx sync). that approach is in general not scalable and naive about concurrent requests.  

as atx are not large (~1KB) we can regossip them periodically. if peer already stores this atx it will not gossip it futher
@bors
Copy link

bors bot commented Sep 27, 2023

Pull request successfully merged into develop.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title atxs: regossip atxs in publish epoch [Merged by Bors] - atxs: regossip atxs in publish epoch Sep 27, 2023
@bors bors bot closed this Sep 27, 2023
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.

regossip atx before target epoch
3 participants