File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches : [ "main" ]
6
6
pull_request :
7
- branches : [ "main", "ax/dkg" ]
7
+ branches : [ "main" ]
8
8
9
9
env :
10
10
CARGO_TERM_COLOR : always
Original file line number Diff line number Diff line change @@ -835,8 +835,11 @@ impl Worker {
835
835
/// The node will always try to catchup with the help of remote nodes first.
836
836
async fn dkg_catchup ( & mut self ) -> Result < ( ) > {
837
837
let req = Protocol :: GetRequest ( self . current ) ;
838
+ // the round number is ignored by the recieving party, but we don't want to give an
839
+ // arbitrary value since `gc()` will probably clean it up too early. Thus, we put in
840
+ // an estimated round number using the `.oldest_cached_round()`.
838
841
self . net
839
- . broadcast ( 0 , serialize ( & req) ?) // placeholder round value, ignored by receiver
842
+ . broadcast ( self . oldest_cached_round ( ) . u64 ( ) , serialize ( & req) ?)
840
843
. await
841
844
. map_err ( |e| DecrypterError :: End ( e. into ( ) ) ) ?;
842
845
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments