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

dkg: increase bcast receive timeout #2490

Merged
merged 1 commit into from
Aug 1, 2023
Merged

Conversation

corverroos
Copy link
Contributor

@corverroos corverroos commented Jul 31, 2023

Makes DKG P2P receive timeout configurable and increases it from the default 5s to 1min allowing peers to broadcast messages much earlier and having them wait longer for the receiver to handle to properly.

This was encountered in large DKG where some peers are much slower than others, still doing key generation even though others are already sharing node sigs and erroring after 5s since the slow peer doensn't have a lock hash yet to verify the received node sigs.

category: refactor
ticket: none

@codecov
Copy link

codecov bot commented Jul 31, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.07% 🎉

Comparison is base (4f0d8ba) 53.52% compared to head (c075e33) 53.59%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2490      +/-   ##
==========================================
+ Coverage   53.52%   53.59%   +0.07%     
==========================================
  Files         198      198              
  Lines       26757    26760       +3     
==========================================
+ Hits        14321    14343      +22     
+ Misses      10648    10632      -16     
+ Partials     1788     1785       -3     
Files Changed Coverage Δ
dkg/bcast/server.go 70.42% <ø> (ø)
p2p/receive.go 56.66% <100.00%> (-0.72%) ⬇️
p2p/sender.go 78.14% <100.00%> (+0.48%) ⬆️

... and 8 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Aug 1, 2023
@obol-bulldozer obol-bulldozer bot merged commit 0245a48 into main Aug 1, 2023
@obol-bulldozer obol-bulldozer bot deleted the corver/rcvtimeout branch August 1, 2023 07:33
gsora pushed a commit that referenced this pull request Aug 9, 2023
Makes DKG P2P receive timeout configurable and increases it from the default 5s to 1min allowing peers to broadcast messages much earlier and having them wait longer for the receiver to handle to properly.

This was encountered in large DKG where some peers are much slower than others, still doing key generation even though others are already sharing node sigs and erroring after 5s since the slow peer doensn't have a lock hash yet to verify the received node sigs.

category: refactor
ticket: none
obol-bulldozer bot pushed a commit that referenced this pull request Aug 9, 2023
The following PRs have been cherry-picked:

- #2490
- #2494
- #2496
- #2509
- #2510
- #2504
- #2511
- #2514
- #2516
- #2518


category: misc
ticket: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants