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>
Showing
- cmd/utils/flags.go 1 addition, 2 deletionscmd/utils/flags.go
- eth/api_backend.go 8 additions, 0 deletionseth/api_backend.go
- eth/ethconfig/config.go 12 additions, 8 deletionseth/ethconfig/config.go
- eth/gasprice/feehistory.go 293 additions, 0 deletionseth/gasprice/feehistory.go
- eth/gasprice/feehistory_test.go 88 additions, 0 deletionseth/gasprice/feehistory_test.go
- eth/gasprice/gasprice.go 43 additions, 37 deletionseth/gasprice/gasprice.go
- eth/gasprice/gasprice_test.go 42 additions, 7 deletionseth/gasprice/gasprice_test.go
- internal/ethapi/api.go 34 additions, 0 deletionsinternal/ethapi/api.go
- internal/ethapi/backend.go 1 addition, 0 deletionsinternal/ethapi/backend.go
- internal/web3ext/web3ext.go 6 additions, 0 deletionsinternal/web3ext/web3ext.go
- les/api_backend.go 12 additions, 1 deletionles/api_backend.go
- miner/miner.go 5 additions, 0 deletionsminer/miner.go
- miner/worker.go 13 additions, 3 deletionsminer/worker.go
Loading
Please register or sign in to comment