Skip to content

Commit

Permalink
Update poseidon hash and period. (availproject#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSasaPrsic authored Jul 3, 2024
1 parent 4cb72fa commit 804e23c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pallets/vector/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ use sp_core::H256;
// "secondsPerSlot": 12,
// "slotsPerPeriod": 8192,
// "sourceChainId": 1,
// "syncCommitteePeriod": 1090,
// "syncCommitteePoseidon": "0x1e20a0cc530eb84dc1c40a572737fb0f284855d8740251edcd0f3612d6e6b0df"
// "syncCommitteePeriod": 1151,
// "syncCommitteePoseidon": "0x021ec07b06055642fff1304c3516715febfea258638f44cedd8f045465574663"
// }

// Vector initial configuration
pub const BROADCASTER_DOMAIN: u32 = 2;
pub const BROADCASTER: H256 = H256::zero();
pub const SLOTS_PER_PERIOD: u64 = 8192;
pub const FINALITY_THRESHOLD: u16 = 342;
pub const PERIOD: u64 = 1090;
pub const PERIOD: u64 = 1151;
// Attention!
// If Posidon hash starts with "0" it (the zero character) will be ignore.
// This means that that hash needs to be manually added to the chain spec.
Expand All @@ -25,7 +25,7 @@ pub const PERIOD: u64 = 1090;
pub fn get_poseidon_hash_for_period() -> U256 {
// PERIOD hash
U256::from(hex!(
"1e20a0cc530eb84dc1c40a572737fb0f284855d8740251edcd0f3612d6e6b0df"
"021ec07b06055642fff1304c3516715febfea258638f44cedd8f045465574663"
))
}
pub const GENESIS_VALIDATOR_ROOT: H256 = H256(hex!(
Expand Down

0 comments on commit 804e23c

Please sign in to comment.