Return block number as hex

pull/444/head
Taylor Gerring 10 years ago
parent c3deafabda
commit 93141f4b6d
  1. 2
      rpc/api.go

@ -369,7 +369,7 @@ func (p *EthereumApi) GetIsMining(reply *interface{}) error {
}
func (p *EthereumApi) BlockNumber(reply *interface{}) error {
*reply = p.xeth().Backend().ChainManager().CurrentBlock().Number()
*reply = toHex(p.xeth().Backend().ChainManager().CurrentBlock().Number().Bytes())
return nil
}

Loading…
Cancel
Save