fix: api: return the correct block gas limit in the EthAPI (#11747)

The gas limit is proportional to the number of blocks.

fixes #11721
This commit is contained in:
Steven Allen
2024-03-21 12:49:55 -07:00
committed by GitHub
parent ea19e1df6b
commit 566584d45c
3 changed files with 15 additions and 3 deletions
+1 -1
View File
@@ -225,7 +225,7 @@ func newEthBlockFromFilecoinTipSet(ctx context.Context, ts *types.TipSet, fullTx
return ethtypes.EthBlock{}, xerrors.Errorf("failed to load state-tree root %q: %w", stRoot, err)
}
block := ethtypes.NewEthBlock(len(msgs) > 0)
block := ethtypes.NewEthBlock(len(msgs) > 0, len(ts.Blocks()))
gasUsed := int64(0)
for i, msg := range msgs {