Skip to content

Commit f83cb73

Browse files
Apply review comments
1 parent 6434be2 commit f83cb73

File tree

1 file changed

+2
-2
lines changed
  • rust/cardano-chain-follower/src/stats

1 file changed

+2
-2
lines changed

rust/cardano-chain-follower/src/stats/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ pub(crate) fn stats_invalid_block(chain: Network, immutable: bool) {
153153
};
154154

155155
if immutable {
156-
chain_stats.mithril.invalid_blocks = chain_stats.mithril.invalid_blocks.saturating_sub(1);
156+
chain_stats.mithril.invalid_blocks = chain_stats.mithril.invalid_blocks.saturating_add(1);
157157
} else {
158-
chain_stats.live.invalid_blocks = chain_stats.live.invalid_blocks.saturating_sub(1);
158+
chain_stats.live.invalid_blocks = chain_stats.live.invalid_blocks.saturating_add(1);
159159
}
160160
}
161161

0 commit comments

Comments
 (0)