Categories
Bitcoin Cryptocurrency Mastering Development

Retrieve address when create a channel lightning network

I have two nodes in regtest. the first one is: $ l1-cli getinfo { "id": "02c3f99e70c8da59e428dd119d36c0a1317e5cd85218a760355b5f9b4f822f6109", "alias": "ALICE", "color": "ddff06", "num_peers": 0, "num_pending_channels": 0, "num_active_channels": 0, "num_inactive_channels": 0, "address": [], "binding": [ { "type": "ipv4", "address": "127.0.0.1", "port": 6060 } ], "version": "v0.8.2-269-g6014644", "blockheight": 1, "network": "regtest", "msatoshi_fees_collected": 0, "fees_collected_msat": "0msat", "lightning-dir": "/tmp/l1-regtest/regtest" } $ […]

Categories
Bitcoin Cryptocurrency Mastering Development

My lightning node is unreachable and lightning-rpc’: Connection refused

I’m trying to use c-lightning on my raspberry. When start the lightning daemon I get two errors: the first one is: 2020-06-05T17:02:08.784Z DEBUG connectd: Failed to connect 10 socket: Network is unreachable My .lightning/config is: alias=LIGHTNING_NODE_ROCK rgb=DDFF06 addr=:9735 log-level=debug network=testnet bitcoin-cli=/usr/local/bin/bitcoin-cli bitcoin-datadir=/home/bitcoin/.bitcoin log-prefix=raspi-lightning ignore-fee-limits=true fee-base=10 bitcoin-rpcuser=user bitcoin-rpcpassword=userpass bitcoin-rpcconnect=127.0.0.1 bitcoin-rpcport=18332 my bitcoin.conf is: testnet=1 [test] rpcuser=user […]