(&self, f: &mut fmt::Formatter<'_>)
| 151 | "Pending checkpoint not allowed", |
| 152 | )); |
| 153 | } |
| 154 | |
| 155 | Ok(state) |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | #[derive(Debug)] |
| 160 | pub enum CheckpointVerificationError { |
| 161 | NoHeaders, |
| 162 | NonContiguousEpochs { |
| 163 | expected: u64, |
| 164 | found: u64, |
| 165 | }, |
| 166 | SignatureVerificationFailed { |
| 167 | epoch: u64, |
| 168 | }, |
| 169 | CheckpointHashMismatch, |
| 170 | PrevEpochHeaderHashMismatch { |
| 171 | epoch: u64, |
| 172 | }, |
| 173 | InvalidGenesisHash(String), |
| 174 | WeakSubjectivityEpochUnavailable { |
| 175 | epoch: u64, |
| 176 | highest: u64, |
| 177 | }, |
| 178 | WeakSubjectivityHeaderDigestMismatch { |
nothing calls this directly
no outgoing calls
no test coverage detected