File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,11 @@ impl RustNodeTestingConfig {
99
99
self
100
100
}
101
101
102
+ pub fn initial_time ( mut self , time : redux:: Timestamp ) -> Self {
103
+ self . initial_time = time;
104
+ self
105
+ }
106
+
102
107
pub fn with_peer_id ( mut self , bytes : [ u8 ; 32 ] ) -> Self {
103
108
self . peer_id = TestPeerId :: Bytes ( bytes) ;
104
109
self
Original file line number Diff line number Diff line change @@ -18,7 +18,9 @@ pub struct P2pReceiveMessage;
18
18
19
19
impl P2pReceiveMessage {
20
20
pub async fn run ( self , mut runner : ClusterRunner < ' _ > ) {
21
- let config = RustNodeTestingConfig :: devnet_default ( ) . initial_peers ( hosts:: devnet ( ) ) ;
21
+ let config = RustNodeTestingConfig :: devnet_default ( )
22
+ . initial_peers ( hosts:: devnet ( ) )
23
+ . initial_time ( redux:: Timestamp :: global_now ( ) ) ;
22
24
23
25
let retransmitter_openmina_node = runner. add_rust_node ( config) ;
24
26
You can’t perform that action at this time.
0 commit comments