Commit graph

16118 commits

Author SHA1 Message Date
Mohamed Awnallah
8407e6989e
fix: fix typo "(cltv_expiry" to "(cltv_expiry)" [skip ci] 2024-01-20 17:31:19 +02:00
Elle
0a29b37be6
Merge pull request #7733 from ellemouton/taprootTowers
watchtower: support taproot channel commitments
2024-01-19 22:55:20 +02:00
Oliver Gugger
24a79c78ed
Merge pull request #8403 from ellemouton/towerInterfaceGotcha
config: pass tower manager pointer in to PopulateDependencies
2024-01-19 07:59:30 -06:00
Mohamed Awnallah
a7914af264
docker: setup bitcoind docker image in the docker compose yaml file 2024-01-19 15:33:47 +02:00
Elle Mouton
2a61c914fb
docs: add release note entry for 7733 2024-01-19 15:33:07 +02:00
Elle Mouton
55ee01a6ca
itest: add taproot tower itest 2024-01-19 15:33:07 +02:00
Elle Mouton
f12cc12da5
server: register a taproot tower client 2024-01-19 15:33:07 +02:00
Elle Mouton
3cb194c45e
lnrpc+lncli: update wtclientrpc for taproot towers 2024-01-19 15:33:06 +02:00
Elle Mouton
660f1f361e
watchtower/wtclient: prep client for taproot towers 2024-01-19 15:33:06 +02:00
Oliver Gugger
c0e3ae6adc
Merge pull request #8399 from yyforyongyu/add-signing-key
scripts: add gpg key for yyforyongyu [skip ci]
2024-01-19 07:15:25 -06:00
Elle Mouton
589cebcec2
config: pass tower manager pointer in to PopulateDependencies
In this commit, we let the explicit wtclient.Manager struct be passed in
to PopulateDependencies instead of the tower client interface. We need
to do this since we do allow the tower client interface to be nil if the
client is not active. So to avoid the golang gotcha where the interface
value will be seen as not nil even though the underlying value is nil,
we pass in the explicit pointer instead.
2024-01-19 13:55:53 +02:00
yyforyongyu
6abfa0b1ee
scripts: add gpg key for yyforyongyu [skip ci] 2024-01-19 01:23:30 +08:00
Elle Mouton
c50aa10194
watchtower/lookout: make justice desciptor taproot ready 2024-01-18 18:06:00 +02:00
Elle Mouton
5960253357
watchtower/blob: add taproot Commitment type 2024-01-18 18:05:58 +02:00
Elle Mouton
d84a98e3db
watchtower/blob: add taprootJusticeKit implementation 2024-01-18 17:59:14 +02:00
Elle Mouton
0ec3f31780
watchtower/blob: add justiceKitPacketV1 encoding
In preparation for the new Taproot commitment type being supported by
watchtowers, we add a new justice packet type.
2024-01-18 17:58:13 +02:00
Elle Mouton
20a107600f
watchtower: add new TaprootCommit Type and flag
This commit adds a new FlagTaprootChannel Flag which is then used to
construct a new blob Type: TypeAltruistTaprootCommit. New watchtower
feature bits are also added (4/5).
2024-01-18 17:56:49 +02:00
Elle Mouton
fde982ad78
input: extract to_local script builders
Factor out the building of the delay and revoke scripts from
NewLocalCommitScriptTree so that they can be re-used later on.
2024-01-18 17:56:48 +02:00
Oliver Gugger
ba4021cad9
Merge pull request #8388 from morehouse/fix_fuzz_payload
htlcswitch: update fuzzPayload for route blinding
2024-01-18 09:31:22 -06:00
Elle
08c18a338b
Merge pull request #8275 from ProofOfKeags/chore/enforce-feature-bits
multi: make legacy feature bits compulsory
2024-01-18 17:26:09 +02:00
Oliver Gugger
4315e80e07
Merge pull request #8394 from cristiantroy/master
fix: typos [skip ci]
2024-01-18 08:52:10 -06:00
cristiantroy
afa21953b5
internal/musig2: fix typos [skip ci] 2024-01-18 20:24:52 +08:00
cristiantroy
f778f8b24e
docs: fix typo in release-notes [skip ci] 2024-01-18 20:24:19 +08:00
Yong
54329a338e
Merge pull request #8387 from ziggie1984/buildroute-use-lnd-default
buildroute use lnd default
2024-01-18 18:53:46 +08:00
Oliver Gugger
dda5c4515e
Merge pull request #8279 from Crypt-iQ/p2tr_weight
sweep: use p2tr output as change weight
2024-01-18 02:11:35 -06:00
Matt Morehouse
0f5ee7cc1e
htlcswitch: update fuzzPayload for route blinding
Route blinding added some new fields to hop.Payload and route.Hop, which
we need to copy over to the fuzzPayload tests.
2024-01-16 11:12:11 -06:00
Yong
1bc1295fc0
Merge pull request #8350 from ziggie1984/rename-bumpclosefee
Minor improvements in the lncli api regarding channel closures.
2024-01-17 00:41:29 +08:00
ziggie
2db5752f99
docs: add release-notes. 2024-01-16 14:10:22 +01:00
ziggie
4db5b2266f
lncli: remove default cltv delta for buildroute.
Now the default of the lnd backend is used instead of providing
the default value via the caller of the buildroute rpc cmd.
2024-01-16 14:10:22 +01:00
ziggie
79fb45074b
routerrpc: use cltv delta default for buildroute.
This commit uses the default timelock delta (cltv delta) when
no value is provided for the buildroute rpc cmd.
Moreover it enhances the docs.
2024-01-16 14:08:51 +01:00
Elle Mouton
65de80be7d
wtclient: remove temporary bug demonstration logic and test
This commit removes the temporary members added to the DiskOverflowQueue
that made it possible to more easily demonstrate a previous bug that
existed.
2024-01-15 17:28:43 +02:00
Elle Mouton
3d201dde50
wtclient: ensure correct disk mode for overflow queue
Before this commit, in the watchtower client's DiskOverflowQueue, there
could be a situation _if no consumer was reading from the queue_ that
could lead to an in-memory build up of backup tasks instead of the
expected disk overflow. This commit fixes this by ensuring that if a
task is read from disk, then the mode is set to disk mode to ensure that
any new items are persisted to disk in this scenario.
The unit tests added in the previous commit is updated here in order to
show that the fix does in-fact fix the test.
2024-01-15 17:28:17 +02:00
Elle Mouton
d4fefda10a
wtclient: demonstrate overflow queue flake
In this commit, some temporary variables and logic is added to the
DiskOverflowQueue for easy stop/go control from unit tests. This is then
used to write a temporary unit tests that demonstrates a race condition
that can cause the queue to be in disk mode when it should be in memory
mode. This new code & test will be removed after the issue has been
fixed.
2024-01-15 17:26:34 +02:00
Oliver Gugger
76ae3e457b
Merge pull request #8382 from ellemouton/bumpTlv
go.mod: update TLV package tag
2024-01-15 16:24:50 +01:00
Elle Mouton
9208083db3
go.mod: update TLV package tag
To v1.2.1
2024-01-15 14:29:57 +02:00
Yong
26c466aa80
Merge pull request #8372 from mohamedawnallah/deep-copy-transactions-GetBlock
routing: deep copy any transaction we obtain from `GetBlock` call.
2024-01-15 20:13:00 +08:00
Mohamed Awnallah
99908ed2dc
routing: deep copy any transaciton we obtain from GetBlock call. 2024-01-15 11:35:55 +02:00
Oliver Gugger
a2986f96da
Merge pull request #8373 from hieblmi/fix-funding-logs
funding: fix funding flow log
2024-01-15 09:24:50 +01:00
Oliver Gugger
cc5fcb8135
Merge pull request #8375 from ProofOfKeags/chore/typo-fix
lnrpc: fix typo in rpc docs
2024-01-12 18:56:46 +01:00
Elle
2824fe27d1
Merge pull request #8233 from ellemouton/unackedUpdatesBug
wtclient: handle un-acked updates for exhausted sessions
2024-01-12 09:49:20 +02:00
Elle Mouton
b14b30ff52
docs: update release notes 2024-01-12 08:25:28 +02:00
Elle Mouton
1daec3e890
wtclient: use the new filter options to fix the demo'd bug
In this commit, we use the newly added session listing options to ensure
that we only see a session as exhausted if it does not have any un-acked
updates on disk. This fixes the bug previously demonstrated.
2024-01-12 08:25:28 +02:00
Elle Mouton
776f2a026c
wtdb: supply commited update count to PostEvaluateFilterFn
In this commit, we adjust the PostEvaluateFilterFn to also take in a
count representing the number of committed updates (ie, persisted
un-acked updates) that the session has. This will be made use of in an
upcoming commit.
2024-01-12 08:23:02 +02:00
Olaoluwa Osuntokun
ba1725f161
Merge pull request #8376 from ProofOfKeags/feature/unsafe-from-some
fn: add UnsafeFromSome to Option API
2024-01-11 17:22:33 -08:00
Keagan McClelland
2499813414 fn: add UnsafeFromSome to Option API 2024-01-11 16:40:48 -08:00
Keagan McClelland
ec854e4dae lnrpc: fix typo in rpc docs 2024-01-11 14:08:31 -08:00
Keagan McClelland
721463c7c7 docs: update release notes 2024-01-11 13:58:01 -08:00
Keagan McClelland
109265c77a multi: make static remote key compulsory 2024-01-11 13:58:01 -08:00
Keagan McClelland
d47338cd45 feature: fixup making data loss protection compulsory 2024-01-11 13:58:01 -08:00
Keagan McClelland
717facc202 feature: make gossip queries compulsory 2024-01-11 13:57:56 -08:00