Skip to content

Commit c28650c

Browse files
committed
validator message - remove message type
1 parent 43ddd15 commit c28650c

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

primitives/src/validator.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ pub struct ValidatorDesc {
3434
#[derive(Serialize, Deserialize, Debug, Clone)]
3535
#[serde(rename_all = "camelCase")]
3636
pub struct Accounting {
37-
#[serde(rename = "type")]
38-
pub message_type: String,
3937
#[serde(rename = "last_ev_aggr")]
4038
pub last_event_aggregate: DateTime<Utc>,
4139
pub balances_before_fees: BalancesMap,
@@ -45,8 +43,6 @@ pub struct Accounting {
4543
#[derive(Serialize, Deserialize, Debug, Clone)]
4644
#[serde(rename_all = "camelCase")]
4745
pub struct ApproveState {
48-
#[serde(rename = "type")]
49-
pub message_type: String,
5046
pub state_root: String,
5147
pub signature: String,
5248
pub is_healthy: bool,
@@ -55,8 +51,6 @@ pub struct ApproveState {
5551
#[derive(Serialize, Deserialize, Debug, Clone)]
5652
#[serde(rename_all = "camelCase")]
5753
pub struct NewState {
58-
#[serde(rename = "type")]
59-
pub message_type: String,
6054
pub state_root: String,
6155
pub signature: String,
6256
pub balances: String,
@@ -65,8 +59,6 @@ pub struct NewState {
6559
#[derive(Default, Serialize, Deserialize, Debug, Clone)]
6660
#[serde(rename_all = "camelCase")]
6761
pub struct RejectState {
68-
#[serde(rename = "type")]
69-
pub message_type: String,
7062
pub reason: String,
7163
pub state_root: String,
7264
pub signature: String,
@@ -77,8 +69,6 @@ pub struct RejectState {
7769
#[derive(Serialize, Deserialize, Debug, Clone)]
7870
#[serde(rename_all = "camelCase")]
7971
pub struct Heartbeat {
80-
#[serde(rename = "type")]
81-
pub message_type: String,
8272
pub signature: String,
8373
pub state_root: String,
8474
pub timestamp: DateTime<Utc>,
@@ -87,7 +77,6 @@ pub struct Heartbeat {
8777
impl Heartbeat {
8878
pub fn new(signature: String, state_root: String) -> Self {
8979
Self {
90-
message_type: "Heartbeat".into(),
9180
signature,
9281
state_root,
9382
timestamp: Utc::now(),

0 commit comments

Comments
 (0)