6

I started out writing this answer while trying to do it myself, but then found out that we don't yet have tools to manually edit partially signed Bitcoin transactions (PSBTs) which is the very last step before we finalize the double-spend. So this answer is currently incomplete, but I'm planning on building out that tooling and write a plugin that automates ...


5

Technically you can double spend the output that was used for the funding TX with a higher fee. Then the channel will never be opened. Practically I don't think any of the lightning network implementations offer an api to do so.


4

You can trigger a shell script with them, and more. This is related to the plugin functionalities provided by lightningd and not bitcoind. lightningd allows you to run plugins to deeply modify its behaviour, or extend its possibilities. It idiomatically (small and robust core, customizable functionalities) relies a lot on them and therefore directed the ...


3

There are three types of spam problem in the Lightning Network. Let's call them "local","fast" and "slow". Local spam is someone sending or requesting too much data: that's a simple batter of code with rate limiting etc. Fast spam is sending many failed payments. You can't tell what will succeed and you can't blame the sending ...


3

No, one vbyte [vB] is equal to four weightunits [wu]. The people working on C-Lightning use "sipa" interchangeably for a weightunit. 1,000 sat/kvB = 1 sat/vB 1 sat/vB = 0.25 sat/wu 0.25 sat/wu = 250 sat/kwu 20 sat/vB = 5,000 sat/kwu Also see: Is there a difference between bytes and virtual bytes (vbytes)?


3

c-lightning doesn't store old versions of the commitment transaction, exactly in order to avoid accidentally cheating. If you compiled with DEVELOPER=1 you can however call lightning-cli dev-sign-last-tx {peer-id} and it'll spit out the fully signed commitment transaction (that's why dev-* commands are dangerous and should not be used if you don't know ...


3

lightningd doesn't offer simple RPC commands to dump keys. If you really need to access the keys the simplest way would be to derive them directly from the hsm_secret. Keys for onchain transactions (since you mentioned newaddr. The other derivations are more involved) are derived using BIP32 unhardened derivation from m/0/0. The root seed is derived from the ...


2

The first line is normal behaviour: UNUSUAL plugin-bcli: Could not connect to 'lightning-rpc': Connection refused Your lightningd cannot start if the underlying bitcoind is not up-to-date: 2020-07-20T02:59:44.730Z UNUSUAL lightningd: Waiting for initial block download (this can take a while!) 2020-07-20T02:59:44.732Z UNUSUAL lightningd: Unable to estimate ...


2

In order for you to see these scripts you'll have to force the channel on-chain, along with the HTLC. Only then will the HTLC be swept using the script, otherwise you'll only see the P2WSH output for the HTLC being added and then removed if the payment succeeds or fails. Under normal operation you wouldn't therefore see the HTLC. When testing c-lightning we ...


2

Is it possible the problem for that to be related to TOR, considering that I can connect to and open channels with public nodes just fine? No, that's very unlikely. (and contradictory) Are the channels you created announced ? Are your two nodes connected to the network ? For a node to find a route it needs to be connected to the peer-to-peer network to ...


2

Rusty Russell discussed lnprototest (repo link) during the August 2020 Sydney Socratic Seminar. What is lnprototest exactly? It is a pure Python3 test system and some packages to interface with the spec that currently live in the c-lightning repository. You run lnprototest and it has these scripts that go “I will send this” and you will send back this. It ...


2

Cannot close a channel which has not been opened yet, but you can either bump the fee of the transaction by CPFP or cancel by double spending the unconfirmed input. Notes when using LND: Do not leave a channel open pending for more than 2 weeks because it will result to a failed state. If there is a change output can use CPFP (https://api.lightning.community/...


2

You opened a 1 million Satoshi channel and send 500 sats to the other side. The protocol requires a 1%channel reserve kept on both sides for the penalty mechanism to always have enough collateral. This one percent is ignored initially if you never had that much balance (e. G. On new channels) but is the reason why you can't send sats unless you met the 1% ...


1

Lightning needs very little computing resources so the hardware in use is most certainly not the issue and has very little impact at all. The described difference in time between the sending and receiving node is normal, to be expected and cannot be changed. The reason is that the payment/routing process works by selecting a path along which HTLCs are tried ...


1

Yes but not by default. C-lightning uses a pluggable Bitcoin backend. The default one, bcli, will use the bitcoin-cli executable to make requests to a bitcoind. It exposes bitcoin-cli's rpcconnect startup option to lightningd which does not not support onion hosts. And you probably don't want it to as it is not meant to be exposed. If you want to run C-...


1

There is the routes field in the invoice as a routing hint "routes": [ [ { "pubkey": "03933884aaf1d6b108397e5efe5c86bcf2d8ca8d2f700eda99db9214fc2712b134", "short_channel_id": "1891311x61x0", "fee_base_msat": 1000, "...


1

lightning-cli listchannels is what you are looking for to also see the channels and not only the nodes. In general the lightning nodes learn the network view from the gossip protocol where closed channels may be discarded and not forwarded anymore. If you look proprietary tools like the one you mentioned they might have stored older nodes and channels this ...


1

Clightning actually needs to scan all blocks to check for output's and Adresses it controls. I assume most likely your c-lightning node is so fresh that it has not seen such a late block yet. Once your c Lightning node is up to date funds appear directly in listfunds once they are confirmed. So I guess you can do two things. Check your log file and see how ...


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