paritytech / cumulus

Write Parachains on Substrate
GNU General Public License v3.0
618 stars 378 forks source link

Parachain cannot produce block #292

Closed chenzongxiong closed 3 years ago

chenzongxiong commented 3 years ago

I set up relay chain (dev) on my own local machine, and connect my own parachain with relay chain. However, I found that the parachain cannot produce new blocks

image

I turn on the debug log of parachain and found the following logs image

image

The command to start parachain is

alice=12D3KooWNP5jdUCjeJpZTifTAy6az1F6pnzKxCdK5WQsiGZE85d8
bob=12D3KooWF3Rz4hBs2jes5zur9CN52HjB8ndhTLDaTutc8L5Dwn6L

./target/release/rococo-collator \
    --tmp \
    --ws-port 9988 \
    --parachain-id 1984 \
    --collator \
    --  \
    --chain rococo-local-cfde-real-overseer.json \
    --name cumulus \
    --execution wasm \
    --port 30337 \
    --bootnodes /ip4/192.168.1.104/tcp/30333/p2p/$alice \
    --bootnodes /ip4/192.168.1.104/tcp/30334/p2p/$bob

And I found that the parent hash of parachain is 0x0000000000000000 image

I run the following command to generate chain spec (see https://github.com/paritytech/cumulus/tree/master).

./target/release/polkadot build-spec \
    --chain rococo-local \
    --disable-default-bootnode --raw > rococo-local-cfde-real-overseer.json

image

The commands to start relay chain are:

./target/release/polkadot \
    --chain rococo-local-cfde-real-overseer.json \
    --tmp \
    --ws-port 9944 \
    --port 30333 \
    --alice
./target/release/polkadot \
    --chain rococo-local-cfde-real-overseer.json \
    --tmp \
    --ws-port 9955 \
    --port 30334 \
    --bob

This relay chain is compiled on tag v0.8.27 (polkadot repo), not branch rococo-v1. One more problem, I also received the following logs in my own parachain

image

bkchr commented 3 years ago

This relay chain is compiled on tag v0.8.27 (polkadot repo), not branch rococo-v1.

This is wrong, everything must use this branch. Also the relay chain.

chenzongxiong commented 3 years ago

I switched to branch rococo-v1, and still encountered the problems.

This relay chain is compiled on tag v0.8.27 (polkadot repo), not branch rococo-v1.

This is wrong, everything must use this branch. Also the relay chain.

bkchr commented 3 years ago

Did you compile with the --feature=real-overseer?

chenzongxiong commented 3 years ago

Did you compile with the --feature=real-overseer?

Yes. I followed the commands in README.md

bkchr commented 3 years ago

Could you try to run all nodes with --discover-local?

chenzongxiong commented 3 years ago

works now. thanks