File tree 3 files changed +4
-13
lines changed
.changelog/unreleased/breaking-changes
3 files changed +4
-13
lines changed Original file line number Diff line number Diff line change
1
+ - Make ValidationContext::host_timestamp() abstract and remove
2
+ ValidationContext::pending_host_consensus_state()
3
+ ([ #418 ] ( https://github.com/cosmos/ibc-rs/issues/418 ) )
Original file line number Diff line number Diff line change @@ -269,15 +269,7 @@ pub trait ValidationContext: Router {
269
269
fn host_height ( & self ) -> Result < Height , ContextError > ;
270
270
271
271
/// Returns the current timestamp of the local chain.
272
- fn host_timestamp ( & self ) -> Result < Timestamp , ContextError > {
273
- let pending_consensus_state = self
274
- . pending_host_consensus_state ( )
275
- . expect ( "host must have pending consensus state" ) ;
276
- Ok ( pending_consensus_state. timestamp ( ) )
277
- }
278
-
279
- /// Returns the pending `ConsensusState` of the host (local) chain.
280
- fn pending_host_consensus_state ( & self ) -> Result < Box < dyn ConsensusState > , ContextError > ;
272
+ fn host_timestamp ( & self ) -> Result < Timestamp , ContextError > ;
281
273
282
274
/// Returns the `ConsensusState` of the host (local) chain at a specific height.
283
275
fn host_consensus_state (
Original file line number Diff line number Diff line change @@ -824,10 +824,6 @@ impl ValidationContext for MockContext {
824
824
. unwrap ( ) )
825
825
}
826
826
827
- fn pending_host_consensus_state ( & self ) -> Result < Box < dyn ConsensusState > , ContextError > {
828
- Err ( ClientError :: ImplementationSpecific . into ( ) )
829
- }
830
-
831
827
fn host_consensus_state (
832
828
& self ,
833
829
height : & Height ,
You can’t perform that action at this time.
0 commit comments