mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 09:50:08 +01:00
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:
parent
9e60210f18
commit
6248dd5e5d
@ -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)),
|
||||
|
Loading…
Reference in New Issue
Block a user