Skip to content

Commit 6efb1bb

Browse files
committed
fix(ledger): log alive_masks > 294 instead of bug_condition since we get false positive during testing
1 parent 5778a5c commit 6efb1bb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

node/src/ledger/ledger_reducer.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use openmina_core::bug_condition;
2-
31
use crate::Substate;
42

53
use super::{
@@ -20,7 +18,11 @@ impl LedgerState {
2018
{
2119
if let Ok(state) = state_context.get_substate_mut() {
2220
if result.alive_masks > 294 {
23-
bug_condition!(
21+
// TODO(binier): should be a bug condition, but can't be
22+
// because we get false positive during testing, since
23+
// multiple nodes/ledger run in the same process.
24+
openmina_core::log::warn!(
25+
meta.time();
2426
"ledger mask leak: more than 294 ledger masks ({}) detected!",
2527
result.alive_masks
2628
);

0 commit comments

Comments
 (0)