chore: remove unused SWAP and MINT attachments#2789
Open
PhilippGackstatter wants to merge 2 commits intonextfrom
Open
chore: remove unused SWAP and MINT attachments#2789PhilippGackstatter wants to merge 2 commits intonextfrom
PhilippGackstatter wants to merge 2 commits intonextfrom
Conversation
113efda to
9b467ab
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Removes unused attachment fields from SwapNoteStorage and MintNoteStorage.
Summary
payback_attachment: NoteAttachmentfromSwapNoteStorageand the correspondingpayback_note_attachmentparameter fromSwapNote::createattachment: NoteAttachmentfrom bothMintNoteStorage::PrivateandMintNoteStorage::Publicvariants, along with thewith_attachment()methodoutput_note::set_attachmentcallsmem_loadw_le/mem_storew_leoperationsMotivation
These attachment fields were always set to
NoteAttachment::default()and never used. Removing them simplifies the storage layout and reduces the note storage size.Note: The metadata attachment on the note (e.g.
swap_note_attachmentinSwapNote::create,attachmentinMintNote::create) is not removed — only the redundant attachment fields stored inside the note storage.This also makes the multiple note attachments PR easier to update.
part of #2555