mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-15 04:26:37 +00:00
Return block number as hex
This commit is contained in:
parent
c3deafabda
commit
93141f4b6d
1 changed files with 1 additions and 1 deletions
|
|
@ -369,7 +369,7 @@ func (p *EthereumApi) GetIsMining(reply *interface{}) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *EthereumApi) BlockNumber(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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue