Skip to content
Snippets Groups Projects
Commit 666a862f authored by Cédric Moreau's avatar Cédric Moreau Committed by Hugo Trentesaux
Browse files

fix(#231): next_cert_issuable_on is not used (!308)

* fix(#231): next_cert_issuable_on is not used

cert_meta.next_issuable_on is computed on genesis without this variable
parent 1e73e7b8
No related branches found
No related tags found
2 merge requests!308fix(#231): next_cert_issuable_on is not used,!307mint UD instead of deposit + disable burn
Pipeline #39544 passed
...@@ -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,
}, },
); );
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment