lightclient
a0b88ce869
eth/gasprice/feehistory: support finalized block ( #25442 )
2 years ago
Sina Mahmoodi
57cec89253
graphql: fee history fields ( #24452 )
...
This PR adds the `NextBaseFeePerGas` to `Block` and `EffectiveTip` to `Transaction` to make it easier for clients to compute fee history themselves via graphql queries.
3 years ago
Felföldi Zsolt
f38abc55f1
eth/gasprice: feeHistory improvements ( #23422 )
...
* eth/gasprice: cache feeHistory results
* eth/gasprice: changed feeHistory block count limitation
* eth/gasprice: do not use embedded struct in blockFees
* eth/gasprice: fee processing logic cleanup
* eth/gasprice: purge feeHistory cache at chain reorgs
3 years ago
lightclient
bbfa6488ac
Use `hexutil.Uint` for `blockCount` parameter in `feeHistory` method ( #23239 )
...
* internal/ethapi/api: use hexutil.uint for blockCount parameter instead of int for feeHistory
* return hex value for oldestBlock instead of number
* return uint64 from oracle.resolveBlockRange
* eth/gasprice: fixed test
Co-authored-by: Zsolt Felfoldi <zsfelfoldi@gmail.com>
3 years ago
Péter Szilágyi
dea71556cc
eth/gasprice, internal/ethapi, miner: minor feehistory fixes
3 years ago
Felföldi Zsolt
35dbf7a8a3
eth/gasprice: implement feeHistory API ( #23033 )
...
* eth/gasprice: implement feeHistory API
* eth/gasprice: factored out resolveBlockRange
* eth/gasprice: add sanity check for missing block
* eth/gasprice: fetch actual gas used from receipts
* miner, eth/gasprice: add PendingBlockAndReceipts
* internal/ethapi: use hexutil.Big
* eth/gasprice: return error when requesting beyond head block
* eth/gasprice: fixed tests and return errors correctly
* eth/gasprice: rename receiver name
* eth/gasprice: return directly if blockCount == 0
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
3 years ago