Update to latest common dev
This commit is contained in:
parent
a4f76b0252
commit
0eb44a6f0c
@ -123,7 +123,7 @@ pub(crate) fn handle_commit_request(commit_msg: CommitMessage) -> Result<OutPoin
|
|||||||
// We update the validation tokens for our clone
|
// We update the validation tokens for our clone
|
||||||
state_to_validate.validation_tokens = commit_msg.validation_tokens;
|
state_to_validate.validation_tokens = commit_msg.validation_tokens;
|
||||||
let previous_state = commitment.get_previous_state(&state_to_validate);
|
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
|
// 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
|
// 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
|
// We add a placeholder state with that information at the tip of the chain
|
||||||
|
Loading…
x
Reference in New Issue
Block a user