Skip to content

Commit

Permalink
Fix TotalIssuance in Balances via on_runtime_upgrade (#334)
Browse files Browse the repository at this point in the history
* Fix TotalIssuance in Balances via on_runtime_upgrade

* Change weight to 2

* Change democracy * period to 1 day
  • Loading branch information
liuchengxu authored Nov 6, 2020
1 parent 321d779 commit 1c0b66a
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 48 deletions.
83 changes: 42 additions & 41 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("chainx"),
impl_name: create_runtime_str!("chainx-net"),
authoring_version: 1,
spec_version: 1,
spec_version: 2,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -534,13 +534,13 @@ impl pallet_sudo::Trait for Runtime {
}

parameter_types! {
pub const LaunchPeriod: BlockNumber = 28 * 24 * 60 * MINUTES;
pub const VotingPeriod: BlockNumber = 28 * 24 * 60 * MINUTES;
pub const LaunchPeriod: BlockNumber = 24 * 60 * MINUTES;
pub const VotingPeriod: BlockNumber = 24 * 60 * MINUTES;
pub const FastTrackVotingPeriod: BlockNumber = 3 * 24 * 60 * MINUTES;
pub const InstantAllowed: bool = true;
pub const MinimumDeposit: Balance = 100 * DOLLARS;
pub const EnactmentPeriod: BlockNumber = 30 * 24 * 60 * MINUTES;
pub const CooloffPeriod: BlockNumber = 28 * 24 * 60 * MINUTES;
pub const EnactmentPeriod: BlockNumber = 24 * 60 * MINUTES;
pub const CooloffPeriod: BlockNumber = 24 * 60 * MINUTES;
// One cent: $10,000 / MB
pub const PreimageByteDeposit: Balance = 1 * CENTS;
pub const MaxVotes: u32 = 100;
Expand Down
Loading

0 comments on commit 1c0b66a

Please sign in to comment.