I was following these tutorial: start a local relay chain and connect a local parachain. Everything went fine.
Then next I tried to run another collator ( let's call this custom-parachain
) binary instead of parachain-collator
( both are based on polkadot v0.9.24)
I created a raw-spec file with correct paraId
and tried to run custom-collator
the same way I ran parachain-collator
. But custom-collator
is NOT acting as collator.
While I do all this: I left ./polkadot --alice --validator
and ./polkadot --bob --validator
running in seperate terminal
Only reason I could this why it is not working as expected is that there is some relation between chain spec used to run validator ( here ) and spec generated by parachain-collator
.
But when I use custom-collator
with it's generated raw spec, it's not acting as validator. When running parachain-collator
I could see logs like:
2022-07-0720:46:18 [Relaychain] 🥩 New Rounds for validator set id: 2 with session_start 21
2022-07-07 0:46:18 [Relaychain] 🥩 New Rounds for validator set id: 3 with session_start 31
2022-07-07 20:46:18 [Relaychain] 🥩 New Rounds for validator set id: 4 with session_start 41
But running custom-parachain
logs are:
2022-07-07 0:48:09 💤 Idle (1 peers), best: #174 (0x8601…c0ec), finalized #161 (0xf1c3…087f), ⬇ 35.2kiB/s ⬆ 2.4kiB/s
2022-07-07 0:48:09 💤 Idle (0 peers), best: #0 (0x98d0…0f65), finalized #0 (0x98d0…0f65), ⬇ 1.3kiB/s ⬆ 1.1kiB/s
2022-07-07 0:48:14 💤 Idle (1 peers), best: #174 (0x8601…c0ec), finalized #170 (0x68a7…d58a), ⬇ 1.3kiB/s ⬆ 0.7kiB/s
2022-07-07 0:48:14 💤 Idle (0 peers), best: #0 (0x98d0…0f65), finalized #0 (0x98d0…0f65), ⬇ 0.1kiB/s ⬆ 0.1kiB/s
./collator --collator --alice --ws-port _ --port _ --chain _ -- --execution wasm --chain _