ldk-sample
19 months agoMerge pull request #71 from tnull/2022-09-improve-hex-utils
Matt Corallo [Thu, 15 Sep 2022 20:02:12 +0000 (20:02 +0000)]
Merge pull request #71 from tnull/2022-09-improve-hex-utils

Small improvements of `hex_utils`

19 months agoSmall improvements of `hex_utils`
Elias Rohrer [Wed, 14 Sep 2022 10:52:19 +0000 (12:52 +0200)]
Small improvements of `hex_utils`

19 months agoUpdate to LDK 0.0.111 and add command for sending an empty onion message
Valentine Wallace [Tue, 13 Sep 2022 21:07:48 +0000 (17:07 -0400)]
Update to LDK 0.0.111 and add command for sending an empty onion message

20 months agoMerge pull request #65 from standardsats/main
Matt Corallo [Mon, 5 Sep 2022 16:06:31 +0000 (16:06 +0000)]
Merge pull request #65 from standardsats/main

Update README.md

20 months agoMerge pull request #68 from tnull/2022-09-05-dont-double-check-addr
Matt Corallo [Mon, 5 Sep 2022 16:05:42 +0000 (16:05 +0000)]
Merge pull request #68 from tnull/2022-09-05-dont-double-check-addr

Remove redundant `is_none()` check

20 months agoRemove redundant `is_none()` check
Elias Rohrer [Mon, 5 Sep 2022 10:18:30 +0000 (12:18 +0200)]
Remove redundant `is_none()` check

We don't need to check the same iterator twice. And, as at this point
pubkey will always be `Some(..)`, we don't need to check it either.
We therefore can just remove the first part of the condition.

20 months agoMerge pull request #67 from catenocrypt/main
Matt Corallo [Sat, 20 Aug 2022 21:55:08 +0000 (21:55 +0000)]
Merge pull request #67 from catenocrypt/main

Add --public option to openchannel command help

20 months agoAdd --public option to openchannel command help
catenocrypt [Sat, 20 Aug 2022 20:08:37 +0000 (22:08 +0200)]
Add --public option to openchannel command help

21 months agoUpdate README.md
Ilya Evdokimov [Sun, 31 Jul 2022 10:15:40 +0000 (12:15 +0200)]
Update README.md

21 months agoMerge pull request #66 from tnull/2022-07-update-to-0.0.110
Matt Corallo [Thu, 28 Jul 2022 17:38:50 +0000 (17:38 +0000)]
Merge pull request #66 from tnull/2022-07-update-to-0.0.110

Update to LDK v0.0.110

21 months agoUpdate to v0.0.110
Elias Rohrer [Wed, 27 Jul 2022 07:24:13 +0000 (09:24 +0200)]
Update to v0.0.110

21 months agoMerge pull request #64 from TheBlueMatt/main
Matt Corallo [Mon, 18 Jul 2022 20:53:50 +0000 (20:53 +0000)]
Merge pull request #64 from TheBlueMatt/main

21 months agoCorrect logging on forwarded HTLCs
Matt Corallo [Sat, 16 Jul 2022 15:48:39 +0000 (15:48 +0000)]
Correct logging on forwarded HTLCs

Instead of "forwarded from A from B" it should read "forwarded
from A to B".

21 months agoMerge pull request #62 from TheBlueMatt/main
Jeffrey Czyz [Sat, 9 Jul 2022 01:01:37 +0000 (20:01 -0500)]
Merge pull request #62 from TheBlueMatt/main

Update to LDK 0.0.109

21 months agoUpdate Cargo.lock with tokio 1.14.1, matching our MSRV
Matt Corallo [Thu, 7 Jul 2022 14:41:42 +0000 (14:41 +0000)]
Update Cargo.lock with tokio 1.14.1, matching our MSRV

21 months agoUpdate code and Cargo.toml to LDK 0.0.109
Matt Corallo [Thu, 7 Jul 2022 14:41:14 +0000 (14:41 +0000)]
Update code and Cargo.toml to LDK 0.0.109

22 months agoMerge pull request #59 from jkczyz/2022-06-ldk-108
Matt Corallo [Sat, 11 Jun 2022 08:14:50 +0000 (01:14 -0700)]
Merge pull request #59 from jkczyz/2022-06-ldk-108

22 months agoUpdate Cargo.lock
Jeffrey Czyz [Fri, 10 Jun 2022 22:00:29 +0000 (17:00 -0500)]
Update Cargo.lock

