fix: debug print the full bytes#6228
Conversation
|
P.S. I realize that the byte discrepancy is probably just legacy nonsense from the BitCore devs that you inherited, and that other than accidentally calling the wrong serialize function by mistake when adding the AssetLockTx / ExtraPayload functions to the code, it's probably not your fault. I'm just frustrated because this codebase is always a nightmare to work in and it's red herrings all the way down. EVERY. TIME. And, yes, if I could hold everything in my head all the time, I would have realized that pkh is 20 bytes and it was only printing 15 bytes and it would have clicked, but since the debug output SHOWED THE BYTES, I thought that they were the bytes and was trying to figure out if the "extra" bytes were a checksum or what. ... I also don't understand why not just reuse the OP_RETURN memo to put in the address. There's already a 🤷♂️ But please fix that for anyone else who ever happens to use the debug output to try to understand UNDOCUMENTED features that they have to work with. |
|
And I did take a quick look to see if I could fix the serialization but I couldn't find it. Probably in some UniValue macro 6 layers down... |
|
Please follow the PR template when opening PRs. I've pasted in the template again for you. Please fill it in. Marking PR as a draft for now, please mark ready for review once done. |
|
superseded by #6229 |
Either this one, or #6227 but, please, for the love of all that is right in this world, DO NOT print out THE WRONG NUMBER OF BYTES!!!!
Better yet, why are there different forms of serialization for the same object?
This should just consistently serialize to the same object because it's the same output script.
Issue being fixed or feature implemented
What was done?
How Has This Been Tested?
Breaking Changes
Checklist: