Teach txgen to use ChainReader for block rewards

pull/784/head
Eugene Kim 6 years ago
parent 78a554d28e
commit 4ad7a1d5a4
  1. 2
      cmd/client/txgen/main.go

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

Loading…
Cancel
Save