|
|
@ -127,6 +127,7 @@ func main() { |
|
|
|
c := &consensus.Consensus{ShardID: shardID} |
|
|
|
c := &consensus.Consensus{ShardID: shardID} |
|
|
|
node := node.New(host, c, nil, false) |
|
|
|
node := node.New(host, c, nil, false) |
|
|
|
c.SetStakeInfoFinder(gsif) |
|
|
|
c.SetStakeInfoFinder(gsif) |
|
|
|
|
|
|
|
c.ChainReader = node.Blockchain() |
|
|
|
// Assign many fake addresses so we have enough address to play with at first
|
|
|
|
// Assign many fake addresses so we have enough address to play with at first
|
|
|
|
nodes = append(nodes, node) |
|
|
|
nodes = append(nodes, node) |
|
|
|
} |
|
|
|
} |
|
|
@ -142,6 +143,7 @@ func main() { |
|
|
|
clientNode.Client = client.NewClient(clientNode.GetHost(), shardIDs) |
|
|
|
clientNode.Client = client.NewClient(clientNode.GetHost(), shardIDs) |
|
|
|
|
|
|
|
|
|
|
|
consensusObj.SetStakeInfoFinder(gsif) |
|
|
|
consensusObj.SetStakeInfoFinder(gsif) |
|
|
|
|
|
|
|
consensusObj.ChainReader = clientNode.Blockchain() |
|
|
|
|
|
|
|
|
|
|
|
readySignal := make(chan uint32) |
|
|
|
readySignal := make(chan uint32) |
|
|
|
|
|
|
|
|
|
|
|