-
Notifications
You must be signed in to change notification settings - Fork 71
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
AMP payments #362
base: master
Are you sure you want to change the base?
AMP payments #362
Conversation
amp works from alice to bob in the docker containers with 2 channels of 1 mil sat each on the sphinx stack branch with accept amp in the confs |
sometimes the test fails when adding the contacts (even before the payment)
|
Yea I would check what you might need to run the test locally to see that log |
i tried to reproduce the error, but it worked. |
found an amp test case in lnd! i will try to replicate this and hope it works |
amp tests are working 884d86d |
i think everything works except queryRoutes, and when it fails other runs get cancelled. |
note that stakwork/sphinx-stack#33 has to be merged before this one |
integration-test (queryRoutes) constantly fails, i need some help with this one |
alice has 2 1mil sat channels to bob and 2 1mil sat channels to carol |
with the extra ln channel queryRoutes also succeeds |
awesome it might have been an issue with opening multiple channels to the same node |
i dont know now the queryroutes only queries direct routes because of the 3rd channel, before this test case worked with an indirect path. it only succeeds because the indirect query is removed |
one more thing we should do on stack and in the ampMessage test is to have a node that doesn't have amp enabled yet since lots of people who are using sphinx won't upgrade till the future so I was thinking having the node dave running but only having |
not sure I follow, what do you mean by direct route and indirect route? |
first there was a channel from alice to bob and from alice to carol. alice has 2 direct routes to peers bob and carol bob and carol have and indirect route (via alice), but now the third channel is between bob and carol, so they have a direct route now |
we can disable amp on carol since he only routes the payment between alice and bob |
alice only sent htlcs to bob and none to carol, the amounts dont even add up to 1.5 mil, so trying with more timeout (8af831c) ...
{
"incoming": false,
"amount": "750000",
"hash_lock": "822f2f6ac9e025b51ddbbc454383c8ff760cb4b69f0c94500a9a43101688ba86",
"expiration_height": 322,
"htlc_index": "1",
"forwarding_channel": "0",
"forwarding_htlc_index": "0"
},
{
"incoming": false,
"amount": "187500",
"hash_lock": "56d97bfffb9ae51f827e305ec66ba54dab4477b71ceff3fc76316548805339f9",
"expiration_height": 322,
"htlc_index": "2",
"forwarding_channel": "0",
"forwarding_htlc_index": "0"
},
{
"incoming": false,
"amount": "35156",
"hash_lock": "bc7f3b189bc78aa7d092390f34d0e7593fe1d646862e3edd3beb2b27b248aaba",
"expiration_height": 322,
"htlc_index": "3",
"forwarding_channel": "0",
"forwarding_htlc_index": "0"
}
... |
Do you know if nodes that do not have amp enabled can route amp shards? If that's the case we may need another node to test the keysend portion |
for a node to send AMPs, the node must have support for it, to receive it it must have support and |
Ok weird lol but it makes sense, I guess it takes a bit for the channel gossip to get out to the network. But the tests passing are a good thing |
I will clean up the code if there are some useless comments/placeholders/console logs and clean up this whole commit mess with a few force pushes |
Sounds good and we still need to add a |
f9122d9
to
e68a3f6
Compare
26cc407
to
4d133b4
Compare
325eb4e
to
3e00780
Compare
hmmm still some failing checks... will take some more time debugging |
ec0255e
to
0ccf1e8
Compare
cf61854
to
e51c1e4
Compare
all tests pass except 2 which are caused by stakwork/sphinx-stack#47, and 1 that is fixed by #445 and probably caused by other changes not updating the warning count i think i can say that all technical stuff works now regarding AMP payments with sphinx relay @kevkevinpal and @Evanfeenstra can you review this there is one major backwards compatibility issue: btw, i was able to fix the amp proxy issue (bob did not accept keysend, and good i did test this because the virtualnodes could not send anything to bob). this brought me to another issue: rpc_proxy (and maybe proxy itself) doesnt support amp yet (so only send keysends)
|
rebased |
79d8fbe
to
561dbbe
Compare
the tests used to run successful here, i only rebased (no new changes) since then, do you know of changes (on the master branch) that might have caused these tests to fail? |
#353 + more commits
depends on stakwork/sphinx-stack#33
closes #361
closes #401