Get the position if the channel has state.
(&self)
| 426 | |
| 427 | /// Get the position if the channel has state. |
| 428 | pub fn position(&self) -> Option<u64> { |
| 429 | match self { |
| 430 | Self::State { position, .. } => Some(*position), |
| 431 | Self::Empty => None, |
| 432 | } |
| 433 | } |
| 434 | |
| 435 | /// Get the merkle state if the channel has state. |
| 436 | pub fn merkle(&self) -> Option<&str> { |
no outgoing calls