Skip to content

Add inhibitor to queue before activation#12

Merged
lightclient merged 3 commits intomainfrom
protect-queue
Apr 22, 2024
Merged

Add inhibitor to queue before activation#12
lightclient merged 3 commits intomainfrom
protect-queue

Conversation

@lightclient
Copy link
Copy Markdown
Member

This PR implements a features first requested by @marioevz.

The concern is that before 7002 becomes active, it would be possible to join the queue without excess growing. This means the queue could be filled extremely cheaply.

To avoid this, we set the value of excess to an extremely high value so that no user could ever pay a fee to enter the queue. This avoids additional sloads during normal operations.

We chose 1181 as the value of excess because i) it a prime and ii) fake_exponential(1, 1181, 17) = 1481455745989958413761130954915 wei which is more than 1 trillion eth. That's more eth than will (hopefully) ever exist.

Each system call will check excess == 1181 and use 0 in it's place if so. This of course will only be true for the first call following activation of Prague.

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.

1 participant