-
-
Notifications
You must be signed in to change notification settings - Fork 311
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
fix: block value in produceBlockV3
should be in wei
#6286
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## unstable #6286 +/- ##
============================================
- Coverage 80.38% 80.38% -0.01%
============================================
Files 202 202
Lines 19620 19619 -1
Branches 1176 1176
============================================
- Hits 15771 15770 -1
Misses 3821 3821
Partials 28 28 |
You are right the spec states to use gwei for rewards API but isn't this a bit odd? I feel like we should use the same unit across all APIs |
Yea I have pointed this out in I think we either be inconsistent with payload value in the same endpoint, or be inconsistent with reward value from other endpoints. It's unideal either way. |
I just realized the beacon API PR that proposes block value in Wei hasn't been merged yet. We can hold off merging this until that PR is merged. |
yeah, let's wait a bit until there is a final decision on this and the spec PR is merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blocked till the spec is updated
@ensi321 can you also link the spec PR in the description (it may be in the linked issue but direct linking here is more useful) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This is the Wei
🎉 This PR is included in v1.15.0 🎉 |
Description
Currently
consensusBlockValue
is in Gwei. To align withexecutionPayloadValue
, block value is converted into Wei.Note that values in
RewardCache
will still be in Gwei for the purpose of rewards API, which is denominated in Gwei.