[genesis] fix merge error

Signed-off-by: Leo Chen <leo@harmony.one>
pull/985/head
Leo Chen 6 years ago
parent 0aa405a9c7
commit 4e3772fc3e
  1. 4
      core/resharding.go
  2. 2
      test/test_before_submit.sh

@ -231,7 +231,7 @@ func GetInitShardState() types.ShardState {
pubKey := types.BlsPublicKey{}
pubKey.FromLibBLSPublicKey(priKey.GetPublicKey())
// TODO: directly read address for bls too
curNodeID := types.NodeID{genesis.GenesisAccounts[index].Address, pubKey}
curNodeID := types.NodeID{common.HexToAddress(genesis.GenesisAccounts[index].Address), pubKey}
com.NodeList = append(com.NodeList, curNodeID)
}
@ -243,7 +243,7 @@ func GetInitShardState() types.ShardState {
pubKey := types.BlsPublicKey{}
pubKey.FromLibBLSPublicKey(priKey.GetPublicKey())
// TODO: directly read address for bls too
curNodeID := types.NodeID{genesis.GenesisFNAccounts[index].Address, pubKey}
curNodeID := types.NodeID{common.HexToAddress(genesis.GenesisFNAccounts[index].Address), pubKey}
com.NodeList = append(com.NodeList, curNodeID)
}
shardState = append(shardState, com)

@ -3,6 +3,8 @@
DIRROOT=$(dirname $0)/..
OS=$(uname -s)
export GO111MODULE=on
pushd $DIRROOT
./scripts/travis_checker.sh

Loading…
Cancel
Save