-
Notifications
You must be signed in to change notification settings - Fork 265
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
refactor: add note to deliver note #10482
base: ek/refactor/pxe-cleanup/remove-get-outgoing-notes-from-interface
Are you sure you want to change the base?
refactor: add note to deliver note #10482
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
02e0cf0
to
e7dbfc8
Compare
5168e57
to
390329a
Compare
e7dbfc8
to
a0cd02c
Compare
390329a
to
38e8ae9
Compare
a0cd02c
to
98973ff
Compare
38e8ae9
to
9277991
Compare
9277991
to
9cfd934
Compare
I actually prefer |
I think during the discussion we preferred "deliver" over "add" because the note is not necessarily added, as the note hash must already exist for this to work. So in essence you may use this to "deliver" an already "added" / "created" note (that may not have been emitted) to yourself. Maybe we can think of a better name ? |
In this PR, we are renaming
pxe.addNote
topxe.deliverNote
. The rationale was because in this function, we aren't actually 'adding a note' to state, as this can only be used when a note (hash) already exists. This is used to deliver the existing note (most likely to self), and (most likely) when said note was not emitted.