File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -887,17 +887,15 @@ impl MockContext {
887
887
888
888
/// Triggers the advancing of the host chain, by extending the history of blocks (or headers).
889
889
pub fn advance_host_chain_height ( & mut self ) {
890
- self . advance_host_chain_height_with_timestamp ( self . host_timestamp ( ) . expect ( "Never fails" ) )
891
- }
892
-
893
- /// Triggers the advancing of the host chain, by extending the history of blocks (or headers).
894
- pub fn advance_host_chain_height_with_timestamp ( & mut self , timestamp : Timestamp ) {
895
890
let latest_block = self . history . last ( ) . expect ( "history cannot be empty" ) ;
896
891
let new_block = HostBlock :: generate_block (
897
892
self . host_chain_id . clone ( ) ,
898
893
self . host_chain_type ,
899
894
latest_block. height ( ) . increment ( ) . revision_height ( ) ,
900
- timestamp,
895
+ latest_block
896
+ . timestamp ( )
897
+ . add ( self . block_time )
898
+ . expect ( "Never fails" ) ,
901
899
) ;
902
900
903
901
// Append the new header at the tip of the history.
You can’t perform that action at this time.
0 commit comments