Skip to content

Conversation

@bharath-123
Copy link
Contributor

When we stream a bid, we also send the tip fee of the bid. Currently we were sending the effective tip per gas. We should be multiplying it with the gas used by the tx.

This PR also includes a minor cosmetic change where we display the sequencer hash in the debug log called at the start of the ExecuteOptimisticBlock as a common.Hash rather than a byte array.

Comment on lines 77 to 78
totalTipFee := big.NewInt(0).Mul(effectiveTip, big.NewInt(int64(gasUsed)))
totalCost.Add(totalCost, totalTipFee)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
totalTipFee := big.NewInt(0).Mul(effectiveTip, big.NewInt(int64(gasUsed)))
totalCost.Add(totalCost, totalTipFee)
totalCost = totalCost.Mul(effectiveTip, big.NewInt(int64(gasUsed)))

@bharath-123 bharath-123 merged commit bb12dfa into trusted-auctioneer Jan 15, 2025
@bharath-123 bharath-123 mentioned this pull request Jan 17, 2025
bharath-123 pushed a commit that referenced this pull request Mar 10, 2025
## Summary
Adds a precompile manager that makes it easy to add new precompiles to
the evm by writing an implementation in go which corresponds to a
defined solidity interface. These precompiles can optionally have state
in the evm state db.

## Background
This updates a PR from the old astria `go-ethereum` repo to the latest
changes in the newer `astria-geth` repo.

The precompile manager is heavily utilized by Forma and potentially
useful for other custom evm rollups. @itamarreif may have some ideas of
things he might like to do with it.

There are no custom precompiles enabled by default.

## Changes from old PR
* Custom gas handler per precompile method
* Better configuration of which precompiles are enabled
* Removal of native minter as an example precompile; and addition of an
example base64 precompile which is simpler to understand and potentially
more useful for rollup devs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants