Skip to content

Commit

Permalink
Debugging 1442: searching for the problematic Packet
Browse files Browse the repository at this point in the history
  • Loading branch information
adizere committed Oct 12, 2021
1 parent 8944f94 commit 9a588da
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions relayer-cli/src/commands/query/clients.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,27 @@ impl Runnable for QueryAllClientsCmd {
let rt = Arc::new(TokioRuntime::new().unwrap());
let chain = CosmosSdkChain::bootstrap(chain_config.clone(), rt).unwrap();

use std::str::FromStr;
use ibc::ics04_channel::packet::Sequence;
let query = ibc::query::QueryTxRequest::Packet(ibc::ics04_channel::channel::QueryPacketEventDataRequest {
event_id: ibc::events::IbcEventType::SendPacket,
source_port_id: ibc::ics24_host::identifier::PortId::from_str("transfer").unwrap(),
source_channel_id: ibc::ics24_host::identifier::ChannelId::from_str("channel-0").unwrap(),
destination_port_id: ibc::ics24_host::identifier::PortId::from_str("transfer").unwrap(),
destination_channel_id: ibc::ics24_host::identifier::ChannelId::from_str("channel-41").unwrap(),
height: ibc::Height::new(1, 184204),
sequences: vec![Sequence::from(11)],
});

let events_result = chain
.query_txs(query)
.map_err(Error::relayer);

debug!(
"printing stuff {:?}",
events_result
);

let req = QueryClientStatesRequest {
pagination: ibc_proto::cosmos::base::query::pagination::all(),
};
Expand Down

0 comments on commit 9a588da

Please sign in to comment.