-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
channel data inconsistency between peers #31
Comments
I figured that asset transfer fails because of endianess inconsistency between input and output data, so I'll update it in the issue description.
|
I'm stuggling a bit with the 7th point. From what i can see, EDIT: after another debugging session I figured that initiator's nodeid is available at the end of the noise protocol to the receiver. I still don't understand where precisely in code the noise protocol gets executed between peers and so how to retrieve initiator nodeid from that. |
As for asset identifiers, I have the feeling that the cleanest possible solution would be to switch everything over to |
Updates from 20.12.09 call:
As a result, the best approach is probably to close this issue with a PR that addresses the lesser issue that I already solved and open a new one to just keep track of the missing points and point to the right info until lnpbp core library is released. |
Discussed questions: - how will Taproot affect RGB? - Bitcoin Pro vs wallet difference - WASM & bindings of RGB SDK - LNP-WG/lnp-node#31 - preliminary discussion about invoicing for Bitcoin, LN and RGB
Playing around with lnp-node, I noticed some inconsistencies between the view of the two peers over a channel they have in common.
My setting is composed of:
0.1.0-beta.1
, let's call them A and B0.2.0-beta.4
My goal was to perform a LN transfer for both btc and one rgb asset, with the following workflow:
Here is a list of things that seem wrong to me:
2^64-amt
total_payments: 1
, while A hastotal_payments: 0
transfer --asset
expects asset-id in the opposite endianess (big vs little -endian) than the one output in logs andlnp-cli info <temp_channel_id>
local_keys
are the same asremote_keys
, while for B they are different.remote_balances
After having a quick look at the code I think I can fix at least some of the listed problems. The last two will require some debugging and I'm not sure I'll be able to solve them.
Can please anyone confirm these are not expected behaviors before I spend time fixing them?
EDIT: I'm working on this and I managed to solve issues identified by the ticked box.
The text was updated successfully, but these errors were encountered: