Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blockValue should use gasUsed rather than gasLimit #6875

Merged
merged 6 commits into from
Feb 14, 2023
Merged

Conversation

yperbasis
Copy link
Member

Fees going to the gas fee recipient should be based on the actual gas used (available in the receipt) rather than the gas limit in a transaction. This fixes Hive test "GetPayloadV2 Block Value".

Also engine_getPayloadBodiesByRangeV1 params should be encoded as hex strings.


// BlockBuilder wraps a goroutine that builds Proof-of-Stake payloads (PoS "mining")
type BlockBuilder struct {
interrupt int32
syncCond *sync.Cond
block *types.Block
block *types.BlockWithReceipts
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe an updated name here? calls like b.block.Block could get confusing.

@yperbasis yperbasis added this pull request to the merge queue Feb 14, 2023
Merged via the queue into devel with commit 58fcc04 Feb 14, 2023
@yperbasis yperbasis deleted the hive_bodies branch February 14, 2023 15:05
finiteops pushed a commit to bitfinity-network/erigon that referenced this pull request Apr 10, 2023
Fees going to the gas fee recipient should be based on the actual gas
used (available in the receipt) rather than the gas limit in a
transaction. This fixes Hive test "GetPayloadV2 Block Value".

Also `engine_getPayloadBodiesByRangeV1` params should be encoded as hex
strings.
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.

2 participants