Only have some nodes respond to latent heartbeats

Also only respond if they're more than 2 blocks behind to minimize redundant
sending of blocks.
This commit is contained in:
Luke Parker
2024-04-17 21:54:10 -04:00
parent e426cd00bd
commit 05e6d81948
4 changed files with 40 additions and 25 deletions

View File

@@ -1292,6 +1292,7 @@ pub async fn run<D: Db, Pro: Processors, P: P2p>(
p2p.clone(),
cosign_channel.clone(),
tributary_event_listener_4,
<Ristretto as Ciphersuite>::generator() * key.deref(),
));
// Handle all messages from processors