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
1 changed files with 1 additions and 1 deletions
|
@ -1316,7 +1316,7 @@ func handleGetMiningInfo(s *rpcServer, cmd btcjson.Cmd, closeChan <-chan struct{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
result := &btcjson.GetMiningInfoResult{
|
result := btcjson.GetMiningInfoResult{
|
||||||
Blocks: height,
|
Blocks: height,
|
||||||
CurrentBlockSize: uint64(len(blockBytes)),
|
CurrentBlockSize: uint64(len(blockBytes)),
|
||||||
CurrentBlockTx: uint64(len(block.MsgBlock().Transactions)),
|
CurrentBlockTx: uint64(len(block.MsgBlock().Transactions)),
|
||||||
|
|
Loading…
Add table
Reference in a new issue