Comments (9)
only performing setKeys will report the error, others is normal
Aha, That' was the tidbit I needed. You will need to add this custom type on the
Settings
->Development
tab of the Apps UI.{ "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.
thx!!!!
from subport.
When i send session setKeys extrinsics, get error(session.setKeys 1010: Invalid Transaction: BadProof)
- call RPC: author.insertKey(aura & account & granpa )
- call RPC: author.rotateKeys, get session public key
- send extrinsics: session.setKeys(session public key, 0x00 )
get error: session.setKeys 1010: Invalid Transaction: BadProof)
from subport.
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/ ?
from subport.
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
from subport.
node log about error: Failed to submit extrinsic: Transaction pool error: Invalid transaction validity: InvalidTransaction::BadProof
from subport.
Did you get this error with the same version of the node template before you made your modifications?
from subport.
The v2.0.0-alpha.6 node template default is to not use the session at runtime, i'm no get this error.
I feel strange that only performing setKeys will report the error, others is normal
from subport.
only performing setKeys will report the error, others is normal
Aha, That' was the tidbit I needed. You will need to add this custom type on the Settings
-> Development
tab of the Apps UI.
{
"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.
from subport.
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
from subport.
Related Issues (20)
- Giedi: K-LAOS testing network HOT 1
- add Magnet Testnet HOT 2
- update magnet HOT 3
- Magnet parachain HOT 1
- OZ Local Tesnet Slot HOT 1
- Reset Magnet(4350) HOT 4
- Open HRMP Channel between Para ID 3344 and Rococo Asset Hub HOT 2
- Manget updates new paraid(4361) HOT 2
- Rococo Slot Request:paraid 4361 HOT 7
- Update Rococo's Parachain Onboarding Issue template
- Hyperbridge Testnet v2 HOT 1
- XCM invalid after successfully purchasing coretime
- Add Xode Network HOT 1
- Open HRMP Channel between Bifrost Para ID 2030 and Rococo Asset Hub HOT 3
- Open HRMP Channel between Curio Testnet Para ID 3339 and Rococo Asset Hub
- Xode Project HOT 1
- Parachain Onboarding ParaId: 4394 HOT 3
- Invo: : Rococo Slot Request HOT 3
- Upgrade Sora Parachain to parachain and set Management Account HOT 2
- Request a temporary slot. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from subport.