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

pull/1784/head
Péter Szilágyi 9 years ago
parent 99b62f36b6
commit d4d3fc6a70
  1. 789
      jsre/ethereum_js.go
  2. 6
      rpc/api/eth.go
  3. 4
      rpc/api/eth_js.go

File diff suppressed because it is too large Load Diff

@ -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

@ -42,10 +42,6 @@ web3._extend({
new web3._extend.Property({
name: 'pendingTransactions',
getter: 'eth_pendingTransactions'
}),
new web3._extend.Property({
name: 'syncing',
getter: 'eth_syncing'
})
]
});

Loading…
Cancel
Save