-
Notifications
You must be signed in to change notification settings - Fork 464
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
add blob price update fraction #8053
base: eip-7840
Are you sure you want to change the base?
Conversation
1580311
to
1286aea
Compare
@@ -149,6 +149,6 @@ public void Test_StoreBeaconRoot_AccessListNotNull() | |||
|
|||
transaction.Hash = transaction.CalculateHash(); | |||
_transactionProcessor.Received().Execute(Arg.Is<Transaction>(t => | |||
t.Hash == transaction.Hash), header, NullTxTracer.Instance); | |||
t.Hash == transaction.Hash), new BlockExecutionContext(header, 0), NullTxTracer.Instance); |
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.
this is assuming that system transaction will not have blobs, so 0 blobBaseFee will not be a issues.
else | ||
{ | ||
spec.BlobBaseFeeUpdateFraction = blobCount.BaseFeeUpdateFraction; | ||
} |
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.
this is a temp things, untill this gets merged
@@ -12,12 +13,12 @@ public readonly struct BlockExecutionContext | |||
public BlockHeader Header { get; } | |||
public UInt256? BlobBaseFee { get; } | |||
|
|||
public BlockExecutionContext(BlockHeader blockHeader) | |||
public BlockExecutionContext(BlockHeader blockHeader, IReleaseSpec spec) |
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.
Refactor idea:
Maybe we should save the whole spec and reuse it later, while removing SpecProvider dependency and manually getting spec in lot of places in VM or TransactionProcessor?
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.
sounds like a good idea, i will explore this
Fixes Closes Resolves #
Please choose one of the keywords above to refer to the issue this PR solves followed by the issue number (e.g. Fixes #000). If no issue number, remove the line. Also, remove everything marked optional that is not applicable. Remove this note after reading.
Changes
Types of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?
Notes on testing
Optional. Remove if not applicable.
Documentation
Requires documentation update
If yes, link the PR to the docs update or the issue with the details labeled
docs
. Remove if not applicable.Requires explanation in Release Notes
If yes, fill in the details here. Remove if not applicable.
Remarks
Optional. Remove if not applicable.