-
Notifications
You must be signed in to change notification settings - Fork 624
Fix beneficiary & blob base fee in eth_simulate #9371
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
Conversation
| .AddDecorator<IBlockhashProvider, SimulateBlockhashProvider>() | ||
| .AddDecorator<IVirtualMachine, SimulateVirtualMachine>() | ||
| .AddDecorator<IBlockValidator, SimulateBlockValidatorProxy>() | ||
| .AddSingleton<ITransactionProcessor, SimulateTransactionProcessor>() |
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.
Got a solution that does not involve a subclass of SimulateTransactionProcessor? This will break plugins that override ITransactionProcessor. Perhaps some kind gas calculator interface maybe?
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.
I would move all virtual functions into an interface, but it's overkill probably
| : TransactionProcessorBase(specProvider, worldState, virtualMachine, codeInfoRepository, logManager); | ||
| : TransactionProcessorBase(gasCalculator, specProvider, worldState, virtualMachine, codeInfoRepository, logManager); | ||
|
|
||
| public class GasCalculator : ITransactionProcessor.IGasCalculator |
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.
Maybe better BaseFeeCalculator? It is not calculating gas per se.
Fixes Closes Resolves #
eth_simulateV1/ethSimulate-blobs (nethermind)Set beneficiary as parent beneficiary.
Changes
Types of changes
What types of changes does your code introduce?
Testing
Requires testing
Documentation
Requires documentation update
Requires explanation in Release Notes