mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-09 21:31:00 +00:00
Fixed warnings by handlings absent voter fields in afg messages (#214)
This commit is contained in:
committed by
Maciej Hirsz
parent
65bfd1b943
commit
b9d658e2e6
+2
-2
@@ -144,10 +144,10 @@ pub struct Pong<'a>(pub &'a str);
|
||||
pub struct AfgFinalized(pub Address, pub BlockNumber, pub BlockHash);
|
||||
|
||||
#[derive(Serialize)]
|
||||
pub struct AfgReceivedPrevote(pub Address, pub BlockNumber, pub BlockHash, pub Address);
|
||||
pub struct AfgReceivedPrevote(pub Address, pub BlockNumber, pub BlockHash, pub Option<Address>);
|
||||
|
||||
#[derive(Serialize)]
|
||||
pub struct AfgReceivedPrecommit(pub Address, pub BlockNumber, pub BlockHash, pub Address);
|
||||
pub struct AfgReceivedPrecommit(pub Address, pub BlockNumber, pub BlockHash, pub Option<Address>);
|
||||
|
||||
#[derive(Serialize)]
|
||||
pub struct AfgAuthoritySet(pub Address, pub Address, pub Address, pub BlockNumber, pub BlockHash);
|
||||
|
||||
@@ -100,7 +100,7 @@ pub struct AfgFinalized {
|
||||
pub struct AfgReceived {
|
||||
pub target_hash: BlockHash,
|
||||
pub target_number: Box<str>,
|
||||
pub voter: Box<str>,
|
||||
pub voter: Option<Box<str>>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug, Clone)]
|
||||
|
||||
Reference in New Issue
Block a user