Skip to content

Commit

Permalink
add barnard fork block height and hash
Browse files Browse the repository at this point in the history
  • Loading branch information
nkysg committed Aug 30, 2023
1 parent 62fc18b commit f5f5dac
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions storage/src/upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,24 @@ 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<HashValue> = Lazy::new(|| {
HashValue::from_hex_literal(
"0x98f32397569e26540985f0d487c5e7cc229a8c9be9afe10f973b3d95204d06d7",
)
.expect("")
});
*/

pub static BARNARD_HARD_FORK_HEIGHT: BlockNumber = 16057427;
pub static BARNARD_HARD_FORK_HASH: Lazy<HashValue> = Lazy::new(|| {
HashValue::from_hex_literal(
"0x593bc5ebfb42b37c32bf088ae5edfa01fb458de9e0a3d8704b27b436876e1cf7",
)
.expect("")
});

impl DBUpgrade {
pub fn check_upgrade(instance: &mut StorageInstance) -> Result<()> {
Expand Down

0 comments on commit f5f5dac

Please sign in to comment.