Skip to content

Commit

Permalink
Fix IPCI runtime params
Browse files Browse the repository at this point in the history
  • Loading branch information
akru committed Feb 21, 2020
1 parent 5e4c780 commit e3a43e9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 19 deletions.
4 changes: 0 additions & 4 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion bin/node/ipci-runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ pallet-utility = { git = "https://github.com/paritytech/substrate", default-feat
pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false }
pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", default-features = false }
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", default-features = false }
pallet-robonomics-agent-runtime-api = { path = "../../../robonomics/frame/agent/runtime-api", default-features = false }
pallet-robonomics-storage = { path = "../../../robonomics/frame/storage", default-features = false }

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion bin/node/ipci-runtime/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub mod time {
/// `SLOT_DURATION` instead (like the timestamp module for calculating the
/// minimum period).
/// <https://research.web3.foundation/en/latest/polkadot/BABE/Babe/#6-practical-results>
pub const MILLISECS_PER_BLOCK: Moment = 4000;
pub const MILLISECS_PER_BLOCK: Moment = 6000;
pub const SECS_PER_BLOCK: Moment = MILLISECS_PER_BLOCK / 1000;

pub const SLOT_DURATION: Moment = MILLISECS_PER_BLOCK;
Expand Down
12 changes: 5 additions & 7 deletions bin/node/ipci-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,24 +176,22 @@ impl pallet_indices::Trait for Runtime {
}

parameter_types! {
pub const ExistentialDeposit: Balance = U_MITO;
pub const TransferFee: Balance = 10 * U_MITO;
pub const CreationFee: Balance = 10 * U_MITO;
pub const ExistentialDeposit: Balance = 50_000 * U_MITO; // No less that base transaction fee
}

impl pallet_balances::Trait for Runtime {
type Event = Event;
type Balance = Balance;
type DustRemoval = ();
type Event = Event;
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = frame_system::Module<Runtime>;
}

parameter_types! {
pub const TransactionBaseFee: Balance = 50 * U_MITO;
pub const TransactionByteFee: Balance = 1;
pub const TransactionBaseFee: Balance = 50_000 * U_MITO; // 50 mMITO
pub const TransactionByteFee: Balance = 1 * U_MITO; // 1 uMITO
// setting this to zero will disable the weight fee.
pub const WeightFeeCoefficient: Balance = 1;
pub const WeightFeeCoefficient: Balance = 1 * U_MITO; // 1 uMITO
// for a sane configuration, this should always be less than `AvailableBlockRatio`.
pub const TargetBlockFullness: Perbill = Perbill::from_percent(25);
}
Expand Down
6 changes: 0 additions & 6 deletions bin/node/robonomics-runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ pallet-utility = { git = "https://github.com/paritytech/substrate", default-feat
pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false }
pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", default-features = false }
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", default-features = false }
pallet-robonomics-agent = { path = "../../../robonomics/frame/agent", default-features = false }
pallet-robonomics-agent-runtime-api = { path = "../../../robonomics/frame/agent/runtime-api", default-features = false }
pallet-robonomics-storage = { path = "../../../robonomics/frame/storage", default-features = false }
pallet-robonomics-provider = { path = "../../../robonomics/frame/provider", default-features = false }
pallet-robonomics-liability = { path = "../../../robonomics/frame/liability", default-features = false }

[build-dependencies]
Expand Down Expand Up @@ -104,9 +101,6 @@ std = [
"sp-block-builder/std",
"sp-transaction-pool/std",
"sp-inherents/std",
"pallet-robonomics-agent/std",
"pallet-robonomics-agent-runtime-api/std",
"pallet-robonomics-storage/std",
"pallet-robonomics-provider/std",
"pallet-robonomics-liability/std",
]

0 comments on commit e3a43e9

Please sign in to comment.