Elias Rohrer
1d0c6c60c6
Merge pull request #3101 from tnull/2024-06-fix-tx-sync
...
tx-sync: Make confirmables `Deref` and run `rustfmt`
2024-06-10 10:04:49 +02:00
Matt Corallo
c166c2177a
Merge pull request #3111 from tnull/2024-06-rustfmt-fuzz-the-easy-part
...
`rustfmt`: Reformat the `fuzz` dir – the easy part
2024-06-07 12:44:17 -07:00
Matt Corallo
8ca3259bfa
Merge pull request #3083 from valentinewallace/2024-05-ignore-onion-err-chan-upd
...
Ignore channel updates in onion errors
2024-06-07 12:25:46 -07:00
Elias Rohrer
99409fb0cd
Still ignore fuzz/src/lib.rs
for now
2024-06-07 20:42:37 +02:00
Elias Rohrer
c3ae420b51
rustfmt
: src/zbase32.rs
2024-06-07 20:42:36 +02:00
Elias Rohrer
5d0fb36477
rustfmt
: src/utils/*
2024-06-07 20:42:36 +02:00
Elias Rohrer
0e7fe0c9aa
rustfmt
: fuzz/src/router.rs
2024-06-07 20:42:36 +02:00
Elias Rohrer
64843ae633
rustfmt
: fuzz/src/refund_deser.rs
2024-06-07 20:42:36 +02:00
Elias Rohrer
73ebb1bd1b
rustfmt
: fuzz/src/process_network_graph.rs
2024-06-07 20:42:36 +02:00
Elias Rohrer
8e1a98183d
rustfmt
: fuzz/src/peer_crypt.rs
2024-06-07 20:42:36 +02:00
Elias Rohrer
da99d521b9
rustfmt
: fuzz/src/offer_deser.rs
2024-06-07 20:42:27 +02:00
Elias Rohrer
4741731dd3
rustfmt
: fuzz/src/offer_deser.rs
2024-06-07 20:41:50 +02:00
Elias Rohrer
b9c52f6941
rustfmt
: fuzz/src/msg_targets/*
2024-06-07 20:37:10 +02:00
Elias Rohrer
9db52b69bb
rustfmt
: fuzz/src/lib.rs
2024-06-07 20:37:10 +02:00
Elias Rohrer
f1ac0a3d97
rustfmt
: fuzz/src/invoice*.rs
2024-06-07 20:37:10 +02:00
Elias Rohrer
9164e835e5
rustfmt
: fuzz/src/indexedmap.rs
2024-06-07 20:37:10 +02:00
Elias Rohrer
997e46bde2
rustfmt
: fuzz/src/fromstr_to_netaddress.rs
2024-06-07 20:37:09 +02:00
Elias Rohrer
39cc28bfaa
rustfmt
: fuzz/src/chanmon_deser.rs
2024-06-07 20:37:09 +02:00
Elias Rohrer
2bcdad779a
rustfmt
: fuzz/src/bin/*
2024-06-07 20:37:09 +02:00
Elias Rohrer
6cd3cb2e70
rustfmt
: fuzz/src/bech32_parse.rs
2024-06-07 20:37:09 +02:00
Elias Rohrer
c2abfbf5f5
rustfmt
: fuzz/src/base32.rs
2024-06-07 20:37:09 +02:00
Elias Rohrer
b1a9410508
Add rustfmt::skip
to the target template
2024-06-07 20:37:09 +02:00
Elias Rohrer
fde0d9e718
Add rustfmt::skip
to the msg_target
template
2024-06-07 20:37:08 +02:00
valentinewallace
88124a901a
Merge pull request #3080 from jkczyz/2024-05-compact-blinded-path-creation-trait
...
Optional compact blinded path creation
2024-06-07 14:32:24 -04:00
Arik
1e49c4a671
Merge pull request #3096 from alecchendev/2024-06-drop-one-signer-call
...
Cache commitment point on ExternalHTLCClaim to drop a signer call
2024-06-07 09:26:39 -07:00
Elias Rohrer
97891526cc
Merge pull request #3105 from johncantrell97/johncantrell97/add-peer-dis/connected-to-cmh
...
add peer_(dis)connected to custom message handler
2024-06-07 18:01:18 +02:00
Elias Rohrer
43b41868bb
Pass our edition
to rustfmt
...
.. as it otherwise doesn't seem to pick up the right one when checkin
integration tests.
2024-06-07 16:55:11 +02:00
Elias Rohrer
21fee20a6d
rustfmt
: lightning-transaction-sync/tests/integration_tests.rs
2024-06-07 16:54:30 +02:00
John Cantrell
602921cf37
add peer_(dis)connected to custom message handler
2024-06-07 10:10:01 -04:00
Elias Rohrer
85a82045fe
rustfmt
: Reformat lightning-transaction-sync/src/lib.rs
2024-06-07 11:35:15 +02:00
Elias Rohrer
915fe195ca
rustfmt
: Reformat lightning-transaction-sync/src/error.rs
2024-06-07 11:35:15 +02:00
Elias Rohrer
c5cd801f87
rustfmt
: Reformat lightning-transaction-sync/src/esplora.rs
2024-06-07 11:35:15 +02:00
Elias Rohrer
470085aa2f
rustfmt
: Reformat lightning-transaction-sync/src/electrum.rs
2024-06-07 11:35:15 +02:00
Elias Rohrer
3ead26323e
rustfmt
: Reformat lightning-transaction-sync/src/common.rs
2024-06-07 11:35:15 +02:00
Elias Rohrer
777ce7b059
Make confirmables
Deref
...
.. the bindings branch needed a small patch as it doesn't support `dyn`
traits. Here, we opt to use `Deref` in the hopes this works with
bindings, rendering the patch unnecessary.
2024-06-06 09:18:04 +02:00
Jeffrey Czyz
c17a026b07
Clarify docs regarding one-hop blinded paths
...
The docs assumed ChannelManager is parameterized by DefaultRouter, which
may not be the case. Clarify the behavior is specific to using
DefaultRouter.
2024-06-05 17:52:30 -05:00
Jeffrey Czyz
7db6616e52
Exclude disconnected peers from BlindedPath
...
When calling MessageRouter::create_blinded_path, ChannelManager was
including disconnected peers. Filter peers such that only connected ones
are included. Otherwise, the resulting BlindedPath may not work.
2024-06-05 17:52:30 -05:00
Jeffrey Czyz
15fa0d8f20
Fix functional_test_utils::reconnect_nodes
...
When reconnecting nodes, make sure to notify OnionMessenger that the
nodes are now connected.
2024-06-05 17:52:30 -05:00
Jeffrey Czyz
8012c2b213
Use compact blinded paths for short-lived offers
...
When an offer is short-lived, the likelihood of a channel used in a
compact blinded path going away is low. Require passing the absolute
expiry of an offer to ChannelManager::create_offer_builder so that it
can be used to determine whether or not compact blinded path should be
used.
Use the same criteria for creating blinded paths for refunds as well.
2024-06-05 17:52:30 -05:00
Jeffrey Czyz
411b9b43f6
Don't use compact blinded paths for reply paths
...
There's no need to save space when creating reply paths since they are
part of onion messages rather than in QR codes. Use normal blinded paths
for these instead as they are less likely to become invalid in case of
channel closure.
2024-06-05 17:52:30 -05:00
Jeffrey Czyz
5326171885
Refactor MessageRouter::create_blinded_paths
...
Using compact blinded paths isn't always necessary or desirable. For
instance, reply paths are communicated via onion messages where space
isn't a premium unlike in QR codes. Additionally, long-lived paths could
become invalid if the channel associated with the SCID is closed.
Refactor MessageRouter::create_blinded_paths into two methods: one for
compact blinded paths and one for normal blinded paths.
2024-06-05 17:52:30 -05:00
Jeffrey Czyz
defc54096d
Move DefaultMessageRouter::create_blinded_paths
...
An upcoming change to the MessageRouter trait will require reusing
DefaultMessageRouter::create_blinded_paths. Move the code to a utility
function so facilitate this.
2024-06-05 17:04:14 -05:00
Matt Corallo
2701bc512a
Merge pull request #3072 from arik-so/arik/gossip-v2-parsing
...
Reintroduce addresses to NodeAnnouncementInfo.
2024-06-05 14:39:21 -07:00
Alec Chen
4c1638c55e
Cache commitment point on ExternalHTLCClaim to drop a signer call
2024-06-05 16:10:12 -05:00
valentinewallace
b183367050
Merge pull request #3095 from TheBlueMatt/2024-06-tx-sync-bindings-upstream
...
Mark BDK types exported from transaction-sync as no-export
2024-06-05 16:16:33 -04:00
Arik Sosman
db489baee2
Reintroduce addresses to NodeAnnouncementInfo.
2024-06-05 09:48:59 -07:00
Matt Corallo
4ec286979c
Mark BDK types exported from transaction-sync as no-export
2024-06-05 14:46:08 +00:00
Matt Corallo
e5b74026a0
Merge pull request #3091 from TheBlueMatt/2024-06-channel_state_ser
...
Move serialization of `channel_state` fields to `channel_state.rs`
2024-06-04 16:31:34 -07:00
Matt Corallo
8880b552cc
Merge pull request #3081 from G8XSU/2024-05-08-claimable-persist-3049-outputs
...
Watch all outputs irrespective of claimable outpoints
2024-06-04 14:02:41 -07:00
Matt Corallo
64e5dc4933
Fromat moved code in channel_state.rs
2024-06-04 19:33:00 +00:00