-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
session.setKeys 1010: Invalid Transaction: BadProof #15
Comments
|
Can you tell us a little more information about your configuration? What node did you build? Maybe it was the node template? Or the default Substrate node? How are you submitting the extrinsic? Maybe using https://polkadot.js.org/apps/ ? |
hello, it was the node template, i implemented a POA Validator Set: my runtime lib.rs: // session key
pub mod opaque {
// -------------------------------snip
impl_opaque_keys! {
pub struct SessionKeys {
pub aura: Aura,
pub grandpa: Grandpa,
}
}
}
// -------------------------------snip
// my poa pallet
impl xmc_poa::Trait for Runtime {
type VsChecker = xmc_poa::DefaultValidatorSetSizeChecker;
type Event = Event;
}
// -------------------------------snip
// session pallet
impl session::Trait for Runtime {
type Event = Event;
type ValidatorId = <Self as system::Trait>::AccountId;
type ValidatorIdOf = xmc_poa::ValidatorOf<Self>;
type ShouldEndSession = Poa;
type NextSessionRotation = Poa;
type SessionManager = Poa;
type SessionHandler = <opaque::SessionKeys as OpaqueKeys>::KeyTypeIdProviders;
type Keys = opaque::SessionKeys;
type DisabledValidatorsThreshold = DisabledValidatorsThreshold;
} i used https://polkadot.js.org/apps/ submitting the extrinsic ------> session.setKeys() i found the error which is tx pool error: 1010: Invalid Transaction: BadProof |
node log about error: Failed to submit extrinsic: Transaction pool error: Invalid transaction validity: InvalidTransaction::BadProof |
Did you get this error with the same version of the node template before you made your modifications? |
The v2.0.0-alpha.6 node template default is to not use the session at runtime, i'm no get this error. |
Aha, That' was the tidbit I needed. You will need to add this custom type on the {
"Keys": "SessionKeys2"
} This assumes that you do indeed have two session keys (one for Aura and one for Grandpa). The Apps UI assumes that there are 5 session keys by default because this is what the full Substrate node and Polkadot use. When you add the session pallet to your node that has only two session keys, you need to tell the UI about it so it can encode the transaction properly. |
There's a video recording of us experiencing this same issue and solving it at Substrate seminar here (link starts at the right time) https://www.youtube.com/watch?v=89qLUZeB4WU&list=PLp0_ueXY_enXRfoaW7sTudeQH10yDvFOS%3Ft%3D4250 |
thx!!!! |
When i send session setKeys extrinsics, get error(session.setKeys 1010: Invalid Transaction: BadProof)
get error: session.setKeys 1010: Invalid Transaction: BadProof)
how can i set session key for validator
The text was updated successfully, but these errors were encountered: