From cdcb409c9f719c1490502fd257c9869e940e6c5e Mon Sep 17 00:00:00 2001 From: Lukasz Zimnoch Date: Wed, 7 Feb 2024 21:08:06 +0100 Subject: [PATCH] Use `BackoffRetransmissionStrategy` for DKG `resultSigningState` 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. (cherry picked from commit 5049f77e68730688d687eb15ad4567ffdceeaea3) --- pkg/tecdsa/dkg/states.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/tecdsa/dkg/states.go b/pkg/tecdsa/dkg/states.go index e8648ed587..417ebb85b8 100644 --- a/pkg/tecdsa/dkg/states.go +++ b/pkg/tecdsa/dkg/states.go @@ -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 }