Identity should bound additional fields (#4770)

* Identity should bound additional fields

* ump rutnime
This commit is contained in:
Gavin Wood
2020-01-29 18:41:51 +01:00
committed by GitHub
parent a9100449dc
commit 907fd8c2fa
2 changed files with 32 additions and 12 deletions
+6 -4
View File
@@ -80,8 +80,8 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to 0. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 208,
impl_version: 1,
spec_version: 209,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
};
@@ -490,7 +490,8 @@ parameter_types! {
pub const BasicDeposit: Balance = 10 * DOLLARS; // 258 bytes on-chain
pub const FieldDeposit: Balance = 250 * CENTS; // 66 bytes on-chain
pub const SubAccountDeposit: Balance = 2 * DOLLARS; // 53 bytes on-chain
pub const MaximumSubAccounts: u32 = 100;
pub const MaxSubAccounts: u32 = 100;
pub const MaxAdditionalFields: u32 = 100;
}
impl pallet_identity::Trait for Runtime {
@@ -500,7 +501,8 @@ impl pallet_identity::Trait for Runtime {
type BasicDeposit = BasicDeposit;
type FieldDeposit = FieldDeposit;
type SubAccountDeposit = SubAccountDeposit;
type MaximumSubAccounts = MaximumSubAccounts;
type MaxSubAccounts = MaxSubAccounts;
type MaxAdditionalFields = MaxAdditionalFields;
type RegistrarOrigin = pallet_collective::EnsureProportionMoreThan<_1, _2, AccountId, CouncilCollective>;
type ForceOrigin = pallet_collective::EnsureProportionMoreThan<_1, _2, AccountId, CouncilCollective>;
}