Get a short version of the Merkle state (first 12 characters).
(&self)
| 35 | |
| 36 | /// Get a short version of the Merkle state (first 12 characters). |
| 37 | pub fn state_short(&self) -> String { |
| 38 | let full = self.state.to_base32(); |
| 39 | if full.len() > 12 { |
| 40 | full[..12].to_string() |
| 41 | } else { |
| 42 | full |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | /// Check if the view is empty (has no changes). |
| 47 | pub fn is_empty(&self) -> bool { |