Update to latest common dev
This commit is contained in:
parent
bc625955e9
commit
80b2cf8c4c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user