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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user