22 months agoUpdate to LDK 0.0.108
Jeffrey Czyz [Fri, 10 Jun 2022 21:55:53 +0000 (16:55 -0500)]
Update to LDK 0.0.108

22 months agoMerge pull request #58 from jkczyz/2022-05-ldk-107
Matt Corallo [Thu, 9 Jun 2022 22:19:19 +0000 (15:19 -0700)]
Merge pull request #58 from jkczyz/2022-05-ldk-107

Update to LDK 0.0.107

22 months agoUpdate Cargo.lock
Jeffrey Czyz [Thu, 9 Jun 2022 00:48:40 +0000 (19:48 -0500)]
Update Cargo.lock

22 months agoUse a 10-second timeout for InvoicePayer
Jeffrey Czyz [Thu, 9 Jun 2022 16:14:53 +0000 (11:14 -0500)]
Use a 10-second timeout for InvoicePayer

22 months agoAvoid cloning Arcs when handling each event
Jeffrey Czyz [Thu, 19 May 2022 02:47:04 +0000 (21:47 -0500)]
Avoid cloning Arcs when handling each event

22 months agoPrint next and previous nodes for PaymentForwarded
Jeffrey Czyz [Thu, 19 May 2022 02:36:56 +0000 (21:36 -0500)]
Print next and previous nodes for PaymentForwarded

22 months agoUpdate to LDK 0.0.107
Jeffrey Czyz [Wed, 18 May 2022 19:21:44 +0000 (14:21 -0500)]
Update to LDK 0.0.107

2 years agoMerge pull request #57 from meryacine/main
Matt Corallo [Sun, 17 Apr 2022 18:27:44 +0000 (18:27 +0000)]
Merge pull request #57 from meryacine/main

Add a help message for the `keysend` command

2 years agoAdd a help message for the `keysend` command
meryacine [Sun, 17 Apr 2022 10:30:03 +0000 (12:30 +0200)]
Add a help message for the `keysend` command

2 years agoMerge pull request #56 from TheBlueMatt/main
Jeffrey Czyz [Tue, 5 Apr 2022 18:37:39 +0000 (11:37 -0700)]
Merge pull request #56 from TheBlueMatt/main

Stop connecting outbound on shutdown in addition to stopping listen

2 years agoStop connecting outbound on shutdown in addition to stopping listen
Matt Corallo [Sun, 3 Apr 2022 02:26:07 +0000 (02:26 +0000)]
Stop connecting outbound on shutdown in addition to stopping listen

Now that we persist the network graph on shutdown, there is a
nontrivial amount of time spent between when we start shutdown and
when we complete. Thus, and to be somewhat more pedantic as a
sample implementation, we should really stop making new outbound
connections once shutdown starts, and not only focus on new inbound
connections.

2 years agoMerge pull request #51 from jkczyz/2022-03-ldk-106
Matt Corallo [Mon, 4 Apr 2022 20:09:44 +0000 (20:09 +0000)]
Merge pull request #51 from jkczyz/2022-03-ldk-106

Update to LDK 0.0.106

2 years agoUpdate Cargo.lock
Jeffrey Czyz [Wed, 23 Mar 2022 18:01:14 +0000 (13:01 -0500)]
Update Cargo.lock

2 years agoUpdate to LDK 0.0.106
Jeffrey Czyz [Wed, 23 Mar 2022 18:01:05 +0000 (13:01 -0500)]
Update to LDK 0.0.106

2 years agoMerge pull request #55 from TheBlueMatt/2022-03-node-alias
Matt Corallo [Tue, 29 Mar 2022 23:13:30 +0000 (23:13 +0000)]
Merge pull request #55 from TheBlueMatt/2022-03-node-alias

2 years agoMerge pull request #54 from TheBlueMatt/main
Matt Corallo [Tue, 29 Mar 2022 23:13:17 +0000 (23:13 +0000)]
Merge pull request #54 from TheBlueMatt/main

2 years agoAvoid panic if chan IDs passed to {force,}closechannel isn't 32 bytes
Matt Corallo [Sun, 27 Mar 2022 03:32:43 +0000 (03:32 +0000)]
Avoid panic if chan IDs passed to {force,}closechannel isn't 32 bytes

2 years agoPrint our peers' aliases in `listchannels` 2022-03-node-alias
Matt Corallo [Sun, 27 Mar 2022 18:25:55 +0000 (18:25 +0000)]
Print our peers' aliases in `listchannels`

