Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion codec/src/map_parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub fn to_hash<const N: usize>(pallas_hash: &pallas_primitives::Hash<N>) -> Hash

/// Convert a Pallas Hash reference to an Acropolis Hash (owned)
/// Works for any hash size N
pub fn genesis_to_hash(pallas_hash: &pallas_primitives::Genesishash) -> Hash<32> {
pub fn genesis_to_hash(pallas_hash: &pallas_primitives::Genesishash) -> Hash<28> {
Hash::try_from(pallas_hash.as_ref()).unwrap()
}

Expand Down
2 changes: 1 addition & 1 deletion common/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ pub struct SPORewards {
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct GenesisKeyDelegation {
/// Genesis hash
pub genesis_hash: Hash<32>,
pub genesis_hash: Hash<28>,

/// Genesis delegate hash
pub genesis_delegate_hash: PoolId,
Expand Down