aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
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
parent99b62f36b6443e8ed8ff4e8c09ee9267eeaea162 (diff)
downloadgo-tangerine-d4d3fc6a702d87bab7e04dcd5085a83205107c1c.tar
go-tangerine-d4d3fc6a702d87bab7e04dcd5085a83205107c1c.tar.gz
go-tangerine-d4d3fc6a702d87bab7e04dcd5085a83205107c1c.tar.bz2
go-tangerine-d4d3fc6a702d87bab7e04dcd5085a83205107c1c.tar.lz
go-tangerine-d4d3fc6a702d87bab7e04dcd5085a83205107c1c.tar.xz
go-tangerine-d4d3fc6a702d87bab7e04dcd5085a83205107c1c.tar.zst
go-tangerine-d4d3fc6a702d87bab7e04dcd5085a83205107c1c.zip
jsre, rpc/api: pull in new web3 and use hex numbers
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api/eth.go6
-rw-r--r--rpc/api/eth_js.go4
2 files changed, 3 insertions, 7 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
diff --git a/rpc/api/eth_js.go b/rpc/api/eth_js.go
index 81bb341bf..393dac22f 100644
--- a/rpc/api/eth_js.go
+++ b/rpc/api/eth_js.go
@@ -42,10 +42,6 @@ web3._extend({
new web3._extend.Property({
name: 'pendingTransactions',
getter: 'eth_pendingTransactions'
- }),
- new web3._extend.Property({
- name: 'syncing',
- getter: 'eth_syncing'
})
]
});