Open hbulgarini opened 3 months ago
Did you try to do this ?
I haven't modified the plain spec manually yet, was focused on fixing whatever might be happening on the chain spec generator side that is not producing the right output(?).
Well worth a try! Thanks for spending some time @PierreBesson, appreciate it
Can you show that file you have in keystore, you should see file staring with 0x61757261
+ pub key?
Can you also run RPC call on parachain 1:
author.hasKey(publicKey, keyType)
author.hasSessionKeys(sessionKeys)
for example:
author.hasKey(0x2f430c4b3caebdb85bfe2ec034152fb2f110749b94283262bfb0226161f0b1f5, 'aura')
author.hasSessionKeys(0x617572612f430c4b3caebdb85bfe2ec034152fb2f110749b94283262bfb0226161f0b1f5)
you should get true
for both calls.
https://github.com/paseo-network/runtimes/pull/53
This should get us going!
@BulatSaif
As per the above comment I have made some changes to my local set up. Though, before that I did check those RPC calls and everything seemed correct. My node was using Alice
keys, and checking for the corresponding ED25519
for its session keys was returning no errors.
At the same time I believe I must have overlooked something, when the collator was trying to produce blocks I was getting the following error in the logs:
2024-03-14 13:38:18.039 ERROR tokio-runtime-worker aura::cumulus: [Parachain] err=CannotSign("Validation error: Requested public key and public key of the loaded private key do not match. \n\n\t\t\tThis means either that the keystore password is incorrect or that the private key was stored under a wrong public key.. Key: Public(88dc3417d5058ec4b4503e0c12ea1a0a89be200fe98922423d4334014fa6b0ee (5FA9nQDV...))")
I have opened a PR that moves away from using ED25519
for the collator session keys and uses SR25519
instead. While being the usual, we wanted to keep this as close to Polkadot as possible, even mirroring these little details to provide the closes testing environment.
The paseo core team is looking to deploy the asset hub, but first we want to do a cycle of local testing.
Branch: https://github.com/paseo-network/runtimes/tree/hb-paseo-assethub-testing
Even having everything set and configured correctly in the assethub chain spec, the parachain does not produce blocks locally when it should.
Below are the steps to reproduce the error:
Build chain-spec-generator
Create raw chains specs:
Start relay chain with zombienet:
paseo-local.toml
:Once the relay chain started, start both collators:
Inject the following keys:
These are the keys used for both aura keys:
Please note we are using the right scheme (ed25519) taking into account the Polkadot AssetHub was launched with aura key under ed25519.