Better default balances weights (#6813)

This commit is contained in:
Shawn Tabrizi
2020-08-05 11:40:31 +02:00
committed by GitHub
parent 840781cddb
commit e4e0e79ad7
2 changed files with 47 additions and 8 deletions
+1 -8
View File
@@ -154,6 +154,7 @@ mod tests;
mod tests_local;
mod tests_composite;
mod benchmarking;
mod default_weight;
use sp_std::prelude::*;
use sp_std::{cmp, result, mem, fmt::Debug, ops::BitOr, convert::Infallible};
@@ -187,14 +188,6 @@ pub trait WeightInfo {
fn force_transfer() -> Weight;
}
impl WeightInfo for () {
fn transfer() -> Weight { 1_000_000_000 }
fn transfer_keep_alive() -> Weight { 1_000_000_000 }
fn set_balance_creating() -> Weight { 1_000_000_000 }
fn set_balance_killing() -> Weight { 1_000_000_000 }
fn force_transfer() -> Weight { 1_000_000_000 }
}
pub trait Subtrait<I: Instance = DefaultInstance>: frame_system::Trait {
/// The balance of an account.
type Balance: Parameter + Member + AtLeast32BitUnsigned + Codec + Default + Copy +