[bug] comment out roles check

This commit is contained in:
Sosthene 2024-12-02 10:05:15 +01:00
parent 465f32c4fe
commit 2788159c4d

View File

@ -57,11 +57,12 @@ fn handle_initial_transaction(tx: Transaction, commit_msg: &CommitMessage) -> Re
// Process roles and commitments
let roles_only_map = json!({ "roles": serde_json::to_value(&commit_msg.roles)? });
let roles_commitment = roles_only_map.hash_fields(root_commitment)?;
// let roles_commitment = roles_only_map.hash_fields(root_commitment)?;
if roles_commitment.get("roles") != commit_msg.pcd_commitment.get("roles") {
return Err(Error::msg("Role commitment mismatch"));
}
// TODO make that kind of check reliable, needs more work on json serialization
// if roles_commitment.get("roles") != commit_msg.pcd_commitment.get("roles") {
// return Err(Error::msg("Role commitment mismatch"));
// }
// Create the initial process state
let empty_state = ProcessState {