Skip to content

Commit bae648c

Browse files
author
Naohiro Yoshida
committed
add comment
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
1 parent 4578dc7 commit bae648c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

light-client/src/fork_spec.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ pub fn find_target_fork_spec(
6464
.ok_or(Error::MissingForkSpec(current_height, current_timestamp))
6565
}
6666

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
6769
pub fn verify_sorted_asc(fork_specs: &[ForkSpec]) -> Result<(), Error> {
6870
let mut last_height: Option<u64> = None;
6971
let mut last_timestamp: Option<u64> = None;

0 commit comments

Comments
 (0)