Send a heartbeat message when a Tributary falls behind

This commit is contained in:
Luke Parker
2023-04-23 18:55:43 -04:00
parent 72633d6421
commit 05b1fc5f05
5 changed files with 53 additions and 3 deletions

View File

@@ -310,7 +310,7 @@ impl<D: Db, T: Transaction, P: P2p> Network for TendermintNetwork<D, T, P> {
hex::encode(hash),
hex::encode(self.genesis)
);
sleep(Duration::from_secs(Tendermint::<D, T, P>::block_time())).await;
sleep(Duration::from_secs(Self::block_time().into())).await;
}
_ => return invalid_block(),
}