Skip to content

Commit

Permalink
fix bench
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed Nov 6, 2023
1 parent f5b23fe commit 7116b6a
Show file tree
Hide file tree
Showing 2 changed files with 274 additions and 280 deletions.
6 changes: 6 additions & 0 deletions apps/src/lib/bench_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ use namada::ibc_proto::protobuf::Protobuf;
use namada::ledger::dry_run_tx;
use namada::ledger::gas::TxGasMeter;
use namada::ledger::ibc::storage::{channel_key, connection_key};
use namada::ledger::native_vp::ibc::get_dummy_header;
use namada::ledger::queries::{
Client, EncodedResponseQuery, RequestCtx, RequestQuery, Router, RPC,
};
Expand Down Expand Up @@ -279,6 +280,11 @@ impl BenchShell {
}

pub fn init_ibc_channel(&mut self) {
// Set a dummy header
self.wl_storage
.storage
.set_header(get_dummy_header())
.unwrap();
// Set connection open
let client_id =
ClientId::new(ClientType::new("01-tendermint").unwrap(), 1)
Expand Down
Loading

0 comments on commit 7116b6a

Please sign in to comment.