Skip to content

Conversation

@StephenButtolph
Copy link
Contributor

During block building, we do not have a full block to provide to the Points interface. All of the required fields are in the header anyways, so this really just simplifies the implementation as well.

@StephenButtolph StephenButtolph force-pushed the StephenButtolph/simplify-hooks branch from 83e18db to af596f7 Compare December 5, 2025 21:40
//
// For example, if the block timestamp is 10.75 seconds and the gas rate is
// 100 gas/second, then this method should return 75 gas.
SubSecondBlockTime(*types.Header) gas.Gas
Copy link
Collaborator

Choose a reason for hiding this comment

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

We're going to need a SetSubSecondBlockTime() too, aren't we? Not necessarily here, but just thinking out loud.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't think we would need to do that, but I suppose it depends on how we are planning on constructing the header.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I assumed it would have to be in a libevm extra payload, and we don't want to do any libevm registration in SAE as that would stop consumers from being able to.

@StephenButtolph StephenButtolph merged commit 03dad37 into main Dec 8, 2025
11 checks passed
@StephenButtolph StephenButtolph deleted the StephenButtolph/simplify-hooks branch December 8, 2025 16:25
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