Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
store initial challenge period (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
seunlanlege authored Jul 25, 2023
1 parent f8ae365 commit dca2cc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ismp/src/handlers/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ where
// Store the initial state for the consensus client
host.store_consensus_state(message.consensus_state_id, message.consensus_state)?;
host.store_unbonding_period(message.consensus_state_id, message.unbonding_period)?;
host.store_challenge_period(message.consensus_state_id, message.challenge_period)?;
host.store_consensus_state_id(message.consensus_state_id, message.consensus_client_id)?;

// Store all intermedite state machine commitments
Expand Down
2 changes: 2 additions & 0 deletions ismp/src/messaging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ pub struct CreateConsensusState {
pub consensus_state_id: ConsensusStateId,
/// Unbonding period for this consensus state.
pub unbonding_period: u64,
/// Challenge period for this consensus state
pub challenge_period: u64,
/// State machine commitments
pub state_machine_commitments: Vec<(StateMachineId, StateCommitmentHeight)>,
}
Expand Down

0 comments on commit dca2cc6

Please sign in to comment.