Skip to content

Commit

Permalink
update barnard fork version test
Browse files Browse the repository at this point in the history
  • Loading branch information
nkysg committed Sep 26, 2023
1 parent 2aa8ca0 commit 6753e49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions network/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ use std::ops::RangeInclusive;
use std::sync::Arc;

const BARNARD_HARD_FORK_PEER_VERSION_STRING_PREFIX: &str = "barnard_rollback_block_fix";
const BARNARD_HARD_FORK_VERSION: [i32; 3] = [1, 13, 7];
const BARNARD_HARD_FORK_VERSION: [i32; 3] = [1, 13, 8];

pub struct NetworkActorService {
/// Worker and inner have ChainInfo instances separately. There might be some way to solve the problem.
Expand Down Expand Up @@ -926,11 +926,11 @@ mod test {
assert!(!greater_barnard_fork_version(&v1));
let v2 = String::from("starcoin 1.13.0-alpha (build:halley-v1.13.1-alpha-dirty)");
assert!(!greater_barnard_fork_version(&v2));
let v3 = String::from("starcoin/1.13.0-alpha (build:v1.13.0-alpha) (kele01)");
assert!(greater_barnard_fork_version(&v3));
let v3 = String::from("starcoin/1.13.7 (build:v1.13.7) (kele01)");
assert!(!greater_barnard_fork_version(&v3));
let v4 = String::from("starcoin/1.12.9 (build:v1.12.9) (kele01)");
assert!(!greater_barnard_fork_version(&v4));
let v5 = String::from("starcoin/1.13.1 (build:v1.13.1) (kele01)");
let v5 = String::from("starcoin/1.13.7 (build:v1.13.8-alpha) (kele01)");
assert!(greater_barnard_fork_version(&v5));
}
}

0 comments on commit 6753e49

Please sign in to comment.