diff --git a/storage/src/upgrade.rs b/storage/src/upgrade.rs index 87b259026c..221818b154 100644 --- a/storage/src/upgrade.rs +++ b/storage/src/upgrade.rs @@ -22,6 +22,8 @@ use std::cmp::Ordering; pub struct DBUpgrade; +/* +this is old version pub static BARNARD_HARD_FORK_HEIGHT: BlockNumber = 9716880; pub static BARNARD_HARD_FORK_HASH: Lazy = Lazy::new(|| { HashValue::from_hex_literal( @@ -29,6 +31,15 @@ pub static BARNARD_HARD_FORK_HASH: Lazy = Lazy::new(|| { ) .expect("") }); + */ + +pub static BARNARD_HARD_FORK_HEIGHT: BlockNumber = 16057427; +pub static BARNARD_HARD_FORK_HASH: Lazy = Lazy::new(|| { + HashValue::from_hex_literal( + "0x593bc5ebfb42b37c32bf088ae5edfa01fb458de9e0a3d8704b27b436876e1cf7", + ) + .expect("") +}); impl DBUpgrade { pub fn check_upgrade(instance: &mut StorageInstance) -> Result<()> {