From 6753e4953ca0441f8df8488662a20ad6bc6db2e6 Mon Sep 17 00:00:00 2001 From: nk_ysg Date: Tue, 26 Sep 2023 19:43:56 +0800 Subject: [PATCH] update barnard fork version test --- network/src/service.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/network/src/service.rs b/network/src/service.rs index ca8a77851b..c0f0db140c 100644 --- a/network/src/service.rs +++ b/network/src/service.rs @@ -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. @@ -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)); } }