Skip to content

LN Mainnet - Headache CHANNELD_AWAITING_LOCKIN #1246

Closed

Description

@mkaand

Issue and Steps to Reproduce

I follow this article to make my LN node:
https://medium.com/@fkayaist/kendi-lightning-network-nodeunuzu-nas%C4%B1l-kurars%C4%B1n%C4%B1z-10-ay-%C3%BCcretsiz-53b71c9f5f10

I use Google Cloud Server. Bitcoin and LN is OK. I sent 0.002BTC to my LN Bitcoin address:
https://blockchain.info/tx/858b36d8f123027ac51e069da8c8714ec4292822dd61352537dbaaaf02e5bb61

I am facing with CHANNELD_AWAITING_LOCKIN error. I tried to connect CL.rompert.com

Here is the listfunds:

{ "outputs" :
[
{ "txid" : "858b36d8f123027ac51e069da8c8714ec4292822dd61352537dbaaaf02e5bb61", "output" : 1, "value
" : 200000, "status" : "confirmed" } ], "channels" :
[
{ "peer_id" : "024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd", "channel_sat" :
100000, "channel_total_sat" : 100000, "funding_txid" : "82f2a80d5a672d74f51f81be0975f8bf00b9e228ec3448b7b2867b5657
5fafc8" } ] }

And listpeers:

{ "peers" :
[
{ "id" : "024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd", "connected" : false,
"channels" :
[
{ "state" : "CHANNELD_AWAITING_LOCKIN", "funding_txid" : "82f2a80d5a672d74f51f81be0
975f8bf00b9e228ec3448b7b2867b56575fafc8", "msatoshi_to_us" : 100000000, "msatoshi_total" : 100000000, "dust_limit_s
atoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_minim
um_msat" : 0, "their_to_self_delay" : 144, "our_to_self_delay" : 144, "to_self_delay" : 144, "max_accepted_htlcs" :
483, "status" :
[ "CHANNELD_AWAITING_LOCKIN:Received error from peer: channel c8af5f57567b8
6b2b74834ec28e2b900bff87509be811ff5742d675a0da8f283: lightning_channeld: received ERROR channel ALL: Internal error
: Failing due to dev-fail command", "CHANNELD_AWAITING_LOCKIN:Sent reestablish, waiting for theirs" ] } ] } ] }

Listconfigs

{ "# version" : "v0.5.2-2016-11-21-2290-g640ff4b", "port" : 9735, "rgb" : "d2691e", "alias" : "botbittrex.com", "pi
d-file" : "lightningd-bitcoin.pid", "channel-update-interval" : 604800, "log-level" : "DEBUG", "log-prefix" : "ligh
tningd(1):", "lightning-dir" : "/root/.lightning", "rpc-file" : "lightning-rpc", "daemon" : "false", "ignore-fee-li
mits" : false, "locktime-blocks" : 144, "max-locktime-blocks" : 432, "anchor-onchain" : 10, "anchor-confirms" : 3,
"max-anchor-confirms" : 10, "commit-fee-min" : 200, "commit-fee-max" : 2000, "commit-fee" : 500, "default-fee-rate"
: 40000, "cltv-delta" : 14, "cltv-final" : 8, "max-htlc-expiry" : 720, "bitcoind-poll" : "30s", "commit-time" : "1
0ms", "fee-base" : 1000, "fee-per-satoshi" : 10, "ipaddr" : "35.192.6.142:9735", "network" : "bitcoin", "allow-depr
ecated-apis" : true, "dev-no-reconnect" : "false", "dev-fail-on-subdaemon-fail" : "false", "dev-broadcast-interval"
: 60000 }

After reboot my server I can see following logs. I use dev-fail command after waited more than 15 hours. What I have to do? Where is my money? I don't believe LN is the future of bitcoin. IT is very hard to make setup proper node. It should be hard as much as like that.

root@instance-1:# docker start bitcoind_mainnet
bitcoind_mainnet
root@instance-1:
# docker run --rm --name lightning --network container:bitcoind_mainnet -v /scratch/bitcoin/mainnet/bitcoind:/root/.bitcoin -v /scratch/bitcoin/mainnet/clightning:/root/.lightning --entrypoint /usr/bin/lightningd cdecker/lightningd:latest --network=bitcoin --rgb=D2691E --alias=botbittrex.com --ipaddr=35.192.6.142 --log-level=debug
2018-03-19T08:56:17.887Z lightningd(1): Not guessing addresses: manually set
2018-03-19T08:56:17.962Z lightningd(1): testing /usr/bin/lightning_channeld
2018-03-19T08:56:18.015Z lightningd(1): testing /usr/bin/lightning_closingd
2018-03-19T08:56:18.111Z lightningd(1): testing /usr/bin/lightning_gossipd
2018-03-19T08:56:18.121Z lightningd(1): testing /usr/bin/lightning_hsmd
2018-03-19T08:56:18.142Z lightningd(1): testing /usr/bin/lightning_onchaind
2018-03-19T08:56:18.194Z lightningd(1): testing /usr/bin/lightning_openingd
2018-03-19T08:56:19.209Z lightningd(1): Client: Received message 11 from client
2018-03-19T08:56:19.225Z lightningd(1): Client: Received message 9 from client
2018-03-19T08:56:19.226Z lightning_gossipd(12): pid 12, msgfd 13
2018-03-19T08:56:19.226Z lightningd(1): Loaded 0 HTLC signatures from DB
2018-03-19T08:56:19.227Z lightningd(1): Loaded 1 channels from DB
2018-03-19T08:56:19.227Z lightningd(1): Loading HTLCs for channel 1
2018-03-19T08:56:19.227Z lightningd(1): Restored 0 incoming and 0 outgoing HTLCS
2018-03-19T08:56:19.631Z lightningd(1): Waiting for bitcoind to warm up...
2018-03-19T08:56:34.726Z lightning_gossipd(12): req: type WIRE_GOSSIPCTL_INIT len 126
2018-03-19T08:56:34.727Z lightning_gossipd(12): Creating IPv6 listener on port 9735
2018-03-19T08:56:34.917Z lightningd(1): Adding block 513978: 0000000000000000004c3270bc11b00779e2a9ce2cdbc67a26a339abec01d06a
2018-03-19T08:56:34.923Z lightningd(1): Listening on 'lightning-rpc'
2018-03-19T08:56:34.923Z lightningd(1): Server started with public key 02d447157dd105474ac5c22b5866d42daa5a92439064cda022b3399505dfe46aa8, alias botbittrex.com (color #d2691e) and lightningd v0.5.2-2016-11-21-2290-g640ff4b
2018-03-19T08:56:34.925Z lightning_gossipd(12): req: type WIRE_GOSSIPCTL_PEER_ADDRHINT len 42
2018-03-19T08:56:34.925Z lightning_gossipd(12): req: type WIRE_GOSSIPCTL_REACH_PEER len 35
2018-03-19T08:56:34.953Z lightning_gossipd(12): Connected out for 024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd
2018-03-19T08:56:34.978Z lightningd(1): Adding block 513979: 000000000000000000376267d342878f869cb68192ff5d73f5f1953ae83e3e1e
2018-03-19T08:56:34.985Z lightning_gossipd(12): peer_out WIRE_INIT
2018-03-19T08:56:34.988Z lightningd(1): Immediate feerate 1263 (was 0)
2018-03-19T08:56:34.988Z lightningd(1): Normal feerate 250 (was 0)
2018-03-19T08:56:34.988Z lightningd(1): Slow feerate 250 (was 0)
2018-03-19T08:56:35.019Z lightning_gossipd(12): peer_in WIRE_INIT
2018-03-19T08:56:35.019Z lightning_gossipd(12): UPDATE WIRE_GOSSIP_PEER_CONNECTED
2018-03-19T08:56:35.020Z lightning_gossipd(12): UPDATE WIRE_GOSSIP_PEER_CONNECTED
2018-03-19T08:56:35.020Z lightningd(1): 024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd chan #1: Peer has reconnected, state CHANNELD_AWAITING_LOCKIN
2018-03-19T08:56:35.020Z lightningd(1): Client: Received message 1 from client
2018-03-19T08:56:35.020Z lightningd(1): Client: Received message 9 from client
2018-03-19T08:56:35.021Z lightningd(1): lightning_channeld-024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd chan #1: pid 39, msgfd 34
2018-03-19T08:56:35.025Z lightningd(1): 024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd chan #1: Waiting for funding confirmations
2018-03-19T08:56:35.082Z lightningd(1): Adding block 513980: 0000000000000000001a0822fbaef92ef048967fa32c68f96e3d57d13183ef2b
2018-03-19T08:56:35.445Z lightningd(1): Adding block 513981: 0000000000000000000478d3bb59c997624a254b1deb716b599137c447ec14b8
2018-03-19T08:56:35.941Z lightningd(1): lightning_channeld-024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd chan #1: init LOCAL: remote_per_commit = 0348d5a730dd008
93ec7038f01ca8ef559e4f09f9d090ca2e114528a01c43c8c4a, old_remote_per_commit = 0348d5a730dd00893ec7038f01ca8ef559e4f09f9d090ca2e114528a01c43c8c4a next_idx_local = 1 next_idx_remote = 1
revocations_received = 0 feerates 250/250 (range 250-6315)
2018-03-19T08:56:35.942Z lightningd(1): lightning_channeld-024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd chan #1: peer_out WIRE_CHANNEL_REESTABLISH
2018-03-19T08:56:36.059Z lightningd(1): Adding block 513982: 00000000000000000017ed644e63726329929f078235aa75e9e674f06cded647
2018-03-19T08:56:36.412Z lightningd(1): Adding block 513983: 0000000000000000001bc8ba079a981d20ea748bf9a6021d0a8aec0d7490df96
2018-03-19T08:56:36.790Z lightningd(1): Adding block 513984: 0000000000000000001baf257c6d338c4cee810def408297608f0fd204a01283
2018-03-19T08:56:37.125Z lightningd(1): Adding block 513985: 0000000000000000002d3ef22e1c31f61487fea0e1f93d05f0683a257c6ab8fd
2018-03-19T08:56:37.374Z lightningd(1): Adding block 513986: 00000000000000000029153311ede8c1964bc92eefb196e1d0256680bf650a89
2018-03-19T08:56:38.961Z lightningd(1): Adding block 513987: 000000000000000000257f168634e40919aed17e65d73ea9624f217a7fcca4c7
2018-03-19T08:56:39.246Z lightningd(1): Adding block 513988: 0000000000000000000fbb9d14b56d1c102a3f89d1efc0b97e413523c724766d
2018-03-19T08:56:39.418Z lightningd(1): Adding block 513989: 00000000000000000053fb70ff89bc4dcdd6a45ab8c4241090ee99066a01e58e
2018-03-19T08:56:39.647Z lightningd(1): Adding block 513990: 00000000000000000027a41ac2d767fbf11fe3ddf00261ff6539b12da290b998
2018-03-19T08:56:39.753Z lightningd(1): Adding block 513991: 000000000000000000379a7b3ae10e11580d61462b14e6d3ab2a6c21825517a3
2018-03-19T08:56:39.817Z lightningd(1): Adding block 513992: 0000000000000000000daf839d7c73b3211faa32a280ba019baa04afa1e14536
2018-03-19T08:56:39.860Z lightningd(1): lightning_channeld-024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd chan #1: peer_in WIRE_ERROR
2018-03-19T08:56:39.860Z lightningd(1): 024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd chan #1: Peer permanent failure in CHANNELD_AWAITING_LOCKIN: lightning_chan
neld: received ERROR channel c8af5f57567b86b2b74834ec28e2b900bff87509be811ff5742d675a0da8f283: lightning_channeld: received ERROR channel ALL: Internal error: Failing due to dev-fail
command
2018-03-19T08:56:39.860Z lightningd(1): (tx 527e905af0b0c24c710d5144e2cdd2b56c008cbc35ed5b4efc19c285df2708fa)
2018-03-19T08:56:39.861Z lightningd(1): sendrawtransaction: 02000000000101c8af5f57567b86b2b74834ec28e2b900bff87509be811ff5742d675a0da8f28201000000000547c18001eb85010000000000220020a4
59c74acc19400f76f190e224e6f253998af6a1d56b1834f931ec5405773d180400483045022100c542b8761a15cec179f7fa2ef380906f9f99cd0f63b3669cf1011b21e16f2a3d02205378d0a5f9440fcbb18a3c4b7cb934c56d7f
7cc7252023057deb42420955a7a1014730440220752de536c582ef14886802f1eef89a47828d0912dc1fd5830ba2294543f3fe230220596c1b5a075d5061c87d553fb59c30b226d569a04aad71e73c6d91c950198f350147522103
28e562d39ce141d815985f7f75199fc068815bb71ed8f458c22af9ea75475f3421039cb6b9456f1b8d36dd672862baad9c2647d25ab9594398d902faf55cbabda29f52ae640e0620
2018-03-19T08:56:39.862Z lightning_gossipd(12): req: type WIRE_GOSSIPCTL_HAND_BACK_PEER len 189
2018-03-19T08:56:39.862Z lightning_gossipd(12): hand_back_peer 024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd: now local again
2018-03-19T08:56:39.862Z lightning_gossipd(12): Received channel_announcement for channel 504149:1124:0
2018-03-19T08:56:39.865Z lightning_gossipd(12): UPDATE WIRE_GOSSIP_GET_TXOUT
2018-03-19T08:56:39.865Z lightning_gossipd(12): peer_in WIRE_ERROR
2018-03-19T08:56:39.865Z lightning_gossipd(12): 024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd sent ERROR channel c8af5f57567b86b2b74834ec28e2b900bff87509be811ff5
742d675a0da8f283: lightning_channeld: received ERROR channel ALL: Internal error: Failing due to dev-fail command
2018-03-19T08:56:39.939Z lightningd(1): sendrawtx exit 25, gave error code: -25?error message:?Missing inputs?
2018-03-19T08:56:40.317Z lightningd(1): Adding block 513993: 00000000000000000051b34c9733219768cba744dab635864f2847670412326c
2018-03-19T08:56:40.610Z lightning_gossipd(12): req: type WIRE_GOSSIP_GET_TXOUT_REPLY len 54
2018-03-19T08:56:40.802Z lightningd(1): Adding block 513994: 0000000000000000003fc5c5600c720452a1e3b25d064bc5d96b22e4e8a59992
2018-03-19T08:56:41.084Z lightningd(1): Adding block 513995: 00000000000000000006a280456d7f52bc6e402127097c9966373d1c85a6bfe8
2018-03-19T08:56:41.338Z lightningd(1): Adding block 513996: 0000000000000000003cb3e6f32a0c470522d74c70ae5268839745527aeade52
2018-03-19T08:56:41.519Z lightningd(1): Adding block 513997: 00000000000000000050a83ee84efb0e196bfb9fe09dfd8a4005ef732a3fc0af
2018-03-19T08:56:41.692Z lightningd(1): Adding block 513998: 0000000000000000003b76912dab1b719950fb0da2be96ca9ae13aa33b7f71a6
2018-03-19T08:56:41.951Z lightningd(1): Adding block 513999: 0000000000000000000efc557a92c70811da6fa7ec4db56f42d57b97f9d9325d
2018-03-19T08:56:42.282Z lightningd(1): Adding block 514000: 0000000000000000003fc2067c2f17f0712caa4eedda294e5290e2fff278ed88
2018-03-19T08:56:42.341Z lightningd(1): Adding block 514001: 000000000000000000040c421005d950a4e667af5dcfee739e5acbdf34d88414
2018-03-19T08:56:42.397Z lightningd(1): Adding block 514002: 0000000000000000002adf6c3ec9dc179b8ec2f70f5f11fd7985c1fde38af919
2018-03-19T08:56:42.702Z lightningd(1): Adding block 514003: 00000000000000000017c12ec86497f1cc8d41c07b55f5023316eff798c1cba3
2018-03-19T08:56:42.952Z lightningd(1): Adding block 514004: 00000000000000000051f108c957ecab11cae2ba5d7347a81f272f103a9be4be
2018-03-19T08:56:43.043Z lightningd(1): Adding block 514005: 00000000000000000044ed0c59dc034ded314472c1ee9ee2ce29824af72ad790
2018-03-19T08:56:43.110Z lightningd(1): Adding block 514006: 00000000000000000043fd6f70d8776c601c0bc9e6586234b3969843889c40d7
2018-03-19T08:56:43.213Z lightningd(1): Adding block 514007: 0000000000000000001aee0fb6c6213b132e95519fd0b8a327aa84181c3f0dcf
2018-03-19T08:56:43.279Z lightningd(1): Adding block 514008: 000000000000000000482a0a225ab915d700a277f453941d38880674a0eacdbe
2018-03-19T08:56:43.368Z lightningd(1): Adding block 514009: 00000000000000000038c38c9802836e9fab1e9f38df5ddbf6ba1101db616e9d
2018-03-19T08:56:43.504Z lightningd(1): Adding block 514010: 000000000000000000018529ad32dff054460b18179d5658d761972fae3938d2
2018-03-19T08:56:43.717Z lightningd(1): Adding block 514011: 000000000000000000142c69a138eaafce0aad9e7864b730b58f5222ce435666
2018-03-19T08:56:44.073Z lightningd(1): Adding block 514012: 0000000000000000002697b773c77e98bb557d9b16c0eebe638f089f66cff346
2018-03-19T08:56:44.259Z lightningd(1): Adding block 514013: 000000000000000000219b686edc67bb78096674f7203f125ab1958b0ca1d15d

getinfo output

{ "id" : "02d447157dd105474ac5c22b5866d42daa5a92439064cda022b3399505dfe46aa8", "port" : 9735, "address" :
[
{ "type" : "ipv4", "address" : "35.192.6.142", "port" : 9735 } ], "version" : "v0.5.2-2016-11-21-22
90-g640ff4b", "blockheight" : 514222, "network" : "bitcoin" }

Activity

  1. mkaand commented on Mar 19, 2018

    @mkaand
    Author

    What I did now:

    I couldn't connect to CL.rompert.com (I received error about dev-fail) I tried to connect another node. And here is the result: (what I have to do?)

    root@instance-1:~# lightning-cli connect 02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b 167.99. 50.31 9735 { "id" : "02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b" } root@instance-1:~# lightning-cli fundchannel 02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b 199 825 { "tx" : "0200000000010161bbe502afaadb37253561dd222829c44e71c8a89d061ec57a0223f1d8368b8501000000171600145b71e646e0f 9b035a029fa2dba2a9b283071145affffffff01910c03000000000022002008c7ddcce4207c90931e713cd6490afa30edc0f006bcbf9bf30ffa 48d5e8a55702483045022100f727a0065266c071ec4ab6320954c0dafd9e40c9dfe154fcc64cf7126217161f022073ccd2ce5109caee31b5d0e e40fcec8cd5a5dd546497ed10b45fe9020bd3cba301210247b1fe3d38ac3ae827ac4514727e907ded3c3520f922d0ee5927f4c5bcf318a40000 0000", "txid" : "f3c16ba67defb0d9c6c19ff79414a18d3827b29d6ee22403b76b83b367153177" } root@instance-1:~# lightning-cli listpeers { "peers" : [ { "id" : "024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd", "connected" : false, "channels" : [ { "state" : "CHANNELD_AWAITING_LOCKIN", "funding_txid" : "82f2a80d5a672d74f51f81be0 975f8bf00b9e228ec3448b7b2867b56575fafc8", "msatoshi_to_us" : 100000000, "msatoshi_total" : 100000000, "dust_limit_s atoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_minim um_msat" : 0, "their_to_self_delay" : 144, "our_to_self_delay" : 144, "to_self_delay" : 144, "max_accepted_htlcs" : 483, "status" : [ "CHANNELD_AWAITING_LOCKIN:Received error from peer: channel c8af5f57567b8 6b2b74834ec28e2b900bff87509be811ff5742d675a0da8f283: lightning_channeld: received ERROR channel ALL: Internal error : Failing due to dev-fail command", "CHANNELD_AWAITING_LOCKIN:Sent reestablish, waiting for theirs" ] } ] }, { "id" : "02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b", "connected" : true, "netaddr" : [ "167.99.50.31:9735" ], "alias" : "LND.rompert.com🔵", "color" : "0000ff", "channels" : [ { "state" : "CHANNELD_AWAITING_LOCKIN", "owner" : "lightning_channeld", "funding_tx id" : "f3c16ba67defb0d9c6c19ff79414a18d3827b29d6ee22403b76b83b367153177", "msatoshi_to_us" : 199825000, "msatoshi_t otal" : 199825000, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_re serve_satoshis" : 0, "htlc_minimum_msat" : 0, "their_to_self_delay" : 144, "our_to_self_delay" : 144, "to_self_dela y" : 144, "max_accepted_htlcs" : 483, "status" : [ "CHANNELD_AWAITING_LOCKIN:Funding needs more confirmations." ] } ] } ] } root@instance-1:~#

  2. Saibato commented on Mar 19, 2018

    @Saibato
    Contributor

    Please first take a look at closed issue #1234

    and then you or first you might try to directly connect
    CL.rompert.com is at
    024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd@165.227.69.151:9735

    I connected and its up now

  3. ZmnSCPxj commented on Mar 19, 2018

    @ZmnSCPxj
    Contributor

    Hi @mkaand, thank you for taking the time to try out c-lightning.

    First, c-lightning is alpha software and bugs are known to be lurking.

    Second, many of the network participants are themselves running alpha software known to have lurking bugs, including c-lightning, older lnd, eclair, and possibly ucoin.

    Problems in the software you are running can indeed lock your funds. Problems in the software that others are running can also lock your funds, although the software you are running should let you recover (note that c-lightning is known to be buggy and does not handle all cases of bad behavior in its counterparties).

    For your specific case, dev-fail and close do not yet support killing channels in CHANNELD_AWAITING_LOCKIN at all times. This is being worked on. See #1161.

    In your logs, we can see that the channel with LND.rompert.com has managed to get its funding transaction confirmed, and it is likely to be useable in an hour or so after you funded.

    For the CL.rompert.com, you have already dev-failed the channel with it. The remaining thing for us devs to do is figure out the best way to get close and dev-fail working on CHANNELD_AWAITING_LOCKIN channels. Then when we can implement that and update c-lightning, you can update your installation and continue the channel failure.

    In addition, it seems that one or more of your channels used nonexistent UTXOs. Try running dev-rescan-outputs command to put the lightningd view of your owned UTXOs the same as the bitcoind global view.

  4. mkaand commented on Mar 19, 2018

    @mkaand
    Author

    Thank you very much guys. Especially @ZmnSCPxj I check my peers and now:

    root@instance-1:~# lightning-cli listpeers { "peers" : [ { "id" : "024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd", "connected" : false, "channels" : [ { "state" : "CHANNELD_AWAITING_LOCKIN", "funding_txid" : "82f2a80d5a672d74f51f81be0 975f8bf00b9e228ec3448b7b2867b56575fafc8", "msatoshi_to_us" : 100000000, "msatoshi_total" : 100000000, "dust_limit_s atoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_minim um_msat" : 0, "their_to_self_delay" : 144, "our_to_self_delay" : 144, "to_self_delay" : 144, "max_accepted_htlcs" : 483, "status" : [ "CHANNELD_AWAITING_LOCKIN:Received error from peer: channel c8af5f57567b8 6b2b74834ec28e2b900bff87509be811ff5742d675a0da8f283: lightning_channeld: received ERROR channel ALL: Internal error : Failing due to dev-fail command", "CHANNELD_AWAITING_LOCKIN:Sent reestablish, waiting for theirs" ] } ] }, { "id" : "02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b", "connected" : true, "netaddr" : [ "167.99.50.31:9735" ], "alias" : "LND.rompert.com🔵", "color" : "0000ff", "channels" : [ { "state" : "CHANNELD_NORMAL", "owner" : "lightning_channeld", "short_channel_id" : "514230:132:0", "funding_txid" : "f3c16ba67defb0d9c6c19ff79414a18d3827b29d6ee22403b76b83b367153177", "msatoshi_to_ us" : 199825000, "msatoshi_total" : 199825000, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446 744073709551615, "channel_reserve_satoshis" : 0, "htlc_minimum_msat" : 0, "their_to_self_delay" : 144, "our_to_self _delay" : 144, "to_self_delay" : 144, "max_accepted_htlcs" : 483, "status" : [ "CHANNELD_NORMAL:Funding transaction locked." ] } ] } ] }

    Seems OK. I have another question. I added 0.002BTC at the beginning. I tried to add funds but it failed. I added 199825 satoshi to another node (LND.rompert.com). Now How can I see my idle balance (btc)? Can I add additional funds to my current node? How? Thanks.

    Edit: Last status: CHANNELD_NORMAL:Funding transaction locked. Channel announced.

  5. ZmnSCPxj commented on Mar 19, 2018

    @ZmnSCPxj
    Contributor

    If you mean, can you add more funds to an existing channel, no not yet. The BOLT spec has not this feature yet: see lightning/bolts#280

    In general it is a better idea to open a new channel to a new peer in order to improve the network connectivity and also to have more possible paths for you to use. If you use a single channel to a single peer only, if that peer goes offline, all your money becomes locked and unuseable.

    The earlier channel seems to have gotten double-spent. Did you perform a dev-rescan-outputs before funding the second channel, then use fundchannel all on the second channel?

    You can use listfunds to get a summary of all onchain and offchain funds. Note however that the earlier channel seems to have gotten double-spent if you sent only 0.002 BTC to your node, meaning it will artificially increase your apparent money in listfunds (but you will not be able to actually use the first channel, only the second channel).

  6. mkaand commented on Mar 19, 2018

    @mkaand
    Author

    @ZmnSCPxj Thank you very much. Exactly I was talking about add more funds to an existing channel.

    I did dev-rescan-outputs but I don't know before create new channel or after. I tried lots of commands.

    Currently dev-rescan-outputs gives me this result:

    { "outputs" : [ { "txid" : "858b36d8f123027ac51e069da8c8714ec4292822dd61352537dbaaaf02e5bb61", "output" : 1, "oldst ate" : 2, "newstate" : 2 }, { "txid" : "82f2a80d5a672d74f51f81be0975f8bf00b9e228ec3448b7b2867b56575fafc8", "output" : 0, "oldst ate" : 2, "newstate" : 2 } ] }

    I didn't use fundchannel all command. I sent 0.002 BTC then I tried to fund channel with 200.000 satoshi but it says you don't have enough money. I tried 100.000 it accepted but I wait more than 15 hours it stucked. I try dev-fail but no luck. I guess I use rescan command too.

    listfunds screen output is not clear to understandable. When I open second channel I reduced 175 satoshi for fee (My first channel was deducted 175 satıshi for 100.000 satoshi funds.) So I funded 199.825 satoshi for my second and healthy channel. Network accepted this. But now I have no idea how much my money is idle. It should be zero if the network deducted 175 satoshi. I didnt know fundchannel all command. Now I want to add another channel but first I should add some money.

    What I have to do for third channel? I should find another node and first connect than fund it? Am I correct?

    Here is the listfunds output:

    root@instance-1:~# lightning-cli listfunds { "outputs" : [ ], "channels" : [ { "peer_id" : "024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd", "channel_sat" : 100000, "channel_total_sat" : 100000, "funding_txid" : "82f2a80d5a672d74f51f81be0975f8bf00b9e228ec3448b7b2867b5657 5fafc8" }, { "peer_id" : "02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b", "short_channel_ id" : "514230:132:0", "channel_sat" : 199825, "channel_total_sat" : 199825, "funding_txid" : "f3c16ba67defb0d9c6c19 ff79414a18d3827b29d6ee22403b76b83b367153177" } ] }

  7. ZmnSCPxj commented on Mar 19, 2018

    @ZmnSCPxj
    Contributor

    I misremembered --- it is withdraw that has all option. Although it should be possible to add this to fundchannel.

    outputs is your onchain funds. channels is your offchain LN-spendable funds. Ignore the channel_sat for the first channel since it will never work anyway. You should now be able to spend on LN.

    Yes, you can go search for another node to connect then fundchannel to. If there is some place you want to buy goods from, go make a channel there direct, that should help make it easier to purchase what you want. I believe there are online LN maps that can provide contact information for nodes.

  8. mkaand commented on Mar 19, 2018

    @mkaand
    Author

    Thank you very much @ZmnSCPxj I understood. But I think when we fund a channel we spent some fee I guess. If you put 0.002BTC you cannot fund with all of them right?

    By the way my Node is normal now. But I cannot see on node map. Here is the listpeers:

    root@instance-1:~# lightning-cli listpeers { "peers" : [ { "id" : "024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd", "connected" : false, "channels" : [ { "state" : "CHANNELD_AWAITING_LOCKIN", "funding_txid" : "82f2a80d5a672d74f51f81be0975f8bf00b9e228ec3448b7b2867b56575fafc8", "msatoshi_to_us" : 100000000 , "msatoshi_total" : 100000000, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_minimum_msat" : 0, "their_to_s elf_delay" : 144, "our_to_self_delay" : 144, "to_self_delay" : 144, "max_accepted_htlcs" : 483, "status" : [ "CHANNELD_AWAITING_LOCKIN:Received error from peer: channel c8af5f57567b86b2b74834ec28e2b900bff87509be811ff5742d675a0da8f283: lightning_channel d: received ERROR channel ALL: Internal error: Failing due to dev-fail command", "CHANNELD_AWAITING_LOCKIN:Sent reestablish, waiting for theirs" ] } ] }, { "id" : "02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b", "connected" : false, "channels" : [ { "state" : "CHANNELD_NORMAL", "short_channel_id" : "514230:132:0", "funding_txid" : "f3c16ba67defb0d9c6c19ff79414a18d3827b29d6ee22403b76b83b367153177", "msatoshi_to_us" : 199825000, "msatoshi_total" : 199825000, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_mi nimum_msat" : 0, "their_to_self_delay" : 144, "our_to_self_delay" : 144, "to_self_delay" : 144, "max_accepted_htlcs" : 483, "status" : [ ] } ] } ] } root@instance-1:~#

  9. ZmnSCPxj commented on Mar 19, 2018

    @ZmnSCPxj
    Contributor

    But I think when we fund a channel we spent some fee I guess. If you put 0.002BTC you cannot fund with all of them right?

    In all mode the fee is automatically deducted from the total amount you have. #1249 will add all mode to fundchannel.

  10. mkaand commented on Mar 20, 2018

    @mkaand
    Author

    Thank you very much for answer @ZmnSCPxj My channel seems normal but I cannot see on https://lnmainnet.gaben.win/ alias botbittrex.com I want to make sure everything is normal. Here is the peerlist:

    root@instance-1:~# lightning-cli listpeers { "peers" : [ { "id" : "024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd", "connected" : false, "channels" : [ { "state" : "CHANNELD_AWAITING_LOCKIN", "funding_txid" : "82f2a80d5a672d74f51f81be0975f8bf00b9e228ec3448b7b2867b56575fafc8", "msatoshi_to_us" : 100000000 , "msatoshi_total" : 100000000, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_minimum_msat" : 0, "their_to_s elf_delay" : 144, "our_to_self_delay" : 144, "to_self_delay" : 144, "max_accepted_htlcs" : 483, "status" : [ "CHANNELD_AWAITING_LOCKIN:Received error from peer: channel c8af5f57567b86b2b74834ec28e2b900bff87509be811ff5742d675a0da8f283: lightning_channel d: received ERROR channel ALL: Internal error: Failing due to dev-fail command", "CHANNELD_AWAITING_LOCKIN:Sent reestablish, waiting for theirs" ] } ] }, { "id" : "02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b", "connected" : false, "channels" : [ { "state" : "CHANNELD_NORMAL", "short_channel_id" : "514230:132:0", "funding_txid" : "f3c16ba67defb0d9c6c19ff79414a18d3827b29d6ee22403b76b83b367153177", "msatoshi_to_us" : 199825000, "msatoshi_total" : 199825000, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_mi nimum_msat" : 0, "their_to_self_delay" : 144, "our_to_self_delay" : 144, "to_self_delay" : 144, "max_accepted_htlcs" : 483, "status" : [ ] } ] } ] }

    I hope you guys prepare a tutorial for upgrade 0.6 LN when it's ready. You can close this issue. I will follow this #1161

  11. ZmnSCPxj commented on Mar 20, 2018

    @ZmnSCPxj
    Contributor

    You are "connected" : false to all your peers, meaning you are currently not connected. Either you have some connectivity problem or the peers are down. So it is possible that you have not made your node alias known to the rest of the network yet. You could try connecting to some other peer, or retry connect on the existing peers.

  12. mkaand commented on Mar 20, 2018

    @mkaand
    Author

    Now it says :

    root@instance-1:~# lightning-cli connect 02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b 167.99.50.31 9735
    { "id" : "02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b" }
    root@instance-1:~# lightning-cli listpeers
    { "peers" : 
            [ 
                    { "id" : "024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd", "connected" : false, "channels" : 
                            [ 
                                    { "state" : "CHANNELD_AWAITING_LOCKIN", "funding_txid" : "82f2a80d5a672d74f51f81be0975f8bf00b9e228ec3448b7b2867b56575fafc8", "msatoshi_to_us" : 100000000
    , "msatoshi_total" : 100000000, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_minimum_msat" : 0, "their_to_s
    elf_delay" : 144, "our_to_self_delay" : 144, "to_self_delay" : 144, "max_accepted_htlcs" : 483, "status" : 
                                            [ "CHANNELD_AWAITING_LOCKIN:Received error from peer: channel c8af5f57567b86b2b74834ec28e2b900bff87509be811ff5742d675a0da8f283: lightning_channel
    d: received ERROR channel ALL: Internal error: Failing due to dev-fail command", "CHANNELD_AWAITING_LOCKIN:Sent reestablish, waiting for theirs" ] } ] }, 
                    { "id" : "02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b", "connected" : false, "channels" : 
                            [ 
                                    { "state" : "CHANNELD_NORMAL", "short_channel_id" : "514230:132:0", "funding_txid" : "f3c16ba67defb0d9c6c19ff79414a18d3827b29d6ee22403b76b83b367153177", 
    "msatoshi_to_us" : 199825000, "msatoshi_total" : 199825000, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_mi
    nimum_msat" : 0, "their_to_self_delay" : 144, "our_to_self_delay" : 144, "to_self_delay" : 144, "max_accepted_htlcs" : 483, "status" : 
                                            [ "CHANNELD_NORMAL:bad reestablish msg: WIRE_ANNOUNCEMENT_SIGNATURES 010377311567b3836bb70324e26e9db227388da11494f79fc1c6d9b0ef7da66bc1f307d8b600
    00840000dc96043192337fb8255ff1bb149e7753c50a55a8bf912708ac27d740075fd11909d5b1c296a40bf0ac68b3a1e0c35cf48d4fc096a2625894ed042bb6dabffd7de0c95a4b498eee68d88e9f2ec729498d32ccd1a2ad76db92e
    27be052488138ac67d76f857a1a4955b638e99499444b16bfc7f33ce50ffd0ff76cf49b0989e3eb", "CHANNELD_NORMAL:Sent reestablish, waiting for theirs" ] } ] } ] }
    
  13. mkaand commented on Mar 20, 2018

    @mkaand
    Author

    I rebooted my server. And now it says connected:

    root@instance-1:~# lightning-cli listpeers
    { "peers" : 
            [ 
                    { "id" : "024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd", "connected" : true, "netaddr" : 
                            [ "165.227.69.151:9735" ], "alias" : "CL.rompert.com🔵 ", "color" : "0000ff", "channels" : 
                            [ 
                                    { "state" : "CHANNELD_AWAITING_LOCKIN", "owner" : "lightning_channeld", "funding_txid" : "82f2a80d5a672d74f51f81be0975f8bf00b9e228ec3448b7b2867b56575fafc8", "m
    satoshi_to_us" : 100000000, "msatoshi_total" : 100000000, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_minimum_ms
    at" : 0, "their_to_self_delay" : 144, "our_to_self_delay" : 144, "to_self_delay" : 144, "max_accepted_htlcs" : 483, "status" : 
                                            [ "CHANNELD_AWAITING_LOCKIN:Sent reestablish, waiting for theirs" ] } ] }, 
                    { "id" : "02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b", "connected" : true, "netaddr" : 
                            [ "167.99.50.31:9735" ], "alias" : "rompert.com🔵", "color" : "0000ff", "channels" : 
                            [ 
                                    { "state" : "CHANNELD_NORMAL", "owner" : "lightning_channeld", "short_channel_id" : "514230:132:0", "funding_txid" : "f3c16ba67defb0d9c6c19ff79414a18d3827b29d6
    ee22403b76b83b367153177", "msatoshi_to_us" : 199825000, "msatoshi_total" : 199825000, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_sat
    oshis" : 0, "htlc_minimum_msat" : 0, "their_to_self_delay" : 144, "our_to_self_delay" : 144, "to_self_delay" : 144, "max_accepted_htlcs" : 483, "status" : 
                                            [ "CHANNELD_NORMAL:Sent reestablish, waiting for theirs" ] } ] } ] }
    root@instance-1:~#
    

    I tried to copy-paste emoji to my alias. It accepted. But I have no idea about my node status.

  14. cdecker commented on Mar 20, 2018

    @cdecker
    Member

    The original issue about the channel to CL.rompert.com is a known issue with that particular node. It seems not to like disconnections while the channel is being confirmed.

    Marking as duplicate of #1243

  15. 5 remaining items

  16. mkaand commented on Mar 20, 2018

    @mkaand
    Author

    Could you check this transaction guys @cdecker @ZmnSCPxj
    https://blockchain.info/tx/f3c16ba67defb0d9c6c19ff79414a18d3827b29d6ee22403b76b83b367153177

    It seems I funded rompert.com but I cannot able to connect them. Can I get my money back? My 0.00199825 BTC gone... And there is no active channel.

    root@instance-1:~# lightning-cli listpeers { "peers" : [ { "id" : "024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd", "connected" : true, "netaddr" : [ "165.227.69.151:9735" ], "alias" : "CL.rompert.com🔵 ", "color" : "0000ff", "channels" : [ { "state" : "CHANNELD_AWAITING_LOCKIN", "owner" : "lightning_channeld", "funding_txid" : "82f2a80d5a672d74f51f81be0975f8bf00b9e228ec3448b7b2867b56575fafc8", " msatoshi_to_us" : 100000000, "msatoshi_total" : 100000000, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_minimum_ msat" : 0, "their_to_self_delay" : 144, "our_to_self_delay" : 144, "to_self_delay" : 144, "max_accepted_htlcs" : 483, "status" : [ "CHANNELD_AWAITING_LOCKIN:Reconnected, and reestablished.", "CHANNELD_AWAITING_LOCKIN:Funding needs more confirmations." ] } ] }, { "id" : "02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b", "connected" : false, "alias" : "rompert.com🔵", "color" : "0000ff", "channels" : [ { "state" : "ONCHAIN", "owner" : "lightning_onchaind", "short_channel_id" : "514230:132:0", "funding_txid" : "f3c16ba67defb0d9c6c19ff79414a18d3827b29d6ee22403 b76b83b367153177", "msatoshi_to_us" : 199825000, "msatoshi_total" : 199825000, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_minimum_msat" : 0, "their_to_self_delay" : 144, "our_to_self_delay" : 144, "to_self_delay" : 144, "max_accepted_htlcs" : 483, "status" : [ "ONCHAIN:Tracking our own unilateral close", "ONCHAIN:2 outputs unresolved: in 135 blocks will spend DELAYED_OUTPUT_TO_US (8781bd2d28fd5500b9e0a5142 db4032ae17791425f53e23c65204cb22f3909a9:0) using OUR_DELAYED_RETURN_TO_WALLET" ] } ] } ] }

  17. cdecker commented on Mar 20, 2018

    @cdecker
    Member

    Don't worry, since this is a unilateral close transaction from your side, you will have to wait for the timeout to complete. In this case it should take about 144 confirmations and it should get the funds back into the internal wallet. Judging from the number of confirmations on the closing transaction 8781bd2d28fd5500b9e0a5142db4032ae17791425f53e23c65204cb22f3909a9 it'll take another 124 confirmations ~= 20.6 hours and then you'll have the funds back.

  18. mkaand commented on Mar 21, 2018

    @mkaand
    Author

    Thank you @cdecker Looks like 26 blocks remaining now:

    { "state" : "ONCHAIN", "owner" : "lightning_onchaind", "short_channel_id" : "514230:132:0", "funding_txid" : "f3c16ba67defb0d9c6c19ff79414a18d3827b29d6ee22403 b76b83b367153177", "msatoshi_to_us" : 199825000, "msatoshi_total" : 199825000, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_minimum_msat" : 0, "their_to_self_delay" : 144, "our_to_self_delay" : 144, "to_self_delay" : 144, "max_accepted_htlcs" : 483, "status" : [ "ONCHAIN:Tracking our own unilateral close", "ONCHAIN:1 outputs unresolved: in 26 blocks will spend DELAYED_OUTPUT_TO_US (8781bd2d28fd5500b9e0a5142d b4032ae17791425f53e23c65204cb22f3909a9:0) using OUR_DELAYED_RETURN_TO_WALLET" ] } ] } ] }

  19. mkaand commented on Mar 21, 2018

    @mkaand
    Author

    @cdecker I think my money came back but of course I lost some of them for fees. I guess now I can try another node after failure of two connection. 98 blocks later My node will forget this channel I guess.

    root@instance-1:~# lightning-cli listpeers
    { "peers" : 
            [ 
                    { "id" : "024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd", "connected" : false, "channels" : 
                            [ 
                                    { "state" : "CHANNELD_AWAITING_LOCKIN", "funding_txid" : "82f2a80d5a672d74f51f81be0975f8bf00b9e228ec3448b7b2867b56575fafc8", "msatoshi_to_us" : 100000000, "ms
    atoshi_total" : 100000000, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_minimum_msat" : 0, "their_to_self_delay"
     : 144, "our_to_self_delay" : 144, "to_self_delay" : 144, "max_accepted_htlcs" : 483, "status" : 
                                            [ "CHANNELD_AWAITING_LOCKIN:Reconnected, and reestablished." ] } ] }, 
                    { "id" : "02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b", "connected" : false, "channels" : 
                            [ 
                                    { "state" : "ONCHAIN", "owner" : "lightning_onchaind", "short_channel_id" : "514230:132:0", "funding_txid" : "f3c16ba67defb0d9c6c19ff79414a18d3827b29d6ee22403
    b76b83b367153177", "msatoshi_to_us" : 199825000, "msatoshi_total" : 199825000, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis"
     : 0, "htlc_minimum_msat" : 0, "their_to_self_delay" : 144, "our_to_self_delay" : 144, "to_self_delay" : 144, "max_accepted_htlcs" : 483, "status" : 
                                            [ "ONCHAIN:Tracking our own unilateral close", "ONCHAIN:All outputs resolved: waiting 98 more blocks before forgetting channel" ] } ] } ] }
    root@instance-1:~# lightning-cli listfunds
    { "outputs" : 
            [ 
                    { "txid" : "54238d29fbb6d63ae2f6bf78502df4367dbac491ffc3c3e64c36801972294a87", "output" : 0, "value" : 199037, "status" : "confirmed" } ], "channels" : 
            [ 
                    { "peer_id" : "024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd", "channel_sat" : 100000, "channel_total_sat" : 100000, "funding_txid" : "82f2a80d5a672d74f5
    1f81be0975f8bf00b9e228ec3448b7b2867b56575fafc8" }, 
                    { "peer_id" : "02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b", "short_channel_id" : "514230:132:0", "channel_sat" : 199825, "channel_total_sat" : 199825,
     "funding_txid" : "f3c16ba67defb0d9c6c19ff79414a18d3827b29d6ee22403b76b83b367153177" } ] }
    root@instance-1:~#
    
  20. cdecker commented on Mar 21, 2018

    @cdecker
    Member

    Yep, you should be able to setup a new channel with someone else (I would suggest against trying with the same node again, since it seems non-cooperative).

    Do you consider this issue "fixed", since the funds were returned and the channel was closed correctly?

  21. mkaand commented on Mar 21, 2018

    @mkaand
    Author

    I got my funds but I will wait for close channel for close this issue. Thank you very much for your help.

  22. mkaand commented on Mar 22, 2018

    @mkaand
    Author

    @cdecker my third connection also CHANNELD_AWAITING_LOCKIN. Second one forgotten after some time but first and third one get stuck. I don't believe LN anymore. It needs to improve more. Maybe couple of years later I can retry. I need last favor from you guys.

    Just tell me how to shutdown my server properly and get my all remaning money. Thanks.

    { "peers" : [ { "id" : "024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd", "connected" : false, "channels" : [ { "state" : "CHANNELD_AWAITING_LOCKIN", "funding_txid" : "82f2a80d5a672d74f51f81be0975f8bf00b9e228ec3448b7b2867b56575fafc8", "msatoshi_to_us" : 100000000, "msatoshi_total" : 1000000 00, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_minimum_msat" : 0, "their_to_self_delay" : 144, "our_to_self_delay" : 144, "to_self_de lay" : 144, "max_accepted_htlcs" : 483, "status" : [ "CHANNELD_AWAITING_LOCKIN:Reconnected, and reestablished." ] } ] }, { "id" : "0371190acfb2e92bd1faa6ce4d12ff248798515a92ac903ac14d31b5172d9b2917", "connected" : true, "netaddr" : [ "176.9.113.240:9735" ], "alias" : "SPOCK", "color" : "000000", "channels" : [ { "state" : "CHANNELD_AWAITING_LOCKIN", "owner" : "lightning_channeld", "short_channel_id" : "514546:2156:0", "funding_txid" : "24267201837421ba765a1997ad34141e152b2f52ce1dc884b06c3 90e2fb655fa", "msatoshi_to_us" : 198870000, "msatoshi_total" : 198870000, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_minimum_msat" : 0, "their_to_self_delay" : 144, "our_to_self_delay" : 144, "to_self_delay" : 144, "max_accepted_htlcs" : 483, "status" : [ "CHANNELD_AWAITING_LOCKIN:Reconnected, and reestablished.", "CHANNELD_AWAITING_LOCKIN:We've confirmed funding, they haven't yet." ] } ] } ] }

  23. reopened this on Mar 22, 2018
  24. ZmnSCPxj commented on Mar 22, 2018

    @ZmnSCPxj
    Contributor

    @mkaand, leave it open for a while, do not shut down the lightningd, do not close or devfail or dev-rescan-outputs, and wait maybe an hour or two. That should be sufficient for the other side to see the transaction and respond.

    Then try it out if it has gotten into CHANNELD_NORMAL.

    If it has not, probably, dev-fail again, then wait again for money to be redeemed. Then withdraw all to an address you control. (you still need to wait for the other side to realize that the funding transaction has confirmed anyway, so you might as well just wait it out and then try the network)

  25. mkaand commented on Mar 22, 2018

    @mkaand
    Author

    Hello @ZmnSCPxj You sent above message 3 hours ago. And nothing change. LN is finished for me.

    root@instance-1:~# lightning-cli listpeers
    { "peers" :
    [
    { "id" : "024bd94f0425590434538fd21d4e58982f7e9cfd8f339205a73deb9c0e0341f5bd", "connected" : false, "channels" :
    [
    { "state" : "CHANNELD_AWAITING_LOCKIN", "funding_txid" : "82f2a80d5a672d74f51f81be0975f8bf00b9e228ec3448b7b2867b56575fafc8", "msatoshi_to_us" : 100000000, "msatoshi_total" : 1000000
    00, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_minimum_msat" : 0, "their_to_self_delay" : 144, "our_to_self_delay" : 144, "to_self_de
    lay" : 144, "max_accepted_htlcs" : 483, "status" :
    [ "CHANNELD_AWAITING_LOCKIN:Reconnected, and reestablished." ] } ] },
    { "id" : "0371190acfb2e92bd1faa6ce4d12ff248798515a92ac903ac14d31b5172d9b2917", "connected" : true, "netaddr" :
    [ "176.9.113.240:9735" ], "alias" : "SPOCK", "color" : "000000", "channels" :
    [
    { "state" : "CHANNELD_AWAITING_LOCKIN", "owner" : "lightning_channeld", "short_channel_id" : "514546:2156:0", "funding_txid" : "24267201837421ba765a1997ad34141e152b2f52ce1dc884b06c3
    90e2fb655fa", "msatoshi_to_us" : 198870000, "msatoshi_total" : 198870000, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_minimum_msat" :
    0, "their_to_self_delay" : 144, "our_to_self_delay" : 144, "to_self_delay" : 144, "max_accepted_htlcs" : 483, "status" :
    [ "CHANNELD_AWAITING_LOCKIN:Reconnected, and reestablished.", "CHANNELD_AWAITING_LOCKIN:We've confirmed funding, they haven't yet." ] } ] } ] }

  26. ZmnSCPxj commented on Mar 22, 2018

    @ZmnSCPxj
    Contributor

    Sorry I could not be of more help. My part is primarily send and receive of payments once already in Lightning, but it looks like the transition from onchain to offchain is buggy. Many of those bugs have already been found and fixed, but many nodes do not have updated running code, and it takes two to tango: if the counterparty still has a bug regarding monitoring of funding transactions then it will continue to prevent use of the channel.

  27. mkaand commented on Mar 22, 2018

    @mkaand
    Author

    You guys tried to help me. Thank you very much. I have an idea. I don't know who is in charge for https://lnmainnet.gaben.win/ this website. But all newbies find nodes from this website. If this website only shows updated nodes problem can easily solve I guess. Just think about it. Or they can add a filter for version of LN.

  28. ZmnSCPxj commented on Mar 22, 2018

    @ZmnSCPxj
    Contributor

    There are four somewhat-specs-compiiant Lightning Network programs with their own teams (lightningd, lnd, eclair, ucoin), each with their own peculiarities for versioning. Nodes also do not publish their implementation name and version, and in any case could be trivially modified to misreport.

    lightningd (this project) does publish part of its version as the node alias, and is probably the only one which does so, so maybe that could be done; but I do not know the owner if gaben either. lightningd also does not put its version if the user indicated his or her own node alias.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions