-
Notifications
You must be signed in to change notification settings - Fork 2
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
add LegacyEnoteOriginContext #16
add LegacyEnoteOriginContext #16
Conversation
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.
Quick first pass, it's looking like a good start. Thank you :)
Minor update, now failing 16 tests |
still not done, but the last one was a big baby step for me not worth a review at this point, I think, I have an idea what to do next |
At this stage I'd like to get some feedback. |
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.
Small review
e2ca1aa
to
bf95191
Compare
Something looks very wrong currently with your PR, with 165 commits. I would guess either you did not yet rebase to the new state of our |
01b39ef
to
caffdae
Compare
caffdae
to
5eff205
Compare
I am sorry to not have noticed, and asked this question much earlier already, as only now I finally had a look at the files that this PR modifies: They are all Seraphis library files, right? Thus seems to me this should be a PR to the Seraphis library, not to here. I believe following a rule "Seraphis library modifications always to @UkoeHB's Seraphis library repo and branch" will make rebasing / updating our Seraphis wallet branch easier, and it be clearer where to find what. |
I had a look at the PR nevertheless, to check whether I could review, and found out that it's too specific for me, I lack both the necessary detailed knowledge about the protocols involved with all these types of transactions and enotes, and knowledge about the workings of the Seraphis library ... |
The changes quickly added up to get around compiler errors. Now it builds fine, but fails at unit_tests
seraphis_enote_scanning.trivial_ledger
. Before I go too deep in the complete wrong direction, some feedback would be appreciated.I added comments with
QUESTION
andTODO
(without a well defined distinction), for things I currently focus on.Edit after squash:
this PR adds:
LegacyEnoteOriginContextV1
for pre-RingCT enotes which get indexed byenote_same_amount_ledger_index
LegacyEnoteOriginContextV2
for post-RingCT enotes which get indexed byrct_enote_ledger_index
LegacyEnoteOriginContextVariant
which contains either V1 or V2 contextsis_pre_rct
toLegacyEnoteV1
to help differentiate between V1 and V2 contextsLegacyEnoteV1
LegacyEnoteOriginContextVariant
to the correct type or to default type post-RingCTseraphis_enote_scanning
:legacy_pre_rct_1
&legacy_coinbase_1
Feel free to review.