diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-04 22:27:34 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-04 22:27:34 +0800 |
commit | 93141f4b6d0b986138853af58aacb08be1ca2bfb (patch) | |
tree | 3b82b3450e5038dddbb1b6c36d738f69957a6e31 | |
parent | c3deafabda6e97c0077609ab375be69936d512d4 (diff) | |
download | go-tangerine-93141f4b6d0b986138853af58aacb08be1ca2bfb.tar go-tangerine-93141f4b6d0b986138853af58aacb08be1ca2bfb.tar.gz go-tangerine-93141f4b6d0b986138853af58aacb08be1ca2bfb.tar.bz2 go-tangerine-93141f4b6d0b986138853af58aacb08be1ca2bfb.tar.lz go-tangerine-93141f4b6d0b986138853af58aacb08be1ca2bfb.tar.xz go-tangerine-93141f4b6d0b986138853af58aacb08be1ca2bfb.tar.zst go-tangerine-93141f4b6d0b986138853af58aacb08be1ca2bfb.zip |
Return block number as hex
-rw-r--r-- | rpc/api.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/api.go b/rpc/api.go index 406960fce..d1158afe9 100644 --- a/rpc/api.go +++ b/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 } |