bnb-chain / bsc-docker

49 stars 31 forks source link

Does parlia consensus work running single validator node? #2

Closed mohamedelshami closed 2 years ago

mohamedelshami commented 3 years ago

This bsc-docker is very helpful in getting private testnet BSC up and running in no time.

I was also looking for a way to run a single BSC node that acts as a validator and RPC at the same time for local development.

I've configured genesis with a single sealer, and its the only account unlocked in Geth command options.

It appears however that as soon as epoch block is reached, the node halts with 'unauthorized validator' error - this indicates that the node is trying to rotate the sealer.

So I'm not sure if what I'm trying to do is allowed by the consensus.

steventranjs commented 2 years ago

@mohamedelshami it seem the chainid of the genesis file is 97, which is bsc testnet I think you need a genesis file of private network, just like the single node bsc cluster in the bsc-docker

mohamedelshami commented 2 years ago

@steventranjs I don't think it matters for the private local node as long as chain Id remains consistent in both genesis and validators setup

steventranjs commented 2 years ago

@mohamedelshami could u help to change the genesis to something rather than testnet ID? Cause it may sync with validator on testnet and cause problems