`view`'s snapshot: its effective state (the fence) and its own Merkle state (diagnostic).
(view: &str, effective: &Hash, own: Option<&Hash>)
| 73 | /// `view`'s snapshot: its effective state (the fence) and its own Merkle |
| 74 | /// state (diagnostic). |
| 75 | pub fn view_snapshot(view: &str, effective: &Hash, own: Option<&Hash>) -> pb::ViewSnapshot { |
| 76 | pb::ViewSnapshot { |
| 77 | view: Some(view_ref(view)), |
| 78 | effective_state: Some(hash_proto(effective)), |
| 79 | own_merkle: own.map(hash_proto), |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | /// The effective state a snapshot fences on, base32 (what |
| 84 | /// `Repository::insert_submitted_change` compares). |