Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 28
2 votes
Accepted

How to test a pallet that depends on the staking pallet?

You will need to add the Staking Pallet into your mock construct_runtime!: From frame/session/benchmarking/src/mock.rs: frame_support::construct_runtime!( pub enum Test where Block = Block …
Shawn Tabrizi's user avatar
  • 16.3k
5 votes
Accepted

Benchmark session pallet fails without pallet_staking

You are correct that the benchmarking for the Session pallet depends on the Substrate Staking pallet also be used. If you do not use the Substrate staking pallet, you cannot (and should not) use the b …
Shawn Tabrizi's user avatar
  • 16.3k