aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api/eth.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-09-11 23:41:42 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-09-15 22:05:12 +0800
commitd4d3fc6a702d87bab7e04dcd5085a83205107c1c (patch)
tree7db311885eea71d82d1f4621788828baad8fffa3 /rpc/api/eth.go
parent99b62f36b6443e8ed8ff4e8c09ee9267eeaea162 (diff)
downloadgo-tangerine-d4d3fc6a702d87bab7e04dcd5085a83205107c1c.tar.gz
go-tangerine-d4d3fc6a702d87bab7e04dcd5085a83205107c1c.tar.zst
go-tangerine-d4d3fc6a702d87bab7e04dcd5085a83205107c1c.zip
jsre, rpc/api: pull in new web3 and use hex numbers
Diffstat (limited to 'rpc/api/eth.go')
-rw-r--r--rpc/api/eth.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpc/api/eth.go b/rpc/api/eth.go
index 9680536c6..30366a951 100644
--- a/rpc/api/eth.go
+++ b/rpc/api/eth.go
@@ -173,9 +173,9 @@ func (self *ethApi) IsSyncing(req *shared.Request) (interface{}, error) {
if current < height {
return map[string]interface{}{
- "startingBlock": origin,
- "currentBlock": current,
- "highestBlock": height,
+ "startingBlock": newHexNum(big.NewInt(int64(origin)).Bytes()),
+ "currentBlock": newHexNum(big.NewInt(int64(current)).Bytes()),
+ "highestBlock": newHexNum(big.NewInt(int64(height)).Bytes()),
}, nil
}
return false, nil