naveen
f29e4855f3
Docs: Updated README to include crates information
...
Included crates information into README.
2022-01-19 19:27:11 +00:00
valentinewallace
e4387fa8af
Merge pull request #1258 from lightningdevkit/dependabot/cargo/hex-0.4
...
Update hex requirement from 0.3 to 0.4
2022-01-19 13:19:59 -05:00
Elias Rohrer
689518520e
Fixed some typos
2022-01-19 18:15:47 +01:00
Matt Corallo
ce82a33186
Persist ChannelManager
before BackgroundProcessor
exits
...
Fixes #1237 .
2022-01-18 22:07:15 +00:00
dependabot[bot]
f39fa69b68
Update hex requirement from 0.3 to 0.4
...
Updates the requirements on [hex](https://github.com/KokaKiwi/rust-hex ) to permit the latest version.
- [Release notes](https://github.com/KokaKiwi/rust-hex/releases )
- [Commits](https://github.com/KokaKiwi/rust-hex/compare/v0.3...v0.4.3 )
---
updated-dependencies:
- dependency-name: hex
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-01-18 22:05:49 +00:00
Arik Sosman
10204f706f
Merge pull request #1243 from naveensrinivasan/naveensrinivasan/dependabot
...
Enable Dependabot
2022-01-18 14:04:38 -08:00
Naveen
126771daf8
Create dependabot.yml
...
Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2022-01-18 19:39:53 +00:00
valentinewallace
7b6a7bbc72
Merge pull request #1249 from tnull/fix_compile_warnings
...
Fix compiler warning during building/testing.
2022-01-18 11:18:05 -05:00
Elias Rohrer
5490366a95
Fix unused return warning for 'transmute_copy'.
2022-01-18 14:45:43 +01:00
Matt Corallo
34cdca91ba
Merge pull request #1238 from TheBlueMatt/2022-01-lockorder-checks
...
Fix and test lockorder
2022-01-14 16:59:42 +00:00
Matt Corallo
8f007c7dbb
Check lockorders in tests with a trivial lockorder tracker
2022-01-14 15:35:58 +00:00
Matt Corallo
89cbb6d74b
Merge pull request #1229 from lightning-signer/2021-12-htlc-anchor-sighashtype
...
anchors: Fix SigHashType and weight calculations for anchors
2022-01-14 04:10:14 +00:00
Ken Sedgwick
9c2270c722
Fixed comment on weight_received_htlc
2022-01-13 15:01:32 -08:00
Ken Sedgwick
bee00124d2
Set opt_anchors for calls to CommitmentTransaction::new_with_auxiliary_htlc_data
2022-01-13 15:01:31 -08:00
Ken Sedgwick
299b6657d5
Add anchor tests to outbound_commitment_test
2022-01-13 15:01:30 -08:00
Ken Sedgwick
35a6e00b03
Debit funder's output to cover anchors
2022-01-13 15:01:29 -08:00
Ken Sedgwick
557a83096f
Convert HTLC_{SUCCESS,TIMEOUT}_TX_WEIGHT to anchor-aware functions
2022-01-13 15:01:21 -08:00
Ken Sedgwick
9566795c97
Convert COMMITMENT_TX_BASE_WEIGHT to anchor-aware function
2022-01-13 14:59:28 -08:00
Ken Sedgwick
c47d014a8e
Add unit test coverage for package::weight_{offered,received}_htlc
2022-01-13 14:44:05 -08:00
Ken Sedgwick
37001b8b0e
make WEIGHT{_REVOKED,}_{OFFERED,RECEIVED}_HTLC functions with opt_anchors parameter
2022-01-13 14:37:18 -08:00
Ken Sedgwick
3a163d2c61
Isolated channelmonitor weight unit tests and added anchor loops
2022-01-13 14:37:17 -08:00
Ken Sedgwick
8f09e5a7ff
Set the SigHashType of remote htlc signatures w/ anchors to SinglePlusAnyoneCanPay
2022-01-13 14:37:03 -08:00
Matt Corallo
feb203d3b1
Fix some (non-bug) lock-order-inversions in tests
2022-01-13 01:51:51 +00:00
Matt Corallo
6ccd07bc2d
Make lockorder consistent in channelmanager
...
This resolves a lockorder inversion in
`ChannelManager::finalize_claims` where `pending_outbound_payments`
is locked after `pending_events`, opposite of, for example, the
lockorder in `ChannelManager::fail_htlc_backwards_internal` where
`pending_outbound_payments` is locked at the top of the
`HTLCSource::OutboundRoute` handling and then `pending_events` is
locked at the end.
2022-01-12 21:17:49 +00:00
Matt Corallo
a82067d359
Merge pull request #1013 from TheBlueMatt/2021-07-warning-msgs
2022-01-11 22:52:44 +00:00
Matt Corallo
d786bfaef2
Rely on Error/Warning message data lengths being correct
...
In https://github.com/lightning/bolts/pull/950 , the (somewhat
strange) requirement that error messages be handled even if the
length field is set larger than the size of the package was
removed. Here we change the code to drop the special handling for
this, opting to just fail to read the message if the length is
incorrect.
2022-01-11 20:25:24 +00:00
Matt Corallo
2d7b06e619
Send warning
instead of error
when we incounter bogus gossip
2022-01-11 19:48:20 +00:00
Matt Corallo
26fe0f753d
Convert shutdown
invalid script checks to warning messages
...
As required by the warning messages PR, we should simply warn our
counterparty in this case and let them try again, continuing to try
to use the channel until they tell us otherwise.
2022-01-11 19:48:20 +00:00
Matt Corallo
e137cfb3c4
Send warning messages when appropriate in gossip handling pipeline
2022-01-11 19:48:20 +00:00
Matt Corallo
1b3249a192
Handle sending and receiving warning messages
2022-01-11 19:48:20 +00:00
Matt Corallo
f676f5585f
Add a new WarningMessage
message to send and receive warnings
2022-01-11 19:48:20 +00:00
Matt Corallo
bb248617a5
Merge pull request #1230 from lightning-signer/2021-01-invoice-bech32-dep
...
Do not turn on bech32/std by default for lightning-invoice
2022-01-10 18:34:40 +00:00
Devrandom
1a779ce658
Do not turn on bech32/std by default for lightning-invoice
2022-01-09 12:26:14 +01:00
Matt Corallo
b62b244c3c
Merge pull request #1223 from lightning-signer/2021-12-invoice-nostd
...
Adapt lightning-invoice to no_std
2022-01-06 19:25:36 +00:00
Devrandom
01915810d4
Adapt lightning-invoice to no_std
2022-01-05 23:18:03 +01:00
Matt Corallo
94c41d8c0a
Merge pull request #1226 from TheBlueMatt/2022-01-bindings-no-std
...
Support building `cfg=c_bindings` with `no-std`
2022-01-05 21:01:06 +00:00
Matt Corallo
ffbef9fec7
Support building cfg=c_bindings
with no-std
...
This will be needed for JavaScript bindings eventually.
2022-01-05 07:24:46 +00:00
Matt Corallo
3ca63426f9
Merge pull request #1220 from TheBlueMatt/2021-12-stale-update-gossip-log
...
Log gossip rejections due to stale channel_updates at GOSSIP level
2022-01-03 19:54:20 +00:00
Matt Corallo
036ea11954
Merge pull request #1225 from hackerrdave/update-repo-lightningdevkit
...
update repo name to use lightningdevkit
2021-12-29 19:57:05 +00:00
hackerrdave
d46c2a20e1
update repo name to use lightningdevkit
2021-12-26 22:53:16 -05:00
Matt Corallo
565559005e
Merge pull request #1218 from TheBlueMatt/2021-12-minor-bindings-tweaks
...
Minor Bindings Tweaks
2021-12-19 23:55:09 +00:00
Matt Corallo
d5a1435905
Log gossip rejections due to stale channel_updates at GOSSIP level
...
This further reduces noise at the TRACE level during initial gossip
sync.
2021-12-19 20:13:38 +00:00
Matt Corallo
7d1e1873f3
Swap around generic argument ordering in InvoicePayer for bindings
...
The bindings generation really should support generic bounds other
than Deref::Target in where clauses, but currently does not. To
avoid needing to add support during the current release process,
we simply swap around the arguments to move them to the first <>
instead of the where.
2021-12-18 20:20:23 +00:00
Matt Corallo
d26469a77a
Add a C-not exported tag to NetGraphMsgHandler.network_graph
2021-12-18 20:20:23 +00:00
Matt Corallo
ae4f6198db
Add a constructor to MultiThreadedLockableScore
...
...as otherwise the struct is rather useless.
2021-12-18 20:20:23 +00:00
Matt Corallo
2a8a396f1e
Merge pull request #1217 from TheBlueMatt/2021-12-0.0.104
...
Cut 0.0.104
2021-12-17 23:30:54 +00:00
Matt Corallo
27d5c7a210
Swap around generic argument ordering in DefaultRouter for bindings
...
The bindings generation really should support default generic types
in where clauses, but currently does not. To avoid needing to add
support during the current release process, we simply swap around
the arguments to move them to the first <> instead of the where.
2021-12-17 22:46:07 +00:00
Matt Corallo
ec86e2a1a7
Bump versions to 0.0.104/invoice 0.12
2021-12-17 21:34:19 +00:00
Matt Corallo
8f9d1c9a8c
Update CHANGELOG for 0.0.104
2021-12-17 21:34:19 +00:00
Matt Corallo
1c157a2328
Merge pull request #1216 from valentinewallace/2021-12-preimage-getter
...
Add utility for retrieving an LDK payment preimage
2021-12-17 17:34:47 +00:00