bsc
bsc copied to clipboard
how to be validator in private bsc network
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
Hi @steventranjs is there a straightforward way to create a validator and run it.
do you have any specific purpose to test the validator node, we don't have docs for setting up private validators for now.
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.
you can set up a private ethereum node, it's the same
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
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?
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 abnbcli
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-networkthe 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.
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 abnbcli
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-networkthe 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
Basically, the genesis config is different, and there's no validator, I just use --miner flag.