-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Subtract output values from offset when inscription spent as fee #1971
Subtract output values from offset when inscription spent as fee #1971
Conversation
…ption is spent as a fee.
@raphjaph this looks good to me - should prioritize for review. |
I have found this bug too, it made a big confusion to my current data. hope prioritize for review. |
Your fix is identical to mine too. That's reassuring to see. |
43be21e
to
c566985
Compare
hello guys, when to merge this commit and fix history data? I think this bug is very fatal |
ed67c21
to
c566985
Compare
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 think this change is correct. In addition to a test, can you please describe what the bug is, why this fixes it, and the observable change in behavior? There was a lot of discussion in #1841, but I think it also discusses a different issue, so it's a bit confused. If there's already a different issue describing this, you can also link that issue.
The bug is #1841. https://github.com/casey/ord/issues/1841#issuecomment-1483950070 explains the bug and why this fixes it. The observable change in behavior is that ord tracks inscriptions correctly when they are spent as change rather than tracking them incorrectly. I don't understand the confusion here. Sorry if I'm being slow. |
74c2fef
to
93e4572
Compare
I think the bug is very well explained! I just added the changes you made to the test in a new test so it is very clear what the bug was. This is ready for you to have a look @casey! |
7a740c7
to
93e4572
Compare
90a145c
to
b97d66e
Compare
…ng-inscriptions-sent-as-fees
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.
Looks good! For bug fixes, existing tests should not be changed if they aren't broken, new tests should be added, which gives confidence that old and correct behavior, covered by the old tests, isn't being changed.
Fixes #1841.
Indexes will need rebuilding.