Skip to content

Commit

Permalink
Use BackoffRetransmissionStrategy for DKG resultSigningState
Browse files Browse the repository at this point in the history
All DKG states use the `BackoffRetransmissionStrategy` strategy.
There is no point to make an exception for the `resultSigningState`.
This should reduce network load in case one of the participants fails
at the end of the protocol.
  • Loading branch information
lukasz-zimnoch committed Feb 7, 2024
1 parent 7896c7a commit 5049f77
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/tecdsa/dkg/states.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,11 @@ func (rss *resultSigningState) Initiate(ctx context.Context) error {
return err
}

if err := rss.channel.Send(ctx, message); err != nil {
if err := rss.channel.Send(
ctx,
message,
net.BackoffRetransmissionStrategy,
); err != nil {
return err
}

Expand Down

0 comments on commit 5049f77

Please sign in to comment.