diff --git a/bindings/nodejs/lib/types/models/info/node-info-protocol.ts b/bindings/nodejs/lib/types/models/info/node-info-protocol.ts index 30a21dffa0..2eb172a15b 100644 --- a/bindings/nodejs/lib/types/models/info/node-info-protocol.ts +++ b/bindings/nodejs/lib/types/models/info/node-info-protocol.ts @@ -57,6 +57,10 @@ export interface ProtocolParameters { * The number of slots in an epoch expressed as an exponent of 2. */ slotsPerEpochExponent: number; + /** + * The number of bits used to represent Mana expressed as an exponent of 2. + */ + manaBitsExponent: number; /** * The amount of potential Mana generated by 1 IOTA in 1 slot. */ diff --git a/sdk/src/types/block/protocol.rs b/sdk/src/types/block/protocol.rs index df6813fc45..9fcca85cd1 100644 --- a/sdk/src/types/block/protocol.rs +++ b/sdk/src/types/block/protocol.rs @@ -50,6 +50,8 @@ pub struct ProtocolParameters { pub(crate) slot_duration_in_seconds: u8, /// The number of slots in an epoch expressed as an exponent of 2. pub(crate) slots_per_epoch_exponent: u8, + /// The number of bits used to represent Mana expressed as an exponent of 2. + pub(crate) mana_bits_exponent: u8, /// The amount of potential Mana generated by 1 IOTA in 1 slot. pub(crate) mana_generation_rate: u8, /// The scaling of `mana_generation_rate` expressed as an exponent of 2. @@ -104,6 +106,7 @@ impl Default for ProtocolParameters { slot_duration_in_seconds: 10, epoch_nearing_threshold: 20.into(), slots_per_epoch_exponent: Default::default(), + mana_bits_exponent: Default::default(), mana_generation_rate: Default::default(), mana_generation_rate_exponent: Default::default(), mana_decay_factors: Default::default(), diff --git a/sdk/tests/types/block_id.rs b/sdk/tests/types/block_id.rs index a102b5b1d3..5a87c1770b 100644 --- a/sdk/tests/types/block_id.rs +++ b/sdk/tests/types/block_id.rs @@ -102,11 +102,11 @@ fn compute() { // TODO: Independently verify this value assert_eq!( block_id.to_string(), - "0xf0bd00c717f4a11d3a6381c4c06954b873c7bf1052a0b10465d04ba2de38bd420b00000000000000" + "0x8840fd83fcbc58dfcc6b6e63d3cf8f42694197b77ad7e244c3327af3b6cdd9780b00000000000000" ); assert_eq!( block_id.hash().to_string(), - "0xf0bd00c717f4a11d3a6381c4c06954b873c7bf1052a0b10465d04ba2de38bd42" + "0x8840fd83fcbc58dfcc6b6e63d3cf8f42694197b77ad7e244c3327af3b6cdd978" ); assert_eq!(block_id.slot_index(), slot_index); }