Skip to content

Commit

Permalink
consensus-logic: change invalid comparison for tsn for proof verifica…
Browse files Browse the repository at this point in the history
…tion and formatting
  • Loading branch information
voidash committed Dec 18, 2024
1 parent 29d6fca commit 95b5fac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/btcio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ strata-rocksdb = { workspace = true, features = ["test_utils"] }
strata-test-utils.workspace = true

arbitrary.workspace = true
mockall.workspace = true
corepc-node = { version = "0.4.0", features = ["28_0"] }
mockall.workspace = true

[features]
test_utils = []
4 changes: 2 additions & 2 deletions crates/consensus-logic/src/csm/client_transition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,11 @@ pub fn filter_verified_checkpoints(
let l1_tsn = checkpoint.batch_info().l1_transition;
let l2_tsn = checkpoint.batch_info().l2_transition;

if l1_tsn.0 == last_l1_tsn.1 {
if l1_tsn.0 != last_l1_tsn.1 {

Check warning on line 434 in crates/consensus-logic/src/csm/client_transition.rs

View check run for this annotation

Codecov / codecov/patch

crates/consensus-logic/src/csm/client_transition.rs#L434

Added line #L434 was not covered by tests
warn!(obtained = ?l1_tsn.0, expected = ?last_l1_tsn.1, "Received invalid checkpoint l1 transition, ignoring.");
continue;
}
if l2_tsn.0 == last_l2_tsn.1 {
if l2_tsn.0 != last_l2_tsn.1 {

Check warning on line 438 in crates/consensus-logic/src/csm/client_transition.rs

View check run for this annotation

Codecov / codecov/patch

crates/consensus-logic/src/csm/client_transition.rs#L438

Added line #L438 was not covered by tests
warn!(obtained = ?l2_tsn.0, expected = ?last_l2_tsn.1, "Received invalid checkpoint l2 transition, ignoring.");
continue;
}
Expand Down
File renamed without changes.

0 comments on commit 95b5fac

Please sign in to comment.