Skip to content

Commit 9e10788

Browse files
committed
Fix entry vs weight check in capitulate_viewpoint
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent cb60dec commit 9e10788

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stacks-signer/src/v0/signer_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ impl GlobalStateEvaluator {
213213
let entry = current_miners.entry(current_miner).or_insert_with(|| 0);
214214
*entry += weight;
215215

216-
if *weight >= self.total_weight * 3 / 10 {
216+
if *entry >= self.total_weight * 3 / 10 {
217217
let nmb_blocks = signerdb
218218
.get_globally_accepted_block_count_in_tenure(&tenure_id)
219219
.unwrap_or(0);

0 commit comments

Comments
 (0)