Add http endpoint to add trusted peer (#7068)

* Add a trusted_peers endpoint

* Maintain trusted peers in heartbeat
This commit is contained in:
Pawan Dhananjay
2025-03-03 19:34:14 -08:00
committed by GitHub
parent e12719c404
commit 9436f23843
8 changed files with 90 additions and 6 deletions

View File

@@ -1431,6 +1431,11 @@ pub struct ManualFinalizationRequestData {
pub block_root: Hash256,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct AddPeer {
pub enr: String,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct LivenessRequestData {
pub epoch: Epoch,