Skip to content

Commit

Permalink
use basecoin proof specs
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Mar 20, 2024
1 parent 9ce5959 commit af03258
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ibc-testkit/src/context.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
use core::fmt::Debug;
use core::time::Duration;

use basecoin_store::avl::get_proof_spec as basecoin_proof_spec;
use basecoin_store::context::ProvableStore;
use basecoin_store::impls::{GrowingStore, InMemoryStore, RevertibleStore};
use ibc::core::channel::types::channel::ChannelEnd;
use ibc::core::channel::types::commitment::PacketCommitment;
use ibc::core::client::context::client_state::ClientStateValidation;
use ibc::core::client::context::ClientExecutionContext;
use ibc::core::client::types::Height;
use ibc::core::commitment_types::specs::ProofSpecs;
use ibc::core::connection::types::ConnectionEnd;
use ibc::core::entrypoint::dispatch;
use ibc::core::handler::types::events::IbcEvent;
Expand Down Expand Up @@ -55,6 +57,8 @@ pub struct MockClientConfig {
pub max_clock_drift: Duration,
#[builder(default = Duration::from_secs(128_000))]
pub unbonding_period: Duration,
#[builder(default = vec![basecoin_proof_spec()].into())]
pub proof_specs: ProofSpecs,
}

impl Default for MockClientConfig {
Expand Down
1 change: 1 addition & 0 deletions ibc-testkit/src/hosts/tendermint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ impl TestHost for TendermintHost {
.trusting_period(params.trusting_period)
.max_clock_drift(params.max_clock_drift)
.unbonding_period(params.unbonding_period)
.proof_specs(params.proof_specs.clone())
.build()
.try_into()
.expect("never fails");
Expand Down

0 comments on commit af03258

Please sign in to comment.