File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ use validator_dir::insecure_keys::INSECURE_PASSWORD;
5656use web3:: types:: H160 ;
5757
5858const THRESHOLD : u64 = 3 ;
59- pub const COMMITTEE_IP_HEARTBEAT_INTERVAL : u64 = 600 ;
59+ pub const COMMITTEE_IP_HEARTBEAT_INTERVAL : u64 = 180 ;
6060pub const BALANCE_USED_UP : i64 = 1 ;
6161pub const BALANCE_STILL_AVAILABLE : i64 = 0 ;
6262// type InitiatorStore =
@@ -192,8 +192,8 @@ impl<T: EthSpec> Node<T> {
192192
193193 pub fn process_contract_command ( node : Arc < RwLock < Node < T > > > , db : Database ) {
194194 tokio:: spawn ( async move {
195+ let mut query_interval = tokio:: time:: interval ( Duration :: from_secs ( 6 ) ) ;
195196 loop {
196- let mut query_interval = tokio:: time:: interval ( Duration :: from_secs ( 12 ) ) ;
197197 query_interval. tick ( ) . await ;
198198 match db. get_contract_command ( ) . await {
199199 Ok ( ( command, id) ) => {
@@ -394,7 +394,6 @@ impl<T: EthSpec> Node<T> {
394394 } ;
395395 let mut query_interval =
396396 tokio:: time:: interval ( Duration :: from_secs ( COMMITTEE_IP_HEARTBEAT_INTERVAL ) ) ;
397- query_interval. set_missed_tick_behavior ( tokio:: time:: MissedTickBehavior :: Delay ) ;
398397 loop {
399398 let exit_clone = exit. clone ( ) ;
400399 let validator_pk = committee_def. validator_public_key . clone ( ) ;
You can’t perform that action at this time.
0 commit comments