[bug] comment out roles check
This commit is contained in:
parent
2e51f2ba42
commit
14e7960357
@ -57,11 +57,12 @@ fn handle_initial_transaction(tx: Transaction, commit_msg: &CommitMessage) -> Re
|
|||||||
|
|
||||||
// Process roles and commitments
|
// Process roles and commitments
|
||||||
let roles_only_map = json!({ "roles": serde_json::to_value(&commit_msg.roles)? });
|
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") {
|
// TODO make that kind of check reliable, needs more work on json serialization
|
||||||
return Err(Error::msg("Role commitment mismatch"));
|
// if roles_commitment.get("roles") != commit_msg.pcd_commitment.get("roles") {
|
||||||
}
|
// return Err(Error::msg("Role commitment mismatch"));
|
||||||
|
// }
|
||||||
|
|
||||||
// Create the initial process state
|
// Create the initial process state
|
||||||
let empty_state = ProcessState {
|
let empty_state = ProcessState {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user