Return block number as hex

This commit is contained in:
Taylor Gerring 2015-03-04 08:27:34 -06:00
parent c3deafabda
commit 93141f4b6d

View File

@ -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
}