Skip to content

Commit

Permalink
Add debug logs for discarded Bridge pool root proofs
Browse files Browse the repository at this point in the history
  • Loading branch information
sug0 committed Sep 14, 2023
1 parent 299fbc8 commit c92f8be
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,22 @@ where
true
});
if should_write_root {
tracing::debug!(
?root_height,
"New Bridge pool root proof acquired"
);
wl_storage
.write(&signed_root_key, (proof, root_height))
.expect(
"Writing a signed Bridge pool root to storage should not \
fail.",
);
changed.insert(get_signed_root_key());
} else {
tracing::debug!(
?root_height,
"Discarding outdated Bridge pool root proof"
);
}
}

Expand Down

0 comments on commit c92f8be

Please sign in to comment.