Questions tagged [pallet-staking]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

Pallet staking using assets pallet?

I'm trying to make pallet staking works with assets pallet. Lockable trait has already been implemented in a customized version of assets pallet but main issue remaining is that staking pallet issue ...
Xavier's user avatar
  • 415
0 votes
0 answers
12 views

Corrupted State Error on pallet-staking

We're getting these error during cargo test for pallet-staking, pallet-offences & pallet-nomination-pools after it is implemented locally in our node template without any modifications to the code....
Joby Reuben's user avatar
1 vote
1 answer
28 views

setup a constant inflation rate every era

trying to figure out a way to have a constant inflation rate for every era e.g to a 5% of total supply so any hint or clue how it goes with this configuration without setting min/max inflation into ...
Rehan's user avatar
  • 167
0 votes
1 answer
31 views

How to stake asset instead of currency?

I would like to customize POS by staking the asset balance instead of currency balance. After switching the consensus from PoA to PoS by changing AURA to BABE, I need to change the configuration of ...
MinhK's user avatar
  • 115
1 vote
0 answers
36 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
  • 353
2 votes
1 answer
44 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
60 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
  • 353
1 vote
1 answer
54 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
  • 827
2 votes
2 answers
110 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,229
2 votes
1 answer
37 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
37 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
83 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,229
-1 votes
1 answer
111 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,229
0 votes
2 answers
71 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
197 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
30 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
  • 353
2 votes
1 answer
27 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
  • 141
2 votes
1 answer
99 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
  • 425
0 votes
1 answer
63 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
158 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
122 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
  • 647
2 votes
0 answers
104 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
99 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
144 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
282 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
166 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
650 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
400 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
5 votes
0 answers
142 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
28 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