Skip to content

Commit 5351384

Browse files
committed
Fix epoch threshold
1 parent 0f9da7c commit 5351384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/src/v0/impls/stake_table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1688,7 +1688,7 @@ impl EpochCommittees {
16881688
.context("Stake table not found")?
16891689
.into();
16901690

1691-
let success_threshold = self.success_threshold(Some(*epoch));
1691+
let success_threshold = self.success_threshold(Some(EpochNumber::new(previous_epoch)));
16921692

16931693
let root_height = header.height().checked_sub(epoch_height).context(
16941694
"Epoch height is greater than block height. cannot compute previous epoch root \

0 commit comments

Comments
 (0)