Don't return a double pointer.

This commit has no effect on the effective functionality since Go
automatically deferences pointers, but there is no reason to have a
double indirection when returning the reply for getmininginfo.
This commit is contained in:
Dave Collins 2014-07-09 01:32:56 -05:00
parent 9e60210f18
commit 6248dd5e5d

View file

@ -1316,7 +1316,7 @@ func handleGetMiningInfo(s *rpcServer, cmd btcjson.Cmd, closeChan <-chan struct{
}
}
result := &btcjson.GetMiningInfoResult{
result := btcjson.GetMiningInfoResult{
Blocks: height,
CurrentBlockSize: uint64(len(blockBytes)),
CurrentBlockTx: uint64(len(block.MsgBlock().Transactions)),