Skip to content

Conversation

@adietrichs
Copy link

@adietrichs adietrichs commented Oct 28, 2021

wip

todo:

  • adapt specification
  • ensure all low-number edge cases are covered
  • add MAX_GAS_TARGET_PERCENT to rationale
  • write out motivation, rationale, backward compatibility, security considerations (so far: keywords)
  • write abstract

MAX_GAS_TARGET_PERCENT = 95

class World(ABC):
def validate_block(self, block: Block) -> None:

Choose a reason for hiding this comment

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

I would suggest to be explicit about what exactly has been changed comparing to the original formula. Also, it would probably be clearer to have a function compute_parent_adjusted_gas_target and replace parent_gas_target in the original formula with parent_adjusted_gas_target = compute_parent_adjusted_gas_target(...)

adietrichs and others added 5 commits October 29, 2021 14:57
Co-authored-by: Sam Wilson <57262657+SamWilsn@users.noreply.github.com>
Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
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