From 4ad7a1d5a49e4886ee3bf95013ea9ef5c3201e59 Mon Sep 17 00:00:00 2001 From: Eugene Kim Date: Mon, 29 Apr 2019 16:39:48 -0700 Subject: [PATCH] Teach txgen to use ChainReader for block rewards --- cmd/client/txgen/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/client/txgen/main.go b/cmd/client/txgen/main.go index 61f033dbe..c59b9ebb6 100644 --- a/cmd/client/txgen/main.go +++ b/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)