-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Bug in inscription number assignment - bvm.network jpegs are messing with the inscription numbers #2967
Comments
https://ordinals.hiro.so/inscription/972765a3769073c8f4159a13588af2d9027715935279c95444c33efc48fcacddi0 is correctly (?) is reporting |
Second transaction is sending the inscription as fee to miner (since its output value is 0). Ordinal theory creates implicit inputs for fees to the coinbase transaction. A quote from Ordinals BIP:
Also, coinbase transaction is calculated at the end of the block. So according to sat movement rules, the inscriptions that are sent as fee on creation should be numbered the last. |
Your comment is not a logic follow-up on the spec you are quoting.
This is the important part, and per the spec that you're quoting, the numbering here is flawed. Introducing Generally speaking it would be great if we could stop considering the bugs present in Instead, let's stick to the specification, fix the bugs, and re-compute the inscription number sequence per the specification. |
This only applies to the fee inputs, first fee is added to coinbase as second input, second fee is added as third etc. but all of these inputs come after all other transactions in the block. So actually, the code works correctly according to BIP specs. Normally I would agree about fixing the bugs and also issue 2062 was definitely a bug and it has been fixed almost immediately. But in this case in my opinion the code works perfectly fine according to Ordinals BIP, so either Ordinals BIP has a bug, or everything is running correctly. Also, this is not specific to 0.14.0, ord is handing fees like this since the beginning (you can check the code for version 0.5.0 which was waaay before issue 2062 and it also handles fee inscriptions the exact same way), and there are a few other cases of this that happened before. |
@samedcildir I think you are twisting the spec to see the outcome that you're desiring, ie what the code is doing today. Admitting the presence of a bug at this scale is not an easy thing, but let's try again.
The transactions and more precisely the inputs are responsible for inscribing the satoshis, not their destination. My frustration is coming from the fact that I created and I am maintaining an alternative indexer (powering https://ordinals.hiro.so) and simulating these bugs is 1) quite challenging and 2) dishonest from a protocol point of view. |
@samedcildir Also, the spec that you are quoting is not the inscription number assignment, it's the ordinals number assignment, which are 2 different things. https://github.com/casey/ord/blob/master/bip.mediawiki#design |
Thanks for the bug report! We're checking this out. |
I just finished indexing with #3031, which numbers fee-spent inscriptions correctly. However, it would lead to around seven million inscriptions being renumbered, so I think we've just got to live with this. Unfortunate, since it's definitely a bug, but so it goes! |
Thank you for taking the time to look into this @casey! If this bug is indeed becoming part of the spec, a definitive guide in the documentation on how inscription numbers are being attributed would be very appreciated. |
Yah, it definitely sucks that we can't fix this. We'll definitely document this, I have a PR open that adds a test for the current behavior, #3032, and I'll add documentation in the same PR. |
ty for the reference -- we are not spending the developer resources to try to maintain gord numbering parity with |
Checking the data, there might a regression in
ord
.Zooming on
824535
, the last transaction in this block is 972765a3769073c8f4159a13588af2d9027715935279c95444c33efc48fcacdd, so it should have the highest inscription number of the block. Instead, it's getting the inscription number53391473
, and instead, this transaction4a6c1853f75272076d349f88aec50c54057c51d899850da1852e1b1efbf6b6f7
is getting a highest number
53391474
.@casey @raphjaph any hint?
The text was updated successfully, but these errors were encountered: