Commit Graph

14622 Commits

Author SHA1 Message Date
ff45fc7e71 itest: respect the reserved wallet balance when using fundmax 2023-04-05 23:10:04 +02:00
8c1cf21707 chanfunding: allow to set a reserved amount not used for funding 2023-04-05 23:10:03 +02:00
d7f578b0d9 lntest/itest: adds tests for fundmax flag of cli:openchannel 2023-04-05 23:09:12 +02:00
b9bded33d1 lncli: fundmax flag for openchannel 2023-04-05 23:09:12 +02:00
5d88693852 lnd+lnwallet: fundmax flag for openchannel 2023-04-05 23:09:11 +02:00
0e5b3e77cb lnd: handles the FundMax field inside parseOpenChannelReq
Adds handling of the `FundMax` field when parsing an
`OpenChannelRequest` with `rpcServer.parseOpenChannelReq`.
2023-04-05 23:05:07 +02:00
e82410d24a lnrpc: adds a field FundMax to OpenChannelRequest 2023-04-05 23:05:07 +02:00
0c8aa81ed5 chanfunding: adds ability to fund up to some maximum amount
Allows to define a maximum amount to provision a channel
opening with using a new field `FundUpToMaxAmt` on the
`Request` struct. Also adds a new coin select function
`CoinSelectUpToAmount` to select coins up to a maximum
amount respecting a minimum amount.
2023-04-05 23:05:06 +02:00
f97454d4ff Merge pull request #7359 from djkazic/fix/ldflags-on-mac-and-android
build: fix Makefile ldflags for mac and mobile, bump gomobile deps, enable gomodules
2023-04-04 18:05:21 -07:00
4fcd5a0ab0 Merge pull request #7366 from djkazic/feature/listchannels-peer-scid-alias
Add `peer_scid_alias` field to lnrpc.Channel
2023-03-31 19:29:03 +02:00
41016587eb Add peer_scid_alias field to lnrpc.Channel 2023-03-31 11:20:27 -04:00
bb5faf0f5a make+docs: pull in modules patch 2023-03-31 10:15:21 -04:00
2f994ceeae mobile+mod+make: fix Makefile ldflags for mac and mobile 2023-03-31 09:54:35 -04:00
9c16d199d7 Merge pull request #7541 from ellemouton/statusClientBehind
watchtower: let client recover after data loss
2023-03-31 15:16:07 +02:00
381dd8d460 docs: add release note for 7541 2023-03-31 12:05:59 +02:00
ba33f6a697 wtclient: spin session key indices if required
If the tower returns CreateSessionCodeAlreadyExists in response to the
CreateSession message from the client, then skip forward a few key
indices until we find one that the server does not return the error
for. This will allow a client to recover after a data loss incident.
2023-03-31 12:05:58 +02:00
24016c35c7 watchtower: add forceNext to NextSessionKeyIndex
This commit adds a forceNext boolean parameter to NextSessionKeyIndex.
Setting this param to true will force the index to cycle over 1000 key
indices before returning the new key.
2023-03-31 12:04:57 +02:00
204585c620 watchtower: demo StateUpdateCodeClientBehind error
In this commit, a test is added to demonstrate how clients can end up
getting the StateUpdateCodeClientBehind error from a tower server. This
can happen if a client ever deletes their db. If they do this then the
sessions they create with the tower will have the same IDs as the
sessions created in the now deleted db. This is because the session keys
(and thus session IDs) are calculated deterministically from a counter
(which is reset if the db is deleted). The tower server then throws this
error because the client would say that the sequence ID is 1 for the
next update.
2023-03-31 12:04:57 +02:00
21dd2cf61d Merge pull request #7529 from ziggie1984/psbt-bug
Check for nonWitness UTXO or witness UTXO data in the psbt inputs
2023-03-31 11:58:45 +02:00
71b8fac819 docs: add release-notes 2023-03-31 08:56:15 +02:00
b649b552e6 itest: add test when signing without UTXO data
Adds a testcase in the itest suite which tests that psbt
input data needs its corresponding UTXO data when signing.
2023-03-31 08:56:15 +02:00
4da26fb65a btcwallet+rpcwallet: verify input data for psbt package
Use the new method in the psbt package InputsReadyToSign which
makes sure that each input has either nonWitness Utxo or
witness Utxo data specified.
2023-03-31 08:43:02 +02:00
e7f338fded mod: bump version for psbt and btcwallet package 2023-03-31 08:43:01 +02:00
ec5b95c9a9 Merge pull request #7517 from yyforyongyu/fix-funding-locked
Replace `FundingLocked` with `ChannelReady`
2023-03-30 17:22:17 +02:00
2e9795f26a Merge pull request #7556 from ellemouton/addrIterFix
wtclient: address iterator fix
2023-03-30 16:55:15 +02:00
82afb6a958 docs: add release note for 7556 2023-03-30 14:46:56 +02:00
4f7e871b42 wtclient: add clarifying comments to the AddressIterator 2023-03-30 14:46:56 +02:00
9e4c8dd509 wtclient: make addr iterator panic safe
Ensure that calling Next twice in a row without first calling Reset is
safe when the iterator is at the end of its list. Also alter the
towerListIterator to call Reset after hitting an error on Next.
2023-03-30 12:29:41 +02:00
1047514515 wtclient: demo addr iterator panic
This commit adds a test that shows that it is possible to cause the
AddressIterator to panic if the `Next` method is ever called twice when
the iterator is at the end of its list without Reset first being called.
2023-03-30 12:29:24 +02:00
de80fffa6c wtclient: divide addr_iter tests into subtests
Split out the existing tests into logical subtests.
2023-03-30 12:29:06 +02:00
5477428525 Merge pull request #7528 from guggero/p2tr-psbt-decoration
itest: assert change output type
2023-03-28 20:10:36 +02:00
5272e9140e Merge pull request #7437 from ardevd/7436-chanbackup-writer-fix
lncli: Added support for backup/verify/restore of single chanpoint to/from file
2023-03-27 10:56:00 +02:00
d1f961c598 docs: added release notes 2023-03-25 15:32:10 +01:00
ddc4bc6b32 lncli: backup/verify/restore single channel from file
author ardevd <edvard.holst@gmail.com> 1676983861 +0100
committer ardevd <ardevd@users.noreply.github.com> 1677705118 +0100

