Skip to content

Commit

Permalink
fix: rpc: missing re-assignment of baseFee in EthFeeHistory
Browse files Browse the repository at this point in the history
  • Loading branch information
hanabi1224 authored and aarshkshah1992 committed Jul 3, 2024
1 parent 3c705fa commit 60b5ee8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions node/impl/full/eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,7 @@ func (a *EthModule) EthFeeHistory(ctx context.Context, p jsonrpc.RawParams) (eth
)

for blocksIncluded < int(params.BlkCount) && ts.Height() > 0 {
basefee = ts.Blocks()[0].ParentBaseFee
_, msgs, rcpts, err := executeTipset(ctx, ts, a.Chain, a.StateAPI)
if err != nil {
return ethtypes.EthFeeHistory{}, xerrors.Errorf("failed to retrieve messages and receipts for height %d: %w", ts.Height(), err)
Expand Down

0 comments on commit 60b5ee8

Please sign in to comment.