Plumb slot update pubsub notifications (#15488)

This commit is contained in:
carllin
2021-02-28 23:29:11 -08:00
committed by GitHub
parent 33eaa2b238
commit ae96ba3459
7 changed files with 194 additions and 3 deletions

View File

@ -101,6 +101,15 @@ pub struct SlotInfo {
pub root: Slot,
}
#[derive(Serialize, Deserialize, Debug)]
#[serde(rename_all = "camelCase", tag = "type")]
pub enum SlotUpdate {
OptimisticConfirmation { slot: Slot, timestamp: u64 },
FirstShredReceived { slot: Slot, timestamp: u64 },
Frozen { slot: Slot, timestamp: u64 },
Root { slot: Slot, timestamp: u64 },
}
#[derive(Serialize, Deserialize, Clone, Debug)]
#[serde(rename_all = "camelCase", untagged)]
pub enum RpcSignatureResult {