Update to latest common dev

This commit is contained in:
Sosthene 2024-10-07 11:25:52 +02:00
parent bc625955e9
commit 80b2cf8c4c

View File

@ -123,7 +123,7 @@ pub(crate) fn handle_commit_request(commit_msg: CommitMessage) -> Result<OutPoin
// We update the validation tokens for our clone
state_to_validate.validation_tokens = commit_msg.validation_tokens;
let previous_state = commitment.get_previous_state(&state_to_validate);
if state_to_validate.is_valid(previous_state)? {
if state_to_validate.is_valid(previous_state).is_ok() {
// If the new state is valid we commit it in a new transaction that spends the last commited_in
// By spending it we also know the next outpoint to monitor for the next state
// We add a placeholder state with that information at the tip of the chain