Skip to content

Commit ba0322b

Browse files
authored
Merge pull request #334 from Concordium/fix-p11-genesis-hash
Fix the P11 genesis hash calculation.
2 parents dc3f578 + 357b58c commit ba0322b

4 files changed

Lines changed: 7 additions & 2 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

genesis-creator/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Unreleased changes
22

3+
## 0.8.2
4+
5+
- Fix a bug in the computation of the genesis hash for protocol version 11.
6+
37
## 0.8.0 and 0.8.1
48

59
- Support genesis data format of protocol version 11.

genesis-creator/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "genesis-creator"
3-
version = "0.8.1"
3+
version = "0.8.2"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

genesis-creator/src/genesis.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,6 +1003,7 @@ impl GenesisData {
10031003
core,
10041004
initial_state,
10051005
} => {
1006+
ProtocolVersion::P11.serial(&mut hasher);
10061007
// tag of initial genesis
10071008
0u8.serial(&mut hasher);
10081009
core.serial(&mut hasher);

0 commit comments

Comments
 (0)