Skip to content

Commit

Permalink
Initialize consensus metadata during client create (#1763)
Browse files Browse the repository at this point in the history
* Initialize consensus metadata during client create

* Add .changelog entry

* Fix clippy warnings
  • Loading branch information
hu55a1n1 authored Jan 14, 2022
1 parent efcd884 commit 9541d3b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Initialize consensus metadata on client creation
([#1763](https://github.com/informalsystems/ibc-rs/issues/1763))
2 changes: 2 additions & 0 deletions modules/src/core/ics02_client/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ pub trait ClientKeeper {
res.consensus_state,
)?;
self.increase_client_counter();
self.store_update_time(res.client_id.clone(), res.client_state.latest_height())?;
self.store_update_height(res.client_id, res.client_state.latest_height())?;
Ok(())
}
Update(res) => {
Expand Down
4 changes: 2 additions & 2 deletions relayer-cli/src/commands/tx/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,11 @@ impl fmt::Display for OutputBuffer {
)?;
match inner_result {
Ok(events) => writeln!(f, "{:#?}", events)?,
Err(e) => writeln!(f, "{}", e.to_string())?,
Err(e) => writeln!(f, "{}", e)?,
}
}
}
Err(e) => writeln!(f, " {}", e.to_string())?,
Err(e) => writeln!(f, " {}", e)?,
}
}
Ok(())
Expand Down

0 comments on commit 9541d3b

Please sign in to comment.