Open IronGauntlets opened 6 years ago
have u solved this problem yet?
Yes, I discovered the problem is here, the authors force set the node key as mining ether-base then this means the validators added in the genesis are not responsible for creating a block, therefore I get "unauthorized address"
.
Please refer here for my hack (this is not a solution) around this problem.
Hi all. Please open new issues at the currently updated iteration of this repo located here: https://github.com/jpmorganchase/istanbul-tools/
@aneequesafdar I'm getting same error. How did you exactly solve this issue..?
@abhayar please use this https://github.com/clearmatics/eth-private-network/tree/istanbul_private-network/istanbul
@aneequesafdar Thanks,I refered the same. Now coinbase & eth.account[0] are same but still getting same error
The error must be something else, it would be helpful to see your trace
@markya0616 @yutelin @alanchchen @bailantaotao @tailingchen I am trying to set a private Istanbul network, however, every client I bring up has a coinbase/etherbase which I didn't create and
eth.accounts[0]
is not equal toeth.coinbase
, because of which the coinbase/etherbase address is not in validator set and hence network just halts thus nothing proceeds. Even using--etherbase
flag to set the ehterbase base doesn't change it. Can you please tell me how the etherbase is set differently to the account I have in my keystore and how do I make sure that the client is started with the correct coinbase/etherbase?How do I create a network with existing accounts where Istanbul automatically recognises the account in keystore, like in other consensus algorithms?In the backtrace, the unauthorised addresses are which is set by the client and unlocked accounts are the desired addresses which should have been set by the client and are in the validator set.
Steps to reproduce the behaviour
I have a bash script which takes in 2 arguments: 'location of geth binary' and 'the number of nodes to bring up the network', the following creates a network for 2 nodes which are connected using a bootnode (both files need to be in the same directory):
The script creates a new network everytime as well as a new tmux session, so please kill the tmux session before the script is run again.
istprivatenetwork.sh:
updategenesis.js:
Backtrace
Node1:
Node2: