Add saturating sub for deposits
This commit is contained in:
parent
1cf1682a9b
commit
751658b2be
@ -32,7 +32,8 @@ pub fn process_ffg_deposits(
|
||||
>= cry_state.total_deposits.saturating_mul(U256::from(2));
|
||||
let mut should_finalize = false;
|
||||
if should_justify {
|
||||
if cry_state.last_justified_epoch == cry_state.current_epoch - 1 {
|
||||
if cry_state.last_justified_epoch ==
|
||||
cry_state.current_epoch.saturating_sub(1) {
|
||||
should_finalize = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user