Fix network ID and validator icons (#189)

* fix: Validator icons

* fix: Propagation time for blocks < highest

* fix: Reintroduce network_id to Rust backend
This commit is contained in:
Maciej Hirsz
2019-11-08 13:36:19 +01:00
committed by GitHub
parent a3b6f6a5a1
commit adbd7cb592
11 changed files with 380 additions and 330 deletions
+8 -1
View File
@@ -45,7 +45,9 @@ pub enum Details {
#[serde(rename = "afg.received_commit")]
AfgReceivedCommit(IgnoredAny),
#[serde(rename = "afg.authority_set")]
AfgAuthoritySet(IgnoredAny),
AfgAuthoritySet(AfgAuthoritySet),
#[serde(rename = "afg.finalized_blocks_up_to")]
AfgFinalizedBlocksUpTo(IgnoredAny),
#[serde(rename = "aura.pre_sealed_block")]
AuraPreSealedBlock(IgnoredAny),
#[serde(rename = "prepared_block_for_proposing")]
@@ -81,6 +83,11 @@ pub struct Finalized {
pub height: Box<str>,
}
#[derive(Deserialize, Debug)]
pub struct AfgAuthoritySet {
pub authority_id: Box<str>,
}
impl Block {
pub fn zero() -> Self {
Block {