Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Benchmark pallet sudo #13880

Merged
merged 24 commits into from
May 11, 2023
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
086d363
set_key
Doordashcon Apr 11, 2023
0319a2f
v2
Doordashcon Apr 18, 2023
6e16a8c
Merge branch 'master' into ddc-OG
Doordashcon Apr 18, 2023
6cccbfe
update runtime
Doordashcon Apr 18, 2023
7b5817b
Merge branch 'ddc-OG' of https://github.com/Doordashcon/substrate int…
Doordashcon Apr 18, 2023
fd71be3
cargo fmt
Doordashcon Apr 18, 2023
823d98b
remove commenting
Doordashcon Apr 18, 2023
e082fec
Merge branch 'master' of https://github.com/paritytech/substrate into…
Apr 19, 2023
5078939
".git/.scripts/commands/bench/bench.sh" pallet dev pallet_sudo
Apr 19, 2023
01a597a
impl weights
Doordashcon Apr 20, 2023
811d52d
Merge branch 'paritytech:master' into ddc-OG
Doordashcon Apr 23, 2023
fe6e0a4
Merge branch 'paritytech:master' into ddc-OG
Doordashcon Apr 24, 2023
1890456
sudo & sudo_as
Doordashcon May 1, 2023
885b7b0
Merge branch 'paritytech:master' into ddc-OG
Doordashcon May 3, 2023
28878cf
where
Doordashcon May 6, 2023
6d9d079
Merge branch 'paritytech:master' into ddc-OG
Doordashcon May 6, 2023
f931e7b
Merge branch 'paritytech:master' into ddc-OG
Doordashcon May 8, 2023
e38b8a9
Merge branch 'master' of https://github.com/paritytech/substrate into…
May 9, 2023
891a949
".git/.scripts/commands/bench/bench.sh" pallet dev pallet_sudo
May 9, 2023
8ffafdf
update weights
Doordashcon May 9, 2023
ff180b3
cargo fmt
Doordashcon May 9, 2023
ff4405c
Merge branch 'paritytech:master' into ddc-OG
Doordashcon May 10, 2023
fc1d8af
Merge branch 'paritytech:master' into ddc-OG
Doordashcon May 10, 2023
6c3acef
Update Cargo.lock
ggwpez May 10, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update weights
  • Loading branch information
Doordashcon authored May 9, 2023
commit 8ffafdfc280c926e584fad2ce7f544e9e85b0fa6
9 changes: 5 additions & 4 deletions frame/sudo/src/lib.rs
Doordashcon marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ pub mod pallet {
#[pallet::call_index(0)]
#[pallet::weight({
let dispatch_info = call.get_dispatch_info();
(dispatch_info.weight, dispatch_info.class)
(
T::WeightInfo::sudo().saturating_add(dispatch_info.weight),
dispatch_info.class
)
})]
pub fn sudo(
origin: OriginFor<T>,
Expand Down Expand Up @@ -230,9 +233,7 @@ pub mod pallet {
#[pallet::weight({
let dispatch_info = call.get_dispatch_info();
(
dispatch_info.weight
// AccountData for inner call origin accountdata.
.saturating_add(T::DbWeight::get().reads_writes(1, 1)),
T::WeightInfo::sudo_as().saturating_add(dispatch_info.weight),
dispatch_info.class,
)
})]
Expand Down