Compare commits
30 Commits
1ae9c4fcfb
...
621db672ee
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
621db672ee | ||
|
|
e12295d5ed | ||
|
|
533fe48d64 | ||
| 5db0d0dd3f | |||
|
|
b5c8adb7c6 | ||
|
|
daef503dfb | ||
|
|
1b1903625a | ||
|
|
2a751aaecc | ||
|
|
a1d5b4bd83 | ||
| 3457ccf8a1 | |||
| 40bc8f052d | |||
| d0274b41f2 | |||
| 4f7e3dbbc7 | |||
| 8efb1ec259 | |||
| d4368dbe4b | |||
| c4320f0138 | |||
| 9db99bb95b | |||
| b255796d3a | |||
| a6f339b7b8 | |||
| e506f55e08 | |||
| c5597d7249 | |||
| 28eae8759c | |||
| 84392db895 | |||
| 63593973ba | |||
| b1d6c66b6d | |||
| a4c82d8401 | |||
| 3898a835b0 | |||
| a071d404d8 | |||
| 9958a2fb0a | |||
|
|
a169c99366 |
@ -307,8 +307,13 @@ fn process_validation(
|
|||||||
.validation_tokens
|
.validation_tokens
|
||||||
.extend(commit_msg.validation_tokens.iter());
|
.extend(commit_msg.validation_tokens.iter());
|
||||||
|
|
||||||
state_to_update.validation_tokens.sort_unstable();
|
// Sort by public key to group validations by signer
|
||||||
state_to_update.validation_tokens.dedup();
|
state_to_update.validation_tokens.sort_unstable_by_key(|proof| proof.get_key());
|
||||||
|
|
||||||
|
// Remove duplicates where same key validates same message
|
||||||
|
state_to_update.validation_tokens.dedup_by(|a, b| {
|
||||||
|
a.get_key() == b.get_key() && a.get_message() == b.get_message()
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
let state_to_validate = updated_process.get_state_for_id(&new_state_id)?;
|
let state_to_validate = updated_process.get_state_for_id(&new_state_id)?;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user