@@ -313,7 +313,9 @@ impl StackerDBListener {
313
313
"signature" => %signature,
314
314
"signer_weight" => signer_entry. weight,
315
315
"total_weight_approved" => block. total_weight_approved,
316
+ "percent_approved" => block. total_weight_approved as f64 / self . total_weight as f64 * 100.0 ,
316
317
"total_weight_rejected" => block. total_weight_rejected,
318
+ "percent_rejected" => block. total_weight_rejected as f64 / self . total_weight as f64 * 100.0 ,
317
319
) ;
318
320
continue ;
319
321
}
@@ -332,7 +334,9 @@ impl StackerDBListener {
332
334
"signature" => %signature,
333
335
"signer_weight" => signer_entry. weight,
334
336
"total_weight_approved" => block. total_weight_approved,
337
+ "percent_approved" => block. total_weight_approved as f64 / self . total_weight as f64 * 100.0 ,
335
338
"total_weight_rejected" => block. total_weight_rejected,
339
+ "percent_rejected" => block. total_weight_rejected as f64 / self . total_weight as f64 * 100.0 ,
336
340
"weight_threshold" => self . weight_threshold,
337
341
"tenure_extend_timestamp" => tenure_extend_timestamp,
338
342
"server_version" => metadata. server_version,
@@ -393,7 +397,9 @@ impl StackerDBListener {
393
397
"signature" => %rejected_data. signature,
394
398
"signer_weight" => signer_entry. weight,
395
399
"total_weight_approved" => block. total_weight_approved,
400
+ "percent_approved" => block. total_weight_approved as f64 / self . total_weight as f64 * 100.0 ,
396
401
"total_weight_rejected" => block. total_weight_rejected,
402
+ "percent_rejected" => block. total_weight_rejected as f64 / self . total_weight as f64 * 100.0 ,
397
403
"weight_threshold" => self . weight_threshold,
398
404
"reason" => rejected_data. reason,
399
405
"reason_code" => %rejected_data. reason_code,
0 commit comments