Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
RFC for account deletion #51
base: main
Are you sure you want to change the base?
RFC for account deletion #51
Changes from 22 commits
2b685f2
6f39387
a5ac409
dffe346
cb17c65
64adacc
d0d7794
f65b76c
e90bdbb
db326bd
007366c
63fabe7
068af92
9c44789
b7a56c7
bb986f4
eac8c7e
2fa7195
303c09a
63f6f02
8e43116
ea15c13
12f32f8
dbb6368
9b1d2f5
6e61c7c
bd03179
ffca61f
c485517
d1eccdc
ce3bd31
5afeaaf
ba838bc
d0dbc6a
17efeec
688cac5
c6733cc
0a5612d
bb88abf
dea556d
f65aae0
75ab35a
1a6e85e
6aa9057
e285613
7ea5241
f2deb25
9919fef
93f7b2b
21a9503
c0b363e
dd35968
9fc8405
9b0f96c
b597847
f65d200
35e8385
0fa09ac
8616655
af687d1
a017f7a
6851b42
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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 don't think this is the design we want in practice: if we just replace it with the empty account, we don't actually save any space. We would really like to delete the account entirely (at least, on disk).
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 see your point. We don't really need to store the empty account though, we just need to act as if it were stored in the leaf. I will rephrase that bit.
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.
Indexes are already dense, shouldn't we use those?
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.
Do you mean using the
Bigstring
view of the same information, that is,Merkle_address
?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.
The actual implementation will use
Location.t
, which may or may not be a compact representation since we are within the functor's body. The current instance of this functor does use a compact representation for indexes. I chose theRight, Left
way of wording the location because I thought it was easier to follow, especially in a tree-like drawing.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.
How does the transaction logic differ from what's present today? E.g.