4
1
I tried to move funds between my two nodes. From A to B.
'A' node is
035ac00f3bfe7fd991ec7cd9b5fcad0bdaa338c343895e56f4ada7df181bc43622@46.101.114.3:9735
'B' node is
02b0de5dece2ae1c6cf62dba60e584268b8f27babb936a849e998c2170802efc9b@5.9.72.48:9735
First I made an invoice on 'B' node with the full amount available on 'A' node (150000 satoshi), but it didn't worked like the second time, when I calculate already the fees into the transaction, so I requested an invoice with 147900 satoshis.
The second invoice I made with the 'B' node:
root@Debian-94-stretch-64-minimal ~/lightning # cli/lightning-cli invoice 147900 1 movingfunds
{
"payment_hash": "7d7f8720cfa3d745bc15698e7f5908ddf658fa6241cfeb51e3085d338140766a",
"expiry_time": 1529652202,
"expires_at": 1529652202,
"bolt11": "lnbc1479n1pdje9w6pp504lcwgx050t5t0q4dx887kggmhm937nzg887k50rppwn8q2qwe4qdqjd4hhv6twvan82mnywvcqp25ajsmsdp9g9e9xcdwl26f6h37xusn4d2q30mde40lvekrhlcajxs9y6c70qzcmhxcu6kjm6wtm2f6u5dgutn4q3tsluzrmmtvuhw65gpg920uv"
}
I tried to pay with the 'A' node:
root@LightningN:~/c-lightning/lightning# cli/lightning-cli pay -k maxfeepercent=5 bolt11=lnbc1479n1pdje9w6pp504lcwgx050t5t0q4dx887kggmhm937nzg887k50rppwn8q2qwe4qdqjd4hhv6twvan82mnywvcqp25ajsmsdp9g9e9xcdwl26f6h37xusn4d2q30mde40lvekrhlcajxs9y6c70qzcmhxcu6kjm6wtm2f6u5dgutn4q3tsluzrmmtvuhw65gpg920uv
{ "code" : 205, "message" : "Could not find a route", "data" :
{
"getroute_tries": 3,
"sendpay_tries": 2,
"failures": [
{
"message": "reply from remote",
"type": "FAIL_PAYMENT_REPLY",
"erring_index": 1,
"failcode": 4103,
"erring_node": "02f6725f9c1c40333b67faea92fd211c183050f28df32cac3f9d69685fe9665432",
"erring_channel": "520051:68:0",
"route": [
{
"id": "02f6725f9c1c40333b67faea92fd211c183050f28df32cac3f9d69685fe9665432",
"channel": "527929:1112:1",
"msatoshi": 155190,
"delay": 326
},
{
"id": "02e8334fcab092f496bce7421e8d711d41cbbfef0429bb30149784418df53dd1b1",
"channel": "520051:68:0",
"msatoshi": 154189,
"delay": 312
},
{
"id": "02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b",
"channel": "520051:63:0",
"msatoshi": 153188,
"delay": 298
},
{
"id": "025e77156e4c5e1ed62f9ad113ac2115a981ee99fa05d95be9e43add7f785a9b4d",
"channel": "519778:1560:0",
"msatoshi": 153187,
"delay": 154
},
{
"id": "02b0de5dece2ae1c6cf62dba60e584268b8f27babb936a849e998c2170802efc9b",
"channel": "528515:2266:1",
"msatoshi": 152188,
"delay": 10
}
]
},
{
"message": "reply from remote",
"type": "FAIL_PAYMENT_REPLY",
"erring_index": 3,
"failcode": 4103,
"erring_node": "025e77156e4c5e1ed62f9ad113ac2115a981ee99fa05d95be9e43add7f785a9b4d",
"erring_channel": "528515:2266:1",
"channel_update": "b5bf64e0b15971ffb29e148080d717baac4aa707bd66214fd15585fdb1035af068de16ea66698a780814564733606ac8d1aa06ef9ddcce0d7b1b2e593f8734b06fe28c0ab6f1b372c1a6a246ae63f74f931e8365e15a089c68d61900000000000810830008da00015b2b7930000000900000000000000001000003e700000001",
"route": [
{
"id": "02f6725f9c1c40333b67faea92fd211c183050f28df32cac3f9d69685fe9665432",
"channel": "527929:1112:1",
"msatoshi": 154711,
"delay": 312
},
{
"id": "02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b",
"channel": "528371:1680:1",
"msatoshi": 153710,
"delay": 298
},
{
"id": "025e77156e4c5e1ed62f9ad113ac2115a981ee99fa05d95be9e43add7f785a9b4d",
"channel": "514137:241:0",
"msatoshi": 153709,
"delay": 154
},
{
"id": "02b0de5dece2ae1c6cf62dba60e584268b8f27babb936a849e998c2170802efc9b",
"channel": "528515:2266:1",
"msatoshi": 152710,
"delay": 10
}
]
}
]
} }
What's wrong? As I see the final ID is my second nodes ID so, they need to see each other.
Thanks @cdecker for the advice, I tried it to buy some pixels on Satoshi's Place with Node 'A' but I got the following error: http://snippi.com/s/t22p5ow
If I type listpayments command I get the following result: http://snippi.com/s/oc4d8t6
Seems the payment took a bit longer than expected so the
paycommand decided to send it to the background. It should eventually resolve into either success or failure. – cdecker – 2018-06-24T12:19:30.963It gone to 'failure'. I tried even on the other Node, the same happened: http://snippi.com/s/d4406by
– ZsZolee – 2018-06-24T12:39:20.600The majority of those fail with
failcode=16394, which is the numeric code forunknown_next_peer. This means that the node that reported the failure does not (or more likely no longer has) a channel to the next hop. This should eventually be recognized by your node through gossiping. The other codes 4103 and 4108 are fortemporary_channel_failureandfee_insufficient. All of these seem to be caused by stale network information. Is your node connected and processing gossip (logging about channels being updated)? – cdecker – 2018-06-24T13:31:20.797I see only the orriginal channels when I use 'listpeers' at both of my nodes. Node 'A': http://snippi.com/s/njz6yf9
Node 'B': http://snippi.com/s/13itv67
That's how it's supposed to work, since only those are your direct peers.
listnodesandlistchannelswill show all known nodes and channels. – cdecker – 2018-06-24T18:48:33.370what should I check, when I run those two commands? I got so much results, that I can't even see all of it, just the last 'X' amount. – ZsZolee – 2018-06-25T15:06:13.050
If you see
channel_updateandchannel_announcementlines in thelightningdoutput, then it should be syncing alright. – cdecker – 2018-06-25T20:39:19.497If I run the 'listnodes' and 'listchannels', on both of my nodes, I don't see in the (partial) results any 'channel_update' or 'channel_announcement'. What should I do now? :( – ZsZolee – 2018-06-26T09:41:58.903
I don't mean when you call
lightning-cli, I mean the output of thelightningdprocess. – cdecker – 2018-06-26T18:08:28.807Finally I got what you needed. Here is the log: http://snippi.com/s/3jb5hy2
– ZsZolee – 2018-07-02T21:06:54.177