Skip to content
Snippets Groups Projects
Commit 3d6daf36 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

fix(#187): remove PendingNewAccounts in benchmarks

parent 5a8ad94e
No related branches found
No related tags found
1 merge request!238Remove account creation fee
Pipeline #35832 failed
...@@ -48,7 +48,6 @@ fn create_pending_accounts<T: Config>( ...@@ -48,7 +48,6 @@ fn create_pending_accounts<T: Config>(
} else { } else {
assert!(frame_system::Pallet::<T>::sufficients(&caller) == 0); assert!(frame_system::Pallet::<T>::sufficients(&caller) == 0);
} }
PendingNewAccounts::<T>::insert(caller, ());
} }
Ok(()) Ok(())
} }
......
...@@ -40,7 +40,6 @@ impl WeightInfo for () { ...@@ -40,7 +40,6 @@ impl WeightInfo for () {
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
} }
// Storage: Account PendingNewAccounts (r:1 w:0)
// Storage: Babe EpochIndex (r:1 w:0) // Storage: Babe EpochIndex (r:1 w:0)
/// The range of component `i` is `[0, 1]`. /// The range of component `i` is `[0, 1]`.
fn on_initialize_sufficient(i: u32) -> Weight { fn on_initialize_sufficient(i: u32) -> Weight {
...@@ -53,7 +52,6 @@ impl WeightInfo for () { ...@@ -53,7 +52,6 @@ impl WeightInfo for () {
.saturating_add(RocksDbWeight::get().writes((6 as u64).saturating_mul(i as u64))) .saturating_add(RocksDbWeight::get().writes((6 as u64).saturating_mul(i as u64)))
} }
// Storage: Account PendingNewAccounts (r:1 w:0)
// Storage: Babe EpochIndex (r:1 w:0) // Storage: Babe EpochIndex (r:1 w:0)
/// The range of component `i` is `[0, 1]`. /// The range of component `i` is `[0, 1]`.
fn on_initialize_with_balance(i: u32) -> Weight { fn on_initialize_with_balance(i: u32) -> Weight {
...@@ -66,7 +64,6 @@ impl WeightInfo for () { ...@@ -66,7 +64,6 @@ impl WeightInfo for () {
.saturating_add(RocksDbWeight::get().writes((6 as u64).saturating_mul(i as u64))) .saturating_add(RocksDbWeight::get().writes((6 as u64).saturating_mul(i as u64)))
} }
// Storage: Account PendingNewAccounts (r:1 w:0)
/// The range of component `i` is `[0, 1]`. /// The range of component `i` is `[0, 1]`.
fn on_initialize_no_balance(i: u32) -> Weight { fn on_initialize_no_balance(i: u32) -> Weight {
// Minimum execution time: 12_912 nanoseconds. // Minimum execution time: 12_912 nanoseconds.
......
...@@ -38,7 +38,6 @@ impl WeightInfo for () { ...@@ -38,7 +38,6 @@ impl WeightInfo for () {
// Storage: UniversalDividend CurrentUd (r:1 w:0) // Storage: UniversalDividend CurrentUd (r:1 w:0)
// Storage: System Account (r:1 w:1) // Storage: System Account (r:1 w:1)
// Storage: Account PendingNewAccounts (r:0 w:1)
fn transfer_ud() -> Weight { fn transfer_ud() -> Weight {
Weight::from_parts(53_401_000, 0) Weight::from_parts(53_401_000, 0)
.saturating_add(RocksDbWeight::get().reads(2)) .saturating_add(RocksDbWeight::get().reads(2))
...@@ -47,7 +46,6 @@ impl WeightInfo for () { ...@@ -47,7 +46,6 @@ impl WeightInfo for () {
// Storage: UniversalDividend CurrentUd (r:1 w:0) // Storage: UniversalDividend CurrentUd (r:1 w:0)
// Storage: System Account (r:1 w:1) // Storage: System Account (r:1 w:1)
// Storage: Account PendingNewAccounts (r:0 w:1)
fn transfer_ud_keep_alive() -> Weight { fn transfer_ud_keep_alive() -> Weight {
Weight::from_parts(33_420_000, 0) Weight::from_parts(33_420_000, 0)
.saturating_add(RocksDbWeight::get().reads(2)) .saturating_add(RocksDbWeight::get().reads(2))
......
...@@ -49,8 +49,6 @@ pub struct WeightInfo<T>(PhantomData<T>); ...@@ -49,8 +49,6 @@ pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> { impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
/// Storage: `System::Account` (r:2 w:2) /// Storage: `System::Account` (r:2 w:2)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`)
/// Storage: `Account::PendingNewAccounts` (r:0 w:1)
/// Proof: `Account::PendingNewAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn transfer_allow_death() -> Weight { fn transfer_allow_death() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `0` // Measured: `0`
...@@ -63,8 +61,6 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> { ...@@ -63,8 +61,6 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
} }
/// Storage: System Account (r:1 w:1) /// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) /// Proof: System Account (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen)
/// Storage: Account PendingNewAccounts (r:0 w:1)
/// Proof Skipped: Account PendingNewAccounts (max_values: None, max_size: None, mode: Measured)
fn transfer_keep_alive() -> Weight { fn transfer_keep_alive() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `0` // Measured: `0`
...@@ -77,8 +73,6 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> { ...@@ -77,8 +73,6 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
} }
/// Storage: System Account (r:2 w:2) /// Storage: System Account (r:2 w:2)
/// Proof: System Account (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) /// Proof: System Account (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen)
/// Storage: Account PendingNewAccounts (r:0 w:1)
/// Proof Skipped: Account PendingNewAccounts (max_values: None, max_size: None, mode: Measured)
fn force_transfer() -> Weight { fn force_transfer() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `64` // Measured: `64`
...@@ -115,8 +109,6 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> { ...@@ -115,8 +109,6 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
} }
/// Storage: `System::Account` (r:1 w:1) /// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`)
/// Storage: `Account::PendingNewAccounts` (r:0 w:1)
/// Proof: `Account::PendingNewAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn transfer_all() -> Weight { fn transfer_all() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `0` // Measured: `0`
......
...@@ -59,8 +59,6 @@ impl<T: frame_system::Config> pallet_duniter_account::WeightInfo for WeightInfo< ...@@ -59,8 +59,6 @@ impl<T: frame_system::Config> pallet_duniter_account::WeightInfo for WeightInfo<
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
/// Storage: `Account::PendingNewAccounts` (r:1 w:1)
/// Proof: `Account::PendingNewAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Babe::EpochIndex` (r:1 w:0) /// Storage: `Babe::EpochIndex` (r:1 w:0)
/// Proof: `Babe::EpochIndex` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) /// Proof: `Babe::EpochIndex` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// The range of component `i` is `[0, 1]`. /// The range of component `i` is `[0, 1]`.
...@@ -78,8 +76,6 @@ impl<T: frame_system::Config> pallet_duniter_account::WeightInfo for WeightInfo< ...@@ -78,8 +76,6 @@ impl<T: frame_system::Config> pallet_duniter_account::WeightInfo for WeightInfo<
.saturating_add(T::DbWeight::get().writes((6_u64).saturating_mul(i.into()))) .saturating_add(T::DbWeight::get().writes((6_u64).saturating_mul(i.into())))
.saturating_add(Weight::from_parts(0, 309).saturating_mul(i.into())) .saturating_add(Weight::from_parts(0, 309).saturating_mul(i.into()))
} }
/// Storage: `Account::PendingNewAccounts` (r:1 w:1)
/// Proof: `Account::PendingNewAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `System::Account` (r:1 w:1) /// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`)
/// Storage: `Babe::EpochIndex` (r:1 w:0) /// Storage: `Babe::EpochIndex` (r:1 w:0)
...@@ -99,8 +95,6 @@ impl<T: frame_system::Config> pallet_duniter_account::WeightInfo for WeightInfo< ...@@ -99,8 +95,6 @@ impl<T: frame_system::Config> pallet_duniter_account::WeightInfo for WeightInfo<
.saturating_add(T::DbWeight::get().writes((6_u64).saturating_mul(i.into()))) .saturating_add(T::DbWeight::get().writes((6_u64).saturating_mul(i.into())))
.saturating_add(Weight::from_parts(0, 309).saturating_mul(i.into())) .saturating_add(Weight::from_parts(0, 309).saturating_mul(i.into()))
} }
/// Storage: `Account::PendingNewAccounts` (r:1 w:1)
/// Proof: `Account::PendingNewAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `i` is `[0, 1]`. /// The range of component `i` is `[0, 1]`.
fn on_initialize_no_balance(i: u32, ) -> Weight { fn on_initialize_no_balance(i: u32, ) -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
......
...@@ -120,8 +120,6 @@ impl<T: frame_system::Config> pallet_treasury::WeightInfo for WeightInfo<T> { ...@@ -120,8 +120,6 @@ impl<T: frame_system::Config> pallet_treasury::WeightInfo for WeightInfo<T> {
/// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`) /// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
/// Storage: `Treasury::Proposals` (r:99 w:99) /// Storage: `Treasury::Proposals` (r:99 w:99)
/// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`) /// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`)
/// Storage: `Account::PendingNewAccounts` (r:0 w:99)
/// Proof: `Account::PendingNewAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `p` is `[0, 99]`. /// The range of component `p` is `[0, 99]`.
fn on_initialize_proposals(p: u32, ) -> Weight { fn on_initialize_proposals(p: u32, ) -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
...@@ -149,8 +147,6 @@ impl<T: frame_system::Config> pallet_treasury::WeightInfo for WeightInfo<T> { ...@@ -149,8 +147,6 @@ impl<T: frame_system::Config> pallet_treasury::WeightInfo for WeightInfo<T> {
/// Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(61), added: 2536, mode: `MaxEncodedLen`) /// Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(61), added: 2536, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:2 w:2) /// Storage: `System::Account` (r:2 w:2)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`)
/// Storage: `Account::PendingNewAccounts` (r:0 w:1)
/// Proof: `Account::PendingNewAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn payout() -> Weight { fn payout() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `180` // Measured: `180`
......
...@@ -72,8 +72,6 @@ impl<T: frame_system::Config> pallet_universal_dividend::WeightInfo for WeightIn ...@@ -72,8 +72,6 @@ impl<T: frame_system::Config> pallet_universal_dividend::WeightInfo for WeightIn
/// Proof: `UniversalDividend::CurrentUd` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) /// Proof: `UniversalDividend::CurrentUd` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:2 w:2) /// Storage: `System::Account` (r:2 w:2)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`)
/// Storage: `Account::PendingNewAccounts` (r:0 w:1)
/// Proof: `Account::PendingNewAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn transfer_ud() -> Weight { fn transfer_ud() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `157` // Measured: `157`
...@@ -88,8 +86,6 @@ impl<T: frame_system::Config> pallet_universal_dividend::WeightInfo for WeightIn ...@@ -88,8 +86,6 @@ impl<T: frame_system::Config> pallet_universal_dividend::WeightInfo for WeightIn
/// Proof: `UniversalDividend::CurrentUd` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) /// Proof: `UniversalDividend::CurrentUd` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1) /// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`)
/// Storage: `Account::PendingNewAccounts` (r:0 w:1)
/// Proof: `Account::PendingNewAccounts` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn transfer_ud_keep_alive() -> Weight { fn transfer_ud_keep_alive() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `93` // Measured: `93`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment