Skip to content

Commit

Permalink
Add blockheight to getstakeinfo results
Browse files Browse the repository at this point in the history
Needs dcrd commit b58d1c4bd45c3fce89318ada51dd1288b5c5c58d
Fixes btcsuite#213
  • Loading branch information
alexlyp committed Jun 27, 2016
1 parent d14e86e commit 1eed06b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rpc/legacyrpc/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -1439,6 +1439,7 @@ func getStakeInfo(icmd interface{}, w *wallet.Wallet, chainClient *chain.RPCClie
(float64(votesNum) + float64(missedNum))
}
resp := &dcrjson.GetStakeInfoResult{
BlockHeight: uint32(bs.Height),
PoolSize: poolSize,
Difficulty: dcrutil.Amount(stakeDiff).ToCoin(),
AllMempoolTix: uint32(len(allMempoolTickets)),
Expand Down

0 comments on commit 1eed06b

Please sign in to comment.