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 Bob
start to produce blocks.
Why Alice
always get the authority to produce block?
Code: https://github.com/darwinia-network/darwinia-2.0/blob/xavier/staking/pallet/staking/src/lib.rs
new_session
for your pallet is correct? Have you checked the validators are correct? You can get them from a running chain via the explorer: Chain State > session > validators.Alice
node, thenBob
starts to produce blocks. Which means the keys are correct.[Alice, Bob]
, then both should be producing blocks equally, so there is more than likely an issue somewhere between your pallet and the set of aura authorities.