We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4578dc7 commit bae648cCopy full SHA for bae648c
light-client/src/fork_spec.rs
@@ -64,6 +64,8 @@ pub fn find_target_fork_spec(
64
.ok_or(Error::MissingForkSpec(current_height, current_timestamp))
65
}
66
67
+/// HEIGHT should be sorted by HEIGHT and TIMESTAMP should be sorted by TIMESTAMP.
68
+/// As an operational constraint, ForkSpec should be submitted in HF order
69
pub fn verify_sorted_asc(fork_specs: &[ForkSpec]) -> Result<(), Error> {
70
let mut last_height: Option<u64> = None;
71
let mut last_timestamp: Option<u64> = None;
0 commit comments