Skip to content

Commit

Permalink
Update genesis config
Browse files Browse the repository at this point in the history
  • Loading branch information
jakmeier committed Mar 18, 2022
1 parent af3132a commit 45d6c3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions chain/chain/src/tests/simple_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ fn empty_chain() {
let hash = chain.head().unwrap().last_block_hash;
// The hashes here will have to be modified after each change to genesis file.
#[cfg(feature = "nightly_protocol")]
assert_eq!(hash, CryptoHash::from_str("2VFkBfWwcTqyVJ83zy78n5WUNadwGuJbLc2KEp9SJ8dV").unwrap());
assert_eq!(hash, CryptoHash::from_str("A66sjdBrMzMi96tuaQXTBDAaePUDxYCo2qSBGCzHTMgb").unwrap());
#[cfg(not(feature = "nightly_protocol"))]
assert_eq!(hash, CryptoHash::from_str("8UF2TCELQ2sSqorskN5myyC7h1XfgxYm68JHJMKo5n8X").unwrap());
assert_eq!(hash, CryptoHash::from_str("8t6f63ezCoqS2nNxT7KivhvHH5tvNND4dj7RY3Hwhn64").unwrap());
assert_eq!(count_utc, 1);
}

Expand All @@ -54,12 +54,12 @@ fn build_chain() {
#[cfg(feature = "nightly_protocol")]
assert_eq!(
prev_hash,
CryptoHash::from_str("299HrY4hpubeFXa3V9DNtR36dGEtiz4AVfMbfL6hT2sq").unwrap()
CryptoHash::from_str("4jTD7SXoyvFiLmKkVDuP6jEdDZhuWQAqjb2C1Ba4Uynu").unwrap()
);
#[cfg(not(feature = "nightly_protocol"))]
assert_eq!(
prev_hash,
CryptoHash::from_str("BkRwcuuVjS86zNvP8DDC9FzsJfWQLV92YyX7NCAz3TNu").unwrap()
CryptoHash::from_str("DcfBcEHCh9Jd3gbgU8KNuP9kcN4WxyfonpMAq7jAmgaC").unwrap()
);

for i in 0..4 {
Expand All @@ -77,12 +77,12 @@ fn build_chain() {
#[cfg(feature = "nightly_protocol")]
assert_eq!(
chain.head().unwrap().last_block_hash,
CryptoHash::from_str("A1ZqLuyanSg6YeD3HxGco2tJYEAsmHvAva5n4dsPTgij").unwrap()
CryptoHash::from_str("43BEyYbBJr9gG868PsGj7ikYdKGmX42jTSuZghpNUQ7L").unwrap()
);
#[cfg(not(feature = "nightly_protocol"))]
assert_eq!(
chain.head().unwrap().last_block_hash,
CryptoHash::from_str("8FkFyWKsnAvAEVAwR41GFTY9i9eQnvGCm52FCYR7qEhy").unwrap()
CryptoHash::from_str("5DDPykKCvGKTpSi5YSgzw8UY5BB18JaxNs5218hWwfN7").unwrap()
);
}

Expand Down
2 changes: 1 addition & 1 deletion nearcore/res/genesis_config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"protocol_version": 52,
"protocol_version": 53,
"genesis_time": "1970-01-01T00:00:00.000000000Z",
"chain_id": "sample",
"genesis_height": 0,
Expand Down

0 comments on commit 45d6c3c

Please sign in to comment.