2 years agoAllow `txn-mempool-conflict` errors when broadcasting transactions
Matt Corallo [Sun, 27 Mar 2022 18:19:40 +0000 (18:19 +0000)]
Allow `txn-mempool-conflict` errors when broadcasting transactions

This can be seen, among other times, when a channel is
cooperatively- (or counterparty-)closed and we restart, causing us
to attempt to broadcast our local commitment tx, which conflicts
with the original closing transaction.

2 years agoAdd a bounds check before accessing a user-provided PK string
Matt Corallo [Sat, 26 Mar 2022 20:28:57 +0000 (20:28 +0000)]
Add a bounds check before accessing a user-provided PK string

Fixes #53.

2 years agoMerge pull request #52 from TheBlueMatt/main
Matt Corallo [Fri, 25 Mar 2022 23:35:30 +0000 (23:35 +0000)]
Merge pull request #52 from TheBlueMatt/main

Cleanly shut down PeerManager by disconnecting before we quit

2 years agoCorrect balance printing in cli
Matt Corallo [Fri, 25 Mar 2022 23:16:32 +0000 (23:16 +0000)]
Correct balance printing in cli

The `outbound_capacity_msat + unspendable_punishment_reserve`
calculation is fine, as long as the channel's current balance is
above the reserve value. If it is not, we'll spuriously report a
balance higher than we actually have.

This corrects that be havior by using the new(er) `balance_msat`
field instead.

2 years agoCleanly shut down PeerManager by disconnecting before we quit
Matt Corallo [Thu, 24 Mar 2022 00:05:31 +0000 (00:05 +0000)]
Cleanly shut down PeerManager by disconnecting before we quit

This ensures we don't keep processing peer messages long after we
stopped the backgroundprocessor (which results in our
`ChannelManager` on disk being stale compared to monitors).

2 years agoMerge pull request #46 from TheBlueMatt/2022-03-0.0.105
valentinewallace [Thu, 10 Mar 2022 21:11:40 +0000 (16:11 -0500)]
Merge pull request #46 from TheBlueMatt/2022-03-0.0.105

Update to LDK 0.0.105

2 years agoUse new `ProbabilisticScorer` instead of the deprecated `Scorer` 2022-03-0.0.105
Matt Corallo [Mon, 7 Mar 2022 18:49:23 +0000 (18:49 +0000)]
Use new `ProbabilisticScorer` instead of the deprecated `Scorer`

2 years agoUpdate Cargo.lock
Matt Corallo [Mon, 7 Mar 2022 18:41:15 +0000 (18:41 +0000)]
Update Cargo.lock

2 years agoUpdate to 0.0.105 upstream API
Matt Corallo [Mon, 7 Mar 2022 18:41:07 +0000 (18:41 +0000)]
Update to 0.0.105 upstream API

2 years agoMerge pull request #43 from TheBlueMatt/2021-12-0.0.104
Matt Corallo [Tue, 11 Jan 2022 18:44:36 +0000 (18:44 +0000)]
Merge pull request #43 from TheBlueMatt/2021-12-0.0.104

LDK 0.0.104

2 years agoSwitch keysend command to using InvoicePayer to get retries 2021-12-0.0.104
Matt Corallo [Mon, 20 Dec 2021 00:37:01 +0000 (00:37 +0000)]
Switch keysend command to using InvoicePayer to get retries

2 years agoExpose the fee paid on a payment in stdout
Matt Corallo [Sun, 19 Dec 2021 21:20:11 +0000 (21:20 +0000)]
Expose the fee paid on a payment in stdout

2 years agoDrop GOSSIP-level logging at compile-time
Matt Corallo [Sun, 19 Dec 2021 19:28:27 +0000 (19:28 +0000)]
Drop GOSSIP-level logging at compile-time

2 years agoUpdate Cargo.lock
Matt Corallo [Sun, 19 Dec 2021 19:25:06 +0000 (19:25 +0000)]
Update Cargo.lock

2 years agoUpdate to LDK 0.0.104
Matt Corallo [Sun, 19 Dec 2021 19:24:59 +0000 (19:24 +0000)]
Update to LDK 0.0.104

2 years agoMerge pull request #42 from dongcarl/2021-11-add-signet
Jeffrey Czyz [Tue, 30 Nov 2021 19:12:52 +0000 (13:12 -0600)]
Merge pull request #42 from dongcarl/2021-11-add-signet

Add Signet support

2 years agoAdd Signet support
Carl Dong [Thu, 25 Nov 2021 01:47:28 +0000 (20:47 -0500)]
Add Signet support

2 years agoFix signmessage offset calculation
Matt Corallo [Sun, 14 Nov 2021 22:06:57 +0000 (22:06 +0000)]
Fix signmessage offset calculation

2 years agoAuto-reconnect peers every second
Matt Corallo [Thu, 11 Nov 2021 17:54:42 +0000 (17:54 +0000)]
Auto-reconnect peers every second

2 years agoInclude total local balance across all channels in `nodeinfo`
Matt Corallo [Thu, 11 Nov 2021 17:49:45 +0000 (17:49 +0000)]
Include total local balance across all channels in `nodeinfo`

2 years agoPrint CLI prompt at top of loop instead of before each `continue`
Matt Corallo [Sun, 7 Nov 2021 18:08:52 +0000 (18:08 +0000)]
Print CLI prompt at top of loop instead of before each `continue`

2 years agoMerge pull request #40 from jkczyz/2021-11-release-103
Matt Corallo [Thu, 4 Nov 2021 21:13:12 +0000 (21:13 +0000)]
Merge pull request #40 from jkczyz/2021-11-release-103

Update sample for 0.0.103

2 years agoPersist channel scores
Jeffrey Czyz [Tue, 2 Nov 2021 21:06:05 +0000 (16:06 -0500)]
Persist channel scores

2 years agoUse InvoicePayer in send_payment
Jeffrey Czyz [Tue, 2 Nov 2021 20:31:28 +0000 (15:31 -0500)]
Use InvoicePayer in send_payment

2 years agoUpdate dependencies to LDK 0.0.103
Jeffrey Czyz [Tue, 2 Nov 2021 17:28:35 +0000 (12:28 -0500)]
Update dependencies to LDK 0.0.103

2 years agoMerge pull request #39 from TheBlueMatt/main
valentinewallace [Tue, 19 Oct 2021 18:41:09 +0000 (14:41 -0400)]
Merge pull request #39 from TheBlueMatt/main

Update dependencies to LDK 0.0.102

2 years agoSwap time for chrono and log subsecond precision for times
Matt Corallo [Sun, 17 Oct 2021 00:50:34 +0000 (00:50 +0000)]
Swap time for chrono and log subsecond precision for times

The `time` crate appears to be basically undocumented (or, at
least, I couldn't find any documentation). `chrono` isn't super
well-documented, but at least its passable.

2 years agoAdd lightning message-signing support
Matt Corallo [Sun, 17 Oct 2021 00:48:04 +0000 (00:48 +0000)]
Add lightning message-signing support

2 years agoUpdate dependencies to LDK 0.0.102
Matt Corallo [Sun, 17 Oct 2021 00:30:23 +0000 (00:30 +0000)]
Update dependencies to LDK 0.0.102

2 years agoMerge pull request #37 from radixrat/main
Matt Corallo [Sun, 17 Oct 2021 01:12:28 +0000 (01:12 +0000)]
Merge pull request #37 from radixrat/main

use rsplitn for rpc info extraction in case passwords have @

2 years agouse rsplitn for rpc info extraction in case passwords have @
cadwgan0 [Fri, 15 Oct 2021 04:14:03 +0000 (00:14 -0400)]
use rsplitn for rpc info extraction in case passwords have @

remove swap, fix rustfmt issue

remove return

2 years agoMerge pull request #36 from lightningdevkit/moneyball-patch-1
Conor Okus [Thu, 14 Oct 2021 15:52:57 +0000 (16:52 +0100)]
Merge pull request #36 from lightningdevkit/moneyball-patch-1

update installation instructions to work even if ssh keys aren't setup

2 years agoupdate installation instructions to work even if ssh keys aren't setup
Steve Lee [Thu, 14 Oct 2021 14:47:03 +0000 (07:47 -0700)]
update installation instructions to work even if ssh keys aren't setup

2 years agoMerge pull request #35 from TheBlueMatt/2021-09-0.0.101
valentinewallace [Wed, 29 Sep 2021 23:36:57 +0000 (19:36 -0400)]
Merge pull request #35 from TheBlueMatt/2021-09-0.0.101

Update to rust-lightning 0.0.101 API and use release, not git deps

2 years agoUse an explicit handle when spawning RPC calls 2021-09-0.0.101
Matt Corallo [Mon, 27 Sep 2021 20:03:12 +0000 (20:03 +0000)]
Use an explicit handle when spawning RPC calls

This resolves a panic like the following, which is caused when a
non-Tokio thread tries to broadcast a transaction, for example
when a transaction is broadcasted indirectly by the background
processor.

```
thread '<unnamed>' panicked at 'there is no reactor running, must be called from the context of a Tokio 1.x runtime', src/bitcoind_client.rs:253:9
```

2 years agoUpdate to rust-lightning 0.0.101 API and use release, not git deps
Matt Corallo [Sat, 25 Sep 2021 19:15:16 +0000 (19:15 +0000)]
Update to rust-lightning 0.0.101 API and use release, not git deps

2 years agoMerge pull request #34 from lightningdevkit/2021-08-fix-33
valentinewallace [Tue, 31 Aug 2021 01:32:46 +0000 (21:32 -0400)]
Merge pull request #34 from lightningdevkit/2021-08-fix-33

Correctly parse args without port but with net

2 years agoMerge pull request #28 from sr-gi/fix-sendrawtransaction
Jeffrey Czyz [Fri, 27 Aug 2021 17:41:30 +0000 (10:41 -0700)]
Merge pull request #28 from sr-gi/fix-sendrawtransaction

Makes send_raw_transaction return TxidHex instead of RawTx

2 years agoCorrectly parse args without port but with net
Matt Corallo [Thu, 26 Aug 2021 04:17:59 +0000 (04:17 +0000)]
Correctly parse args without port but with net

Fixes #33.

2 years agoMakes send_raw_transaction return Txid instead of RawTx
Sergi Delgado Segura [Thu, 26 Aug 2021 15:14:31 +0000 (17:14 +0200)]
Makes send_raw_transaction return Txid instead of RawTx

'bitcoind_client::send_raw_transaction' was returning 'RawTx' which, while syntactically correct (it's a wrapper around String), made no sense conceptually.

Since rust-bitcoin/rust-lightning@f65d05c, `Txid` can be used instead.

2 years agoBumps lightning dependencies
Sergi Delgado Segura [Thu, 26 Aug 2021 15:11:53 +0000 (17:11 +0200)]
Bumps lightning dependencies

'rust-lightning' needs to be bumped to v0.0.100 rev d523b6e so 'TryInto::<Txid>' can be found in 'lightning-block-sync'. Bumping it any further will change 'PeerManager's API due to https://github.com/rust-bitcoin/rust-lightning/commit/45853b3a956f83569dff1010a43a33c57487698a

2 years agoMerge pull request #32 from lightningdevkit/2021-08-skip-change-check
valentinewallace [Wed, 18 Aug 2021 15:50:53 +0000 (11:50 -0400)]
Merge pull request #32 from lightningdevkit/2021-08-skip-change-check

Drop unused change output calculation

2 years agoDrop unused change output calculation
Matt Corallo [Wed, 18 Aug 2021 15:48:16 +0000 (15:48 +0000)]
Drop unused change output calculation

We don't need this at all anymore since LDK automatically scans
for the correct output index these days.

Fixes #31.

2 years agoMerge pull request #30 from lightningdevkit/2021-08-more-failure-codes
valentinewallace [Tue, 17 Aug 2021 15:53:10 +0000 (11:53 -0400)]
Merge pull request #30 from lightningdevkit/2021-08-more-failure-codes

Allow "rejecting replacement" tx broadcast error

2 years agoAllow "rejecting replacement" tx broadcast error
Matt Corallo [Tue, 17 Aug 2021 01:33:01 +0000 (01:33 +0000)]
Allow "rejecting replacement" tx broadcast error

We occasionally will attempt to broadcast transactions which conflicting
with mempool transactions which are marked RBF. If we don't have a
higher fee, we'll get a "rejecting replacement" error, which should not
cause a panic.

2 years agoMerge pull request #29 from TheBlueMatt/main
valentinewallace [Fri, 13 Aug 2021 19:37:49 +0000 (15:37 -0400)]
Merge pull request #29 from TheBlueMatt/main

Update to latest upstream rust-lightning, bumping deps

2 years agoUpdate Cargo.lock with updated deps
Matt Corallo [Fri, 13 Aug 2021 19:27:12 +0000 (19:27 +0000)]
Update Cargo.lock with updated deps

2 years agoUpdate to latest upstream rust-lightning, bumping deps
Matt Corallo [Fri, 13 Aug 2021 19:26:57 +0000 (19:26 +0000)]
Update to latest upstream rust-lightning, bumping deps

2 years agoMerge pull request #26 from TheBlueMatt/main
valentinewallace [Fri, 6 Aug 2021 22:37:15 +0000 (18:37 -0400)]
Merge pull request #26 from TheBlueMatt/main

Display our local balance in addition to the available-for-send balance

2 years agoMerge pull request #24 from jkczyz/2021-07-background-processor
Matt Corallo [Sun, 1 Aug 2021 19:48:24 +0000 (19:48 +0000)]
Merge pull request #24 from jkczyz/2021-07-background-processor

Explicitly stop BackgroundProcessor

2 years agoDisplay our local balance in addition to the available-for-send balance
Matt Corallo [Fri, 30 Jul 2021 16:21:06 +0000 (16:21 +0000)]
Display our local balance in addition to the available-for-send balance

2 years agoMerge pull request #25 from valentinewallace/2021-06-keysend
Matt Corallo [Wed, 28 Jul 2021 22:01:50 +0000 (22:01 +0000)]
Merge pull request #25 from valentinewallace/2021-06-keysend

Keysend

2 years agoKeysend support
Valentine Wallace [Wed, 28 Jul 2021 21:49:49 +0000 (17:49 -0400)]
Keysend support

2 years agoDon't force announced channel preference
Valentine Wallace [Wed, 28 Jul 2021 21:47:54 +0000 (17:47 -0400)]
Don't force announced channel preference

2 years agoMerge pull request #22 from TheBlueMatt/main
valentinewallace [Wed, 28 Jul 2021 21:22:37 +0000 (14:22 -0700)]
Merge pull request #22 from TheBlueMatt/main

Allow multiple publicly-announced addresses and avoid funding panic

2 years agoExplicitly stop BackgroundProcessor
Jeffrey Czyz [Sun, 18 Jul 2021 17:33:15 +0000 (12:33 -0500)]
Explicitly stop BackgroundProcessor

An upcoming change will stop the BackgroundProcessor's thread upon drop.
Store the processor in a variable and explicitly stop it. Otherwise, the
thread would be stopped immediately after it is started.

2 years agoMerge pull request #23 from valentinewallace/2021-07-0.0.99-bump
Matt Corallo [Wed, 14 Jul 2021 20:36:04 +0000 (20:36 +0000)]
Merge pull request #23 from valentinewallace/2021-07-0.0.99-bump

Update to RL upstream 0.0.99

2 years agoUpdate to RL upstream 0.0.99
Valentine Wallace [Wed, 14 Jul 2021 20:32:54 +0000 (16:32 -0400)]
Update to RL upstream 0.0.99

2 years agoDo not panic if we fail to fund a channel
Matt Corallo [Mon, 5 Jul 2021 02:34:33 +0000 (02:34 +0000)]
Do not panic if we fail to fund a channel

I saw this where a bitcoind was hung connecting a block, and while
we were waiting the peer refused the channel via an error message.
When bitcoind eventually returned, we paniced as the channel was
now gone.

2 years agoAllow multiple publicly-announced addresses
Matt Corallo [Mon, 5 Jul 2021 00:00:01 +0000 (00:00 +0000)]
Allow multiple publicly-announced addresses

2 years agoMerge pull request #21 from TheBlueMatt/main
Jeffrey Czyz [Wed, 30 Jun 2021 04:11:51 +0000 (21:11 -0700)]
Merge pull request #21 from TheBlueMatt/main

Correct Feerate Calc and Tweak Funding Feerate

2 years agoUse a reasonable target fee when opening channels
Matt Corallo [Sat, 26 Jun 2021 17:21:33 +0000 (17:21 +0000)]
Use a reasonable target fee when opening channels

Bitcoin Core defaults to conservative fee estimation, which often
results in significant overtargeting on weekends. We also disable
RBF, here, though, with a comment describing how clients should
handle funding RBF.

2 years agoCorrect feerate units
Matt Corallo [Sat, 26 Jun 2021 17:19:34 +0000 (17:19 +0000)]
Correct feerate units

Lightning, unlike every other Bitcoin-related protocol or API, uses
satoshis-per-1000-weight, instead of
satoshis-per-1000-virtual-bytes. This requires a division by 4 to
calculate the correct fees when passing Bitcoin Core fees into LDK.

2 years agoMerge pull request #20 from TheBlueMatt/main
Matt Corallo [Thu, 24 Jun 2021 17:00:00 +0000 (17:00 +0000)]
Merge pull request #20 from TheBlueMatt/main

Include bad-txns-inputs-missingorspent in allowed tx-broadcast errs