Write to the specified file if the user specifies a chan_point for
backup and also specifies an output file to write the backup to.

Fixes #7436
2023-03-25 15:30:38 +01:00
b9143c1623 Merge pull request #7350 from eval-exec/fix/time_lock_delta-overflow
[rpcServer]: add time_lock_delta overflow check for UpdateChannelPolicy
2023-03-23 16:21:57 +01:00
e4a6a0f26f lncli: add testcase for parseTimeLockDelta
Signed-off-by: Eval EXEC <execvy@gmail.com>
2023-03-23 21:34:12 +08:00
cbcbddfe29 rpcserver: add time_lock_delta overflow check 2023-03-23 21:34:12 +08:00
3dc4ab736f Merge pull request #7526 from yyforyongyu/enhanced-logging
multi: add more trace logs regarding link activate flow
2023-03-23 10:37:13 +01:00
78351e1730 Merge pull request #7531 from yyforyongyu/fix-web-fee-estimator
Fix web fee estimator test flake and increase retry timeout for channel close
2023-03-22 20:56:49 +01:00
4ab00fb16e Merge pull request #7533 from guggero/travis-timeout
travis: increase timeout to 120 minutes
2023-03-22 17:58:46 +01:00
a79ab8bafd lntest: increase wait time to 5s when failed to close channel 2023-03-22 23:55:11 +07:00
00fa2cb34a lnwallet: add verbose test logs for TestWebAPIFeeEstimator 2023-03-22 23:55:11 +07:00
0dbb709929 travis: increase timeout to 120 minutes 2023-03-22 13:42:39 +01:00
dcc7421b5b Merge pull request #7405 from ellemouton/filterOutExhaustedSessions
multi: Filter out exhausted sessions
2023-03-22 10:00:15 +01:00
2b8e9a0d36 multi: add more trace logs regarding link activate flow 2023-03-21 10:18:49 +07:00
d019c82f07 itest: assert change output type of SendCoins 2023-03-20 20:15:43 +01:00
a266c3a4a9 itest: add assertion for PSBT change outputs
With this commit we add more specific assertions to our PSBT signing
test in order to make sure change outputs have the proper PSBT metadata
associated with them, depending on their address type.
2023-03-20 19:22:37 +01:00
a3e9f5b83c docs: add release note for 7405 2023-03-20 20:14:02 +02:00
957df98777 lncli: add new exclude-exhausted-sessions option 2023-03-20 20:14:02 +02:00
13c656defe lnrpc: use new ExcludeExhaustedSessions option 2023-03-20 20:14:01 +02:00