File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -574,6 +574,7 @@ impl LDNApplication {
574
574
AppState :: StartSignDatacap => {
575
575
let app_file: ApplicationFile = self . file ( ) . await ?;
576
576
let app_lifecycle = app_file. lifecycle . finish_approval ( ) ;
577
+
577
578
// Find the signers that already signed
578
579
let current_signers = app_file
579
580
. allocation
@@ -603,6 +604,11 @@ impl LDNApplication {
603
604
request_id. clone ( ) ,
604
605
app_lifecycle,
605
606
) ;
607
+ // If the number of current signers plus this one is less than the threshold, return early
608
+ if current_signers. len ( ) + 1 < multisig_threshold as usize {
609
+ return Ok ( app_file) ;
610
+ }
611
+
606
612
let file_content = serde_json:: to_string_pretty ( & app_file) . unwrap ( ) ;
607
613
match LDNPullRequest :: add_commit_to (
608
614
self . file_name . to_string ( ) ,
You can’t perform that action at this time.
0 commit comments