Commit d4d3fc6a authored by Péter Szilágyi's avatar Péter Szilágyi

jsre, rpc/api: pull in new web3 and use hex numbers

parent 99b62f36
This diff is collapsed.
...@@ -173,9 +173,9 @@ func (self *ethApi) IsSyncing(req *shared.Request) (interface{}, error) { ...@@ -173,9 +173,9 @@ func (self *ethApi) IsSyncing(req *shared.Request) (interface{}, error) {
if current < height { if current < height {
return map[string]interface{}{ return map[string]interface{}{
"startingBlock": origin, "startingBlock": newHexNum(big.NewInt(int64(origin)).Bytes()),
"currentBlock": current, "currentBlock": newHexNum(big.NewInt(int64(current)).Bytes()),
"highestBlock": height, "highestBlock": newHexNum(big.NewInt(int64(height)).Bytes()),
}, nil }, nil
} }
return false, nil return false, nil
......
...@@ -42,10 +42,6 @@ web3._extend({ ...@@ -42,10 +42,6 @@ web3._extend({
new web3._extend.Property({ new web3._extend.Property({
name: 'pendingTransactions', name: 'pendingTransactions',
getter: 'eth_pendingTransactions' getter: 'eth_pendingTransactions'
}),
new web3._extend.Property({
name: 'syncing',
getter: 'eth_syncing'
}) })
] ]
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment