Oliver Gugger
31ace742a5
Merge branch '0-18-4-branch-rc1-9084' into 0-18-4-branch-rc1
2024-11-13 12:52:32 +01:00
Matt Morehouse
2c25f38a5a
discovery: remove check for incorrect number of timestamps
...
The check is no longer required, as it is now done during decoding.
2024-11-13 12:52:32 +01:00
Matt Morehouse
c8033e1725
lnwire: fail decoding on incorrect number of timestamps
...
Currently if an incorrect number of timestamps is given, we fail later
on in the GossipSyncer. It makes more sense to fail right away, since we
already do that for incorrect SCID formats (e.g., unsorted or duplicate
SCIDs). There is already a matching check in Encode for incorrect number
of timestamps, so adding this check to Decode makes things symmetric.
2024-11-13 12:52:32 +01:00
Oliver Gugger
9bf48a7e9a
Merge branch '0-18-4-branch-rc1-9082' into 0-18-4-branch-rc1
2024-11-13 12:50:57 +01:00
Matt Morehouse
a4414fbbb9
lnwire: manually compare Timestamps in fuzz test
...
We can't use require.Equal because it considers nil slices and empty
slices to be not equal.
2024-11-13 12:50:56 +01:00
Oliver Gugger
af08c42d58
Merge branch '0-18-4-branch-rc1-9062' into 0-18-4-branch-rc1
2024-11-08 08:52:31 +01:00
Olaoluwa Osuntokun
b2b5ec052b
contractcourt: use the sweeper for HTLC offered remote timeout resolution
...
In this commit, we bring the timeout resolver more in line with the
success resolver by using the sweeper to handle the HTLC offered remote
timeout outputs. These are outputs that we can sweep directly from the
remote party's commitment transaction when they broadcast their version
of the commitment transaction.
With this change, we slim down the scope slightly by only doing this for
anchor channels. Non-anchor channels will continue to use the
utxonursery for this output type for now.
2024-11-08 08:52:31 +01:00
Olaoluwa Osuntokun
941590d384
contractcourt: use t.Run in TestHtlcTimeoutResolver
...
Along the way we refactor the test to eliminate some unnecessary line
length.
2024-11-08 08:52:30 +01:00
Oliver Gugger
906fa0b7b8
Merge branch '0-18-4-branch-rc1-9223' into 0-18-4-branch-rc1
2024-10-30 14:16:37 +01:00
Boris Nagaev
593afee12d
itest: coop_close_with_external_delivery with p2tr
...
Customize the itest with the type of external delivery address. Test with P2TR
address type in addition to P2WKPH.
2024-10-30 14:16:37 +01:00
Boris Nagaev
552d182594
lnwallet: fix closechannel for P2TR external addr
...
If the delivery address is P2TR, function InternalKeyForAddr checks its
existance in the wallet to return internal key for it in case it is a custom
taproot channel. It used to return the error returned by wallet.AddressInfo.
The error is now ignored if it is ErrAddressNotFound error. This fixes
"lncli closechannel --delivery_addr <external p2tr address" case.
2024-10-30 14:16:36 +01:00
Oliver Gugger
615f3d633e
Merge branch '0-18-4-branch-rc1-9199' into 0-18-4-branch-rc1
2024-10-25 11:00:09 +02:00
George Tsagkarelis
6f401b4265
invoices: cancel htlc on HtlcModify signal
2024-10-25 11:00:08 +02:00
George Tsagkarelis
2999b37607
lnrpc+invoices: add cancelSet to HtlcModifier interface
2024-10-25 11:00:08 +02:00
Oliver Gugger
b69fc15cc1
Merge branch '0-18-4-branch-rc1-9197' into 0-18-4-branch-rc1
2024-10-22 09:06:30 +02:00
Jonathan Harvey-Buschel
d650829f9b
gitignore: ignore vscode workspace files
2024-10-22 09:06:17 +02:00
Jonathan Harvey-Buschel
455cdffede
lnwallet: test link quit signal handling
2024-10-22 09:06:17 +02:00
Jonathan Harvey-Buschel
8703153c44
multi: link quit can interrupt commitment signing
...
In this commit, we make sig job handling when singing a next commitment
non-blocking by allowing the shutdown of a channel link to prevent
further waiting on sig jobs by the channel state machine. This addresses
possible cases where the aux signer may be shut down via a separate quit
signal, so the state machine could block indefinitely on receiving an
update on a sig job.
2024-10-22 09:06:17 +02:00
Oliver Gugger
6feb74137d
mod: bump fn to v1.2.3
2024-10-22 09:06:15 +02:00
Jonathan Harvey-Buschel
753301cf38
htlcswitch: pass quit chans as unidirectional
...
This is a requirement for replacing the quit channel with a Context.
The Done() channel of a Context is always recv-only, so all users of
that channel must not expect a bidirectional channel.
2024-10-22 09:05:42 +02:00
Jonathan Harvey-Buschel
afb7532f17
lnwallet: sort sig jobs before submission
2024-10-22 09:05:42 +02:00
Jonathan Harvey-Buschel
ed5d748a9f
lnwallet: test aux signer shutdown handling
2024-10-22 09:05:42 +02:00
Jonathan Harvey-Buschel
b6363a8da4
lnwallet: refactor test code for HTLC add and recv
2024-10-22 09:05:42 +02:00
Jonathan Harvey-Buschel
afdd53194b
multi: allow mock aux signer to customize sig jobs
2024-10-22 09:05:41 +02:00
Oliver Gugger
6f0d7f9a87
Merge branch '0-18-4-branch-rc1-9195' into 0-18-4-branch-rc1
2024-10-21 13:26:23 +02:00
yyforyongyu
f09b638343
lntest: add method AssertTxnsNotInMempool
...
So we only need to do one `GetRawMempool` lookup when checking the
exclusion of multiple txns.
2024-10-21 13:26:09 +02:00
yyforyongyu
56e05a3e1e
lntest: remove unused return value
2024-10-21 13:26:09 +02:00
yyforyongyu
1aae94f17d
itest+lntest: stop using pointer to chainhash.Hash
...
This commit fixes the methods used in `lntest` so they stop using
pointers to chainhash.
2024-10-21 13:26:09 +02:00
Oliver Gugger
3b8b738be9
Merge branch '0-18-4-branch-rc1-9059' into 0-18-4-branch-rc1
2024-10-16 16:00:25 +02:00
Oliver Gugger
55e6460707
docs: add release notes
2024-10-16 15:59:54 +02:00
Oliver Gugger
34ea769501
mod: fix unit tests by updating error matching in btcwallet
2024-10-16 15:59:52 +02:00
Oliver Gugger
57e7b41510
lnwallet: turn off RBF detection in test
2024-10-16 15:58:00 +02:00
Oliver Gugger
6aec5b00ad
lntest: avoid port collision on Tor listen port
...
bitcoind now seems to listen on the -bind port at all times. So we need
to make sure multiple instances don't collide by using a unique port.
2024-10-16 15:58:00 +02:00
Oliver Gugger
5966150db5
lntest: move debug flag, disable spammy libevent
2024-10-16 15:57:59 +02:00
Oliver Gugger
fe8b89dc2c
github+scripts: bump itests to bitcoind v28, allow testing with RCs
2024-10-16 15:57:59 +02:00
Oliver Gugger
9ca21ecf2d
Merge branch '0-18-4-branch-rc1-9187' into 0-18-4-branch-rc1
2024-10-15 17:33:27 +02:00
Oliver Gugger
58bf721f2e
cmd/commands: don't error out on replacement failure
2024-10-15 17:33:26 +02:00
Oliver Gugger
560b7286b5
rpcserver: don't write any custom channel data if empty
2024-10-15 17:33:26 +02:00
Oliver Gugger
ca3bde901e
build: bump version to v0.18.4-beta.rc1
2024-10-11 14:46:28 +02:00
Oliver Gugger
89c84f1da6
lnwallet: fix import issue
2024-10-11 14:46:09 +02:00
Oliver Gugger
a3db2145dc
Merge branch '0-18-4-branch-rc1-9154' into 0-18-4-branch-rc1
2024-10-11 14:23:41 +02:00
ziggie
a5eca91602
multi: bump btcd version.
...
The new SignCompact return values had to be adopted across the
code base.
2024-10-11 14:23:41 +02:00
Oliver Gugger
5c7be35ca5
Merge branch '0-18-4-branch-rc1-8960' into 0-18-4-branch-rc1
2024-10-11 14:23:05 +02:00
Olaoluwa Osuntokun
16edbf3026
sweep: ensure we factor in extra change addrs in MaxFeeRateAllowed
2024-10-11 14:22:50 +02:00
George Tsagkarelis
00ed751ee5
docs: update release notes
2024-10-11 14:22:47 +02:00
Olaoluwa Osuntokun
9f048b0ea3
lnd: signal taproot overlay chans based on config
...
We also add a sanity check to make sure they can't be signaled without
the aux interfaces.
2024-10-11 14:22:13 +02:00
Olaoluwa Osuntokun
6619646088
lncfg: add new config option for taproot overlay chans
2024-10-11 14:22:13 +02:00
Olaoluwa Osuntokun
3031f21182
rpc+funding: add taproot overlay as RPC chan type
2024-10-11 14:22:12 +02:00
Olaoluwa Osuntokun
4eaba9b3db
lnrpc: add SIMPLE_TAPROOT_OVERLAY feature bit
2024-10-11 14:22:12 +02:00
Olaoluwa Osuntokun
72d437d5c8
funding: add chan type awareness for new taproot chans overlay
2024-10-11 14:22:12 +02:00