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

@@ -103,6 +103,7 @@ pub async fn run_tributaries(
p2p.broadcast(msg.kind, msg.msg).await;
}
}
_ => panic!("unexpected p2p message found"),
}
}
}
@@ -170,6 +171,7 @@ async fn tributary_test() {
assert_eq!(genesis, tributary.genesis());
tributary.handle_message(&msg.msg).await;
}
_ => panic!("unexpected p2p message found"),
}
}
}
@@ -195,6 +197,7 @@ async fn tributary_test() {
assert_eq!(genesis, tributary.genesis());
tributary.handle_message(&msg.msg).await;
}
_ => panic!("unexpected p2p message found"),
}
}
}