Skip to content

Commit

Permalink
Merge pull request fedimint#6301 from joschisan/safe_new_ci_variants
Browse files Browse the repository at this point in the history
feat: make introduction of new ci variants consensus safe
  • Loading branch information
joschisan authored Nov 11, 2024
2 parents d4902ad + 9877168 commit 2c7d93c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion fedimint-server/src/consensus/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,8 @@ impl ConsensusEngine {
target: LOG_CONSENSUS,
"Minor consensus version mismatch: unexpected consensus item type: {variant}"
);
bail!("Unexpected consensus item type: {variant}")

panic!("Unexpected consensus item type: {variant}")
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion modules/fedimint-wallet-server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ impl ServerModule for Wallet {
}
}
WalletConsensusItem::Default { variant, .. } => {
bail!("Received wallet consensus item with unknown variant {variant}");
panic!("Received wallet consensus item with unknown variant {variant}");
}
}

Expand Down

0 comments on commit 2c7d93c

Please sign in to comment.