Skip to content
Snippets Groups Projects

fix(#231): next_cert_issuable_on is not used

1 unresolved thread
1 file
+ 0
9
Compare changes
  • Side-by-side
  • Inline
@@ -187,8 +187,6 @@ struct IdentityV1 {
@@ -187,8 +187,6 @@ struct IdentityV1 {
membership_revokes_on: TimestampV1,
membership_revokes_on: TimestampV1,
/// whether the identity is revoked (manually or automatically)
/// whether the identity is revoked (manually or automatically)
revoked: bool,
revoked: bool,
/// timestamp at which the next cert can be emitted
next_cert_issuable_on: TimestampV1,
/// balance of the account of this identity
/// balance of the account of this identity
balance: u64,
balance: u64,
/// certs received with their expiration timestamp
/// certs received with their expiration timestamp
@@ -212,8 +210,6 @@ struct IdentityV2 {
@@ -212,8 +210,6 @@ struct IdentityV2 {
identity_revoke_on: u32,
identity_revoke_on: u32,
/// whether the identity is revoked (manually or automatically)
/// whether the identity is revoked (manually or automatically)
revoked: bool,
revoked: bool,
/// block at which the next cert can be emitted
next_cert_issuable_on: u32,
/// balance of the account of this identity
/// balance of the account of this identity
balance: u64,
balance: u64,
/// certs received with their expiration block
/// certs received with their expiration block
@@ -1232,10 +1228,6 @@ fn genesis_data_to_identities_v2(
@@ -1232,10 +1228,6 @@ fn genesis_data_to_identities_v2(
genesis_timestamp,
genesis_timestamp,
),
),
revoked: i.revoked,
revoked: i.revoked,
next_cert_issuable_on: timestamp_to_relative_blocs(
i.next_cert_issuable_on,
genesis_timestamp,
),
balance: i.balance,
balance: i.balance,
certs_received: i
certs_received: i
.certs_received
.certs_received
@@ -1276,7 +1268,6 @@ fn make_authority_exist<SessionKeys: Encode, SKP: SessionKeysProvider<SessionKey
@@ -1276,7 +1268,6 @@ fn make_authority_exist<SessionKeys: Encode, SKP: SessionKeysProvider<SessionKey
membership_expire_on: common_parameters.membership_membership_period,
membership_expire_on: common_parameters.membership_membership_period,
identity_revoke_on: common_parameters.membership_membership_period,
identity_revoke_on: common_parameters.membership_membership_period,
revoked: false,
revoked: false,
next_cert_issuable_on: 0,
},
},
);
);
};
};
Loading