Skip to content

Commit ce03230

Browse files
committed
fixed an error caused by merging
1 parent 2d3a63a commit ce03230

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validator_worker/src/follower.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ async fn on_new_state<'a, C: Unlocked + 'static>(
294294
&accounting_balances.earners,
295295
&proposed_balances.earners,
296296
)
297-
.ok_or(Error::Overflow)?;
297+
.ok_or(Error::Overflow(Overflow::EarnerHealth))?;
298298
if health_earners < u64::from(sentry.config.worker.health_unsignable_promilles) {
299299
return on_error(
300300
sentry,
@@ -310,7 +310,7 @@ async fn on_new_state<'a, C: Unlocked + 'static>(
310310
&accounting_balances.spenders,
311311
&proposed_balances.spenders,
312312
)
313-
.ok_or(Error::Overflow)?;
313+
.ok_or(Error::Overflow(Overflow::SpenderHealth))?;
314314
if health_spenders < u64::from(sentry.config.worker.health_unsignable_promilles) {
315315
return on_error(
316316
sentry,

0 commit comments

Comments
 (0)