Questions tagged [pallet-staking]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
13 views

How to implement multi-currency staking?

I was wondering what would be the best way to achieve multi-currency staking given: It's on a solo chain Foreign assets are bridged (like Eth or BTC, pallet-asset can be used) No conversion from ...
Leouarz's user avatar
  • 199
2 votes
1 answer
28 views

Allow specific accounts to make extrinsic calls

In our case, validators are providing multiple different services and I want to restrict them from un-staking or making unbound calls until they have completed the job. I can set a BaseCall filter to ...
salman01z's user avatar
  • 527
1 vote
1 answer
38 views

How to burn the tokens treasury gets from staking inefficiency?

the main point is in the question itself. Let's assume the inflation rate varies between 1% and 10%. However, in the end, the inflation will always be 10%. In this link, you can find reasons for why ...
Leouarz's user avatar
  • 199
1 vote
1 answer
29 views

Node template with POS Babe consensus: Removal of Unnecessary Extra Pallets

Here is the node template with Babe: https://github.com/paritytech/substrate/blob/6a946fc36d68b89599d7ca1ab03803d10c78468c/bin/node/runtime/src/lib.rs#L1583 The above template is functioning smoothly ...
Ajit's user avatar
  • 775
2 votes
2 answers
89 views

How to fix the trait `parity_scale_codec::MaxEncodedLen` is not implemented for `parity_scale_codec::Compact<sp_runtime::Perbill>`?

When building my parachain, I run into the error: error[E0277]: the trait bound `parity_scale_codec::Compact<sp_runtime::Perbill>: parity_scale_codec::MaxEncodedLen` is not satisfied --> /...
Ganesh11's user avatar
  • 1,208
2 votes
1 answer
34 views

Benchmarking in a cusom pallet requires a storage put operation in Staking pallet

Let's say I have a pallet_x. In this pallet i have an extrinsic where I get the active_era using the below code : Staking::<T>::active_era() .map(|e| e....
Immanuel John's user avatar
2 votes
2 answers
33 views

How to query the waiting validators in past eras?

Getting the current active validators could be done. Also getting the past Active validators also can be queried using EraStakers in staking pallet. How to query waiting validators by Era Index?
Immanuel John's user avatar
2 votes
1 answer
77 views

Why my node doesn't create any block?

I Added pallet-staking and it's build fine. When I'm running the node in dev mode using ./target/release/node-template --dev this command, it doesn't create any blocks. Can someone point out me why ...
Ganesh11's user avatar
  • 1,208
-1 votes
1 answer
65 views

The trait bound is not satisfied

I am using staking-pallet in my runtime here , added all the requirements and after that I try to check dependencies using cargo check -p node-template-runtime --release this command but I'm getting ...
Ganesh11's user avatar
  • 1,208
0 votes
2 answers
61 views

Unable to unbond all the funds present in the locks

I'm unbonding all the staking funds of the validators. After unbonding, all the funds are going to locked and they are moving into transferrable balance. But I'm able to transfer some funds from ...
Arunjot Singh's user avatar
1 vote
1 answer
162 views

the trait `std::clone::Clone` is not implemented for `Nominations<T>`

I was making a new event in the function nominate of Staking pallet which is going to show when the nominator is going to be added. But i facing one issue #[pallet::call_index(5)] #[pallet::weight(...
Arunjot Singh's user avatar
0 votes
1 answer
28 views

How to regenerate the voterlist

Since I have an issue with the voterlist in a solo chain, what would be the correct way to trigger unsafe_regenerate from the bagslist pallet instance in the staking pallet ? https://paritytech.github....
Leouarz's user avatar
  • 199
1 vote
1 answer
23 views

Pallet Call Indicies are Conflicting Error

This error cropped up somewhat unexpectedly, and I am not sure how it came to be. Nevertheless, it appears that 2 runtime calls, set_commission (a new function being added in the PR in question) and ...
Ross's user avatar
  • 131
2 votes
1 answer
92 views

Help for Staking Pallet! Preventing oversubscription on validator nodes

Does anyone know the difference between maxNominatorsCount and maxNominatorRewardedPerValidator in Staking pallet? Which one is responsible for causing oversubscription on validator nodes?
Josh's user avatar
  • 415
0 votes
1 answer
58 views

How could I get that reward amount of the nominator

As a developer,I want to use the interface to search this information: which can get the amount which nominator has been rewarded at every era and staking?
Rose's user avatar
  • 305
3 votes
2 answers
145 views

Staking Election Failed (staking.StakingElectionFailed The election failed. No new era is planned. ) after adding EVM with NPOS(i.e BABE)

I have Added EVM pallet to my NPOS based Substrate chain but i am facing staking.StakingElectionFailed The election failed. No new era is planned. how to solve this issue. I have implemented the NPOS ...
Amit Kumar Yadav's user avatar
1 vote
1 answer
93 views

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

If I have a pallet that depends on the staking pallet, and for example one of the functions needs access to the active era, how can I set up the test environment so that I can actually test this? Let'...
Szegoo's user avatar
  • 623
2 votes
0 answers
89 views

Collator not producing block

Changes made In previous version things were fine. In this change, I added pallet-staking in the collator. Here Staking is pallet_staking::{Pallet,...} Configured pallet_staking with reference ( but ...
Sudip Ghimire's user avatar
0 votes
1 answer
90 views

Staking locking vs reserving

I am trying to understand why locking a balance is used instead of reserving when staking?
Yatusabes's user avatar
  • 766
5 votes
1 answer
133 views

Benchmark session pallet fails without pallet_staking

my lovely Substrate-Heros, at the moment I try to benchmark the FRAME pallets of our custom runtime. Unfortunately, I ran into an error while benchmarking the session pallet. I copied the ...
Janislav's user avatar
  • 319
5 votes
1 answer
234 views

Pallets needed for staking

Can anyone please explain what are the different types of pallets we need to add to a runtime in order to integrate staking into our runtime?
Deepak Chaudhary's user avatar
3 votes
1 answer
147 views

Staking rewards for collator services

How to add Staking rewards for collator services for Node operators ?
Deepak Chaudhary's user avatar
6 votes
1 answer
592 views

How can the Substrate staking pallet be used in a parachain?

Staking pallet allows a chain to elect validators/collators with respect to their stake. There are multiple ways in staking pallet to implement ElectionProvider (both on-chain and off-chain) which ...
Gautham J's user avatar
  • 116
4 votes
2 answers
371 views

Local network does not change validator set

Currently, we have a local test net with 4 substrate nodes using this runtime which has the staking and session pallets. 2 nodes (Alice and Bob) are validators, placed in the chain spec json file and ...
eclesiomelo's user avatar
3 votes
0 answers
116 views

Why has finalization stopped?

So I have a validator_count of 2, and 1 as minimum_validator_count. My validator is always online. I had my friend make another validator, had it enter the active validator set, and then join in as a ...
Purple_Turtle's user avatar
2 votes
0 answers
24 views

Grandpa authorities in the context of pallet-staking

In pallet-staking's genesis config there are two items : pub validator_count: u32, pub minimum_validator_count: u32, Question : How are we to interpret them in the context of Grandpa finality? I know ...
Purple_Turtle's user avatar