bsc icon indicating copy to clipboard operation
bsc copied to clipboard

how to be validator in private bsc network

Open huahuayu opened this issue 2 years ago • 9 comments

Hi, I want start a private bsc network for test purpose, in etherem I can simply use --mine flag to set the node be a miner, but it's not working in bsc.

I searched the issues and read the documents, it seems a bnbcli command can be used, but it's for production. Could you please provide some guidelines?

It's very simple in ethereum https://github.com/huahuayu/ethereum-local-private-network

huahuayu avatar Mar 23 '22 08:03 huahuayu

Hi @steventranjs is there a straightforward way to create a validator and run it.

huahuayu avatar Mar 23 '22 10:03 huahuayu

do you have any specific purpose to test the validator node, we don't have docs for setting up private validators for now.

yutianwu avatar Mar 23 '22 13:03 yutianwu

Hi @yutianwu I need a local test env which can lunch within mins and have fully control so I can test things out. Without validator there is no block be produced.

huahuayu avatar Mar 24 '22 01:03 huahuayu

you can set up a private ethereum node, it's the same

yutianwu avatar Mar 24 '22 02:03 yutianwu

I made some changes for bsc node to speed up the trading, so I'd like to use bsc node to test. I think you do have benchmark tests besides mainnet?

People have needs to test in the private chain, for time-saving and cost-saving, there's other issues mentioned the same problem https://github.com/bnb-chain/bsc/issues/788 https://github.com/bnb-chain/bsc/issues/231

huahuayu avatar Mar 24 '22 02:03 huahuayu

Hi, I want start a private bsc network for test purpose, in etherem I can simply use --mine flag to set the node be a miner, but it's not working in bsc.

I searched the issues and read the documents, it seems a bnbcli command can be used, but it's for production. Could you please provide some guidelines?

It's very simple in ethereum https://github.com/huahuayu/ethereum-local-private-network

the git repository you mentioned has a bsc branch, does this work?

haliliceylan avatar Apr 06 '22 08:04 haliliceylan

Hi, I want start a private bsc network for test purpose, in etherem I can simply use --mine flag to set the node be a miner, but it's not working in bsc. I searched the issues and read the documents, it seems a bnbcli command can be used, but it's for production. Could you please provide some guidelines? It's very simple in ethereum https://github.com/huahuayu/ethereum-local-private-network

the git repository you mentioned has a bsc branch, does this work?

yes, it works, it can start a three-node network, one miner two peers, but the network is not same as bsc production.

huahuayu avatar Apr 06 '22 09:04 huahuayu

Hi, I want start a private bsc network for test purpose, in etherem I can simply use --mine flag to set the node be a miner, but it's not working in bsc. I searched the issues and read the documents, it seems a bnbcli command can be used, but it's for production. Could you please provide some guidelines? It's very simple in ethereum https://github.com/huahuayu/ethereum-local-private-network

the git repository you mentioned has a bsc branch, does this work?

yes, it works, it can start a three-node network, one miner two peers, but the network is not same as bsc production.

what do you mean by as bsc production, chain id or something else

yutianwu avatar Apr 06 '22 11:04 yutianwu

Basically, the genesis config is different, and there's no validator, I just use --miner flag.

huahuayu avatar Apr 07 '22 04:04 huahuayu