Skip to content
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

qip-0011: Paying for Account State Usage #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wizeguyy
Copy link
Contributor

@wizeguyy wizeguyy commented Apr 2, 2024

No description provided.

@wizeguyy wizeguyy requested a review from mechanikalk April 2, 2024 17:58
@wizeguyy wizeguyy force-pushed the state-ownership branch 4 times, most recently from 240cb43 to c7f523e Compare April 2, 2024 19:09
@gameofpointers
Copy link
Contributor

How do we know how many accounts we have in the trie? @wizeguyy

@wizeguyy
Copy link
Contributor Author

wizeguyy commented Apr 3, 2024

How do we know how many accounts we have in the trie? @wizeguyy

We will need to count them. Its easy to keep a running counter. Every time a transaction creates a new account, increment the counter. Every time an account gets destroyed, decrement the counter.

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.

5 participants