Skip to content

Commit f8e15a9

Browse files
pkieltykaclaude
andcommitted
ethgas: use the arbitrum gas price paid reader for robinhood chains
Adds robinhood (4663) and robinhood-testnet (46630) to CustomGasPricePaidReaders. Both are Arbitrum Orbit chains running Arbitrum Nitro, so they belong with the other arbitrum entries. Without this they fall through to DefaultGasPricePaidReader, which reports each transaction's GasFeeCap -- the maximum the sender was willing to pay. On these chains that overstates the price actually paid: eth_maxPriorityFeePerGas returns 0, and ordering is first-come-first-served by sequencer arrival, so tips cannot affect inclusion and effectively nothing is paid above the base fee. arbitrumGasPricePaidReader reports block.BaseFee() instead, which is what was really paid. Affects gas statistics only, not transaction correctness. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 088bbd9 commit f8e15a9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎ethgas/readers.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ var CustomGasPricePaidReaders = map[uint64]GasPriceReader{
1818
421613: arbitrumGasPricePaidReader, // arbitrum goerli
1919
421614: arbitrumGasPricePaidReader, // arbitrum sepolia
2020
200: arbitrumGasPricePaidReader, // arbitrum xdai
21+
4663: arbitrumGasPricePaidReader, // robinhood
22+
46630: arbitrumGasPricePaidReader, // robinhood testnet
2123
}
2224

2325
func DefaultGasPriceBidReader(block *ethmonitor.Block) []*big.Int {

0 commit comments

Comments
 (0)