Skip to content

Commit

Permalink
feat(gwos): only keep constraint block.timestamp <= input.since for v1
Browse files Browse the repository at this point in the history
  • Loading branch information
keroro520 committed Nov 29, 2022
1 parent 7d080ad commit 9487d16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gwos/contracts/gw-utils/src/fork.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ pub struct Fork;

impl Fork {
// Fork feature: block.timestamp < input.since
//
// NOTE: This feature is only enabled for v1.
pub const fn enforce_block_timestamp_lower_than_since(global_state_version: u8) -> bool {
global_state_version >= 1
global_state_version == 1
}

// Fork feature: block.timestamp in the backbone range
Expand Down

0 comments on commit 9487d16

Please sign in to comment.