Skip to content

Conversation

@deffrian
Copy link
Contributor

Fixes Closes Resolves #

eth_simulateV1/ethSimulate-blobs (nethermind)
Set beneficiary as parent beneficiary.

Changes

  • There was no override in blob base fee.
  • For some reason we set miner as zero. I don't know how it passes the tests. Should we change that?

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Refactoring
  • Documentation update
  • Build-related changes
  • Other: Description

Testing

Requires testing

  • Yes
  • No

Documentation

Requires documentation update

  • Yes
  • No

Requires explanation in Release Notes

  • Yes
  • No

@deffrian deffrian requested review from a team and rubo as code owners September 28, 2025 10:56
.AddDecorator<IBlockhashProvider, SimulateBlockhashProvider>()
.AddDecorator<IVirtualMachine, SimulateVirtualMachine>()
.AddDecorator<IBlockValidator, SimulateBlockValidatorProxy>()
.AddSingleton<ITransactionProcessor, SimulateTransactionProcessor>()
Copy link
Contributor

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?

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 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
Copy link
Member

@LukaszRozmej LukaszRozmej Sep 29, 2025

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.

@deffrian deffrian merged commit 27f87bb into master Sep 29, 2025
142 of 146 checks passed
@deffrian deffrian deleted the fix/blob-fee-override branch September 29, 2025 14:46
@deffrian deffrian restored the fix/blob-fee-override branch September 29, 2025 15:07
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.

4 participants