Get a short version of the Merkle state (first 12 characters).
(&self)
| 43 | |
| 44 | /// Get a short version of the Merkle state (first 12 characters). |
| 45 | pub fn state_short(&self) -> String { |
| 46 | let full = self.state.to_base32(); |
| 47 | if full.len() > 12 { |
| 48 | full[..12].to_string() |
| 49 | } else { |
| 50 | full |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | /// Check if the view is empty (has no changes). |
| 55 | pub fn is_empty(&self) -> bool { |