4

You basically answered the question already yourself. Besides the 1% channel reserve you as the funder are responsible for paying onchain fees in case you need to force close the channel by spending the commitment transaction. C Lightning (and lightning nodes in general) are rather overestimating onchain fees as they cannot rely on the fact that the fees ...


4

Currently it cost $0.000116736 USD (1 satoshi) fee to make a transaction on lightning. This is incorrect; there is no set price for sending a LN transaction. Each node can define its own policy for forwarding a payment through the network (base fee rate, plus a small percentage of the amount forwarded), so the fee paid will depend on the payment route ...


3

I guess this has historical reasons. The short channel ids where there first in the onion format. C Lightning even today does not support multiple channels between 2 nodes. Lnd on the other hand does. That is why lnd developers started to switch the channel if a second channel with enough balance between the nodes existed. Later on it was agreed to add the ...


3

Lightning invoices are signed by the node issuing the invoice in order to verify the signature we need to know the node id. Thus it is included in the invoice. Lightning nodes provide an API to decode invoices. In c-lightning you can do (lnd below!) lightning-cli decodepay ...


2

You will find the answer to your question in BOLT 02 in the section about the update_fulfill_htlc message from there I quote: If the payment_preimage value in update_fulfill_htlc doesn't SHA256 hash to the corresponding HTLC payment_hash [the receiving node] MUST fail the channel. This goes for every local HTLC so if Charlie sends the wrong ...


2

I am gonna need to use prude mod and began the download of the chain starting from march 2018 as recquired by lnd, my question is which bitcoin client is able to do that and how to configure it for this procedure ? I don’t believe any client can do this: how will your node know if a UTXO from before March 2018 was valid if it hast verified the full ...


2

So in Bitcoind you can define authentication via an rpc interface (remote procedure call). In the config file of Bitcoind which is usually located in ~/.bitcoin/bitcoin.conf you can set the values for rpcuser=bitcoind_rpc_user_string rpcpass=bitcoind_rpc_password_string Obviously you should select other values than the ones in this answer / question. You ...


2

Listen: This specifies the interfaces to listen to for incoming connections to your node. This will allow other nodes to establish inbound connections to your lnd node. If you want to listen to all ipv4 connections on port 9735, you can use listen = 0.0.0.0:9735 External IP: Adding an external IP advertises your node to the network. If you'd like to signal ...


1

lncli pendingchannels gives a pendingChannelRespnse which might have the pending_open_channels parameter. This contains an array of PendingOpenChannel objects. According to the documentation they should have a parameter confirmation_height which is the height of the blockchain at which the funding TX has enough confirmations (the max of your and your ...


1

How then further transactions can happen without waiting for the secret R? Does it mean that the HTLC contracts get simply "carried over" in the subsequent transactions between A and B? Yes, that is correct. You go on adding HLTC outputs in the commitment transactions as more and more HTLCs are added, and delete those HTLCs that are either fullfiled with a ...


1

Lnd itself does as far as I remember not provide an api for rebalancing channels. However there is the lndmanage repository that uses the lnd api to provide a pretty strong rebalancing tool https://github.com/bitromortac/lndmanage Such rebalancing will cost you routing fees as they are regular (circular) payments. That being said it is not clear why you ...


1

lncli listchannels will tell you the local balance and remote balance of each channel (in satoshis). You could simply sum up the the balances of all your channels to find the total outgoing capacity (local balance) and incoming capacity (remote balance) you have. Here is a one-liner that reports the sum of your inbound capacity (requires jq): lncli ...


Only top voted, non community-wiki answers of a minimum length are eligible