File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -342,6 +342,11 @@ pub struct MockClientConfig {
342
342
consensus_state_heights : Vec < Height > ,
343
343
#[ builder( default = Timestamp :: now( ) ) ]
344
344
latest_timestamp : Timestamp ,
345
+
346
+ #[ builder( default = Duration :: from_secs( 64000 ) ) ]
347
+ pub trusting_period : Duration ,
348
+ #[ builder( default = Duration :: from_millis( 3000 ) ) ]
349
+ max_clock_drift : Duration ,
345
350
}
346
351
347
352
/// Returns a MockContext with bare minimum initialization: no clients, no connections and no channels are
@@ -723,6 +728,8 @@ impl MockContext {
723
728
let client_state: TmClientState = TmClientStateConfig :: builder ( )
724
729
. chain_id ( client. client_chain_id )
725
730
. latest_height ( client. client_state_height )
731
+ . trusting_period ( client. trusting_period )
732
+ . max_clock_drift ( client. max_clock_drift )
726
733
. build ( )
727
734
. try_into ( )
728
735
. expect ( "never fails" ) ;
You can’t perform that action at this time.
0 commit comments