Questions tagged [session]
The session tag has no usage guidance.
36 questions
3
votes
1
answer
39
views
chain stop producing block after adding pallet-session
I'm working on the pow substrate chain with grandpa. For that I integrate the pallet-session and substrate-validator-set[https://github.com/gautamdhameja/substrate-validator-set/tree/master] to join ...
0
votes
1
answer
92
views
Solochain mainnet experiencing problems finalizing blocks after a few months
We are operating a custom Solochain NPOS blockchain with Substrate. After running a stable testnet for months, we promoted to mainnet version 1.
Initially the mainnet was operating normally, with ...
1
vote
0
answers
19
views
Which one is ExternalTrigger in BABE?
in this document it mentioned ExternalTrigger. So which pallet could be ExternalTrigger for BABE. and How to implement EpochChangeTrigger?
It also said that pallet-session could be used, but pallet-...
0
votes
1
answer
103
views
setting up pallet_session genesis keys in running chain
I am running a solo chain with Genesis authorities set up for AURA and GRANPA. Now I have to add new validators and for that, I am planning to add substrate_validator_set and pallet_session.
During ...
1
vote
1
answer
58
views
subxt: How to submit pallet_session::set_keys() extrinsic?
I have generated the session keys using the author.rotateKeys() RPC call. The keys are of type Vec<u8> and the length is 128 bytes.
I am trying to call the set_keys() method from pallet_session ...
3
votes
1
answer
53
views
Error in integration of pallet-session in chain-spec
I'm trying to add parachain-staking pallet in the solochain which is based on POA with Aura. For that I need to integrate pallet session but in the integrating of pallet-session in chain spec I'm ...
1
vote
1
answer
67
views
Way to force a new Session when using pallet_session?
There are likely reasons for this, but I'm not sure what they are yet.
In a parachain using pallet_session, is there a way for sudo/root/governance to force a session to rotate faster/cut a session ...
2
votes
1
answer
127
views
How to get the current session keys used by an active validator?
There are api.query.session.nextKeys and api.query.session.queuedKeys for obtaining the next session keys for a validator (doc).
But how do I query the current the session keys used by an active ...
1
vote
1
answer
100
views
Getting Error when i push session keys session.NoAssociatedValidatorId
I'm getting the error
session.NoAssociatedValidatorId
while inserting session keys, Although my Explorer is connect to same explorer and Keys are generated by using RPC->RotateKeys().
Any sort of ...
2
votes
2
answers
46
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?
3
votes
0
answers
51
views
Unified Accounts [closed]
We have followed the comets of moonBeam and implemented Unified Accounts. Now we're facing issues while adding session keys for aura, grandpa and I'm online.
we're using this method for Aura and ...
1
vote
0
answers
63
views
After skipping epoch, not able to perform any extrinsic
I bump into Session changes on reversion question and tried out the solution given by @bkchr, there was no unexpected epoch change error after an epoch is skipped due to finalisation getting stopped. ...
4
votes
1
answer
53
views
Custom session keys in Chainspec for Mainnet config
I've seen some Substrate repo's where the SessionKeys (Aura, Babe, Grandpa, etc) are used with unchecked_into() .While the stash/controller keys are only used with into().
These are some examples:
...
3
votes
1
answer
304
views
What happens in epoch of a blockchain?
I have been working on a substrate blockchain. I want to know about the events and process happening in each epoch of blockchain and what are the concepts behind the epoch?
2
votes
0
answers
83
views
Offence reported by ImOnline pallet for running nodes
I'm playing around with a custom hybrid PoW/PoA block production mechanism based on sp_consensus_pow import queue.
As the PoW results are generated outside of Substrate, a trusted authority node set ...
2
votes
2
answers
81
views
How to implement a session progress bar for parachain?
Polkadot has this:
And I hope I can have one for my parachain.
There is a session pallet on my parachain.
And the session period is readable from the constant.
So, I think this is possible.
0
votes
1
answer
97
views
How to list waiting validators?
We can list the active set with session::validators() and/or babe::authorities()
How to list waiting validators though?
1
vote
1
answer
197
views
Is it possible to start a substrate BABE blockchain with no Grandpa authorities and BABE validators?
I'm trying to implement a PoS network on substrate using substrate provided pallets - pallet_session, pallet_staking, pallet_babe, etc. The current Runtime and chain spec implementation is similar to ...
1
vote
1
answer
59
views
Why the block author is always `Alice`?
I implemented my own staking pallet, which implemented the SessionManager. And I pass it to pallet_session::Config.
I can confirm the session keys are set correctly.
If I stop the Alice node, then the ...
1
vote
1
answer
135
views
Change session keys in new chain spec
Chain spec primary_chain is defined under node/src/chain_spec.rs
Steps to reproduce:
generate default chain spec for primary_chain
./collator build-spec --chain primary_chain > spec.json
Edit ...
2
votes
1
answer
36
views
Failure of election for next session
Just a clarification, suppose that the pallet_session::rotate_session is not able to retrieve the next validation set due to an election failure inside the pallet_staking::new_session function.
Is ...
0
votes
1
answer
155
views
Trying to get OneSessionHandler to trigger in custom pallet
I am trying to split our validators of a substrate chain into signing subgroups for key signing purposes.
The OneSessionHandler gives me the perfect information I need to do this. On the end of each ...
2
votes
0
answers
108
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 ...
5
votes
0
answers
93
views
fp_evm::GenesisAccount causes StakingElection.fail
As the title says, I have added EVM Compatibility to my NPoS runtime(using chainsafe/substrate-node-template), and when i run my node with Alice and Bob validators, the StakingElection begins to fail.
...
1
vote
1
answer
290
views
how to verify that my validator has the right session keys
I want to write a sanity check that my node has the right session keys configured, based on the stash address:
let nextKeys = await api.query.session.nextKeys(stash_account);
console.log(`Node's ...
4
votes
2
answers
171
views
How do you tell which block number the last runtime upgrade happened on a chain?
How do you efficiently tell which block number the last runtime upgrade happened on for a particular chain (without reading every block)?
A couple of people have hinted to me that the answer is in a ...
5
votes
1
answer
151
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 ...
2
votes
1
answer
117
views
Pallet session: QueuedKeys vs NextKeys
I need to interact with pallet_session, in particular to read validator set for the next session. As far as I understand, this data is stored in two places:
QueuedKeys, which is just Vec<(T::...
1
vote
1
answer
105
views
What event marks a Validator as selected for next session
Under Network > Staking > Targets we can see some validators are selected for the next session / active set.
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fkusama-rpc.polkadot.io#/staking/...
1
vote
1
answer
197
views
How to call session.set_keys from the CLI?
https://wiki.polkadot.network/docs/maintain-guides-how-to-validate-polkadot#submitting-the-setkeys-transaction
Upto this point in the documentation, it's easy to get a session key from calling rotate ...
4
votes
1
answer
130
views
How get the starting Time of a an EraIndex?
I would like to have the start of an era by eraIndex like:
const startingTime = getStartTimeOf( eraIndex );
Thank you.
3
votes
1
answer
88
views
Writing a test to call staking.chill() so as to remove Charlie as a Validator
I am trying to write a test on PolkadotJS to chill Charlie Account so as to remove Charlie as a validator and then ascertain that Charlie has been removed. But, Charlie does not seem to have been ...
6
votes
1
answer
706
views
What does author_rotateKeys do?
I've seen in some guides suggesting to set Session Keys for validating. My concepts of session keys are that they are an amalgation of 4 keys, that will be used instead of the stash or controller keys ...
6
votes
1
answer
92
views
Why do changes to the Validator set require a one Session delay?
This comment in the Session pallet states:
/// Move on to next session. Register new validator set and session keys. Changes to the
/// validator set have a session of delay to take effect. This ...
2
votes
1
answer
75
views
SessionsPerEra doesn't seem to be affecting sessions per era
Am I fundamentally misunderstanding how staking handles election timings, please? I've been trying to change the number of eras in a session, to increase the number of elections for testing.
I ...
8
votes
1
answer
62
views
What is the KeyOwnerProofSystem in BABE config?
In the pallet_babe config one can see the type KeyOwnerProofSystem as being set to Historical which is a reference to pallet_session::historical.
What functions does a KeyProofSystem serve? What is it ...