yyforyongyu
b8373f5628
lntest: use trace log level for discovery
2023-03-08 21:03:37 +08:00
Elle Mouton
de961af5c6
lntest/wait: handle the case where the pred func hangs
...
This commit fixes a bug in the wait.NoError function. If the predicate
function, f, passed to the NoError function would hang for the full
timeout, then the `predErr` would remain nil and so a nil error would be
returned from the function. This commit handles that case.
2023-03-06 13:10:43 +02:00
yyforyongyu
c26917ee1f
multi: rename LookupHtlc
to LookupHtlcResolution
for clarity
2023-03-01 01:47:08 +08:00
yyforyongyu
38063a4720
itest+lntest: add testLookupHTLC
2023-02-27 16:59:16 +08:00
yyforyongyu
86373645b6
lntest: skip logging if there's no error in shutdown
2023-02-27 16:21:54 +08:00
Slyghtning
4c198bdfde
itest: check peer alias in ListChannels
2023-02-24 10:49:11 +01:00
yyforyongyu
be6727d497
lntest: add more outputs to standby nodes and skip shutdown error
2023-02-24 01:35:17 +08:00
yyforyongyu
d6043c26a7
itest: temp fix for closing channels
2023-02-24 01:35:16 +08:00
yyforyongyu
28744d89c7
lntest: fix linter stylecheck
and containedctx
2023-02-24 01:35:16 +08:00
yyforyongyu
0c50d4379f
itest: fix test flake in testZeroConfReorg
2023-02-24 01:35:16 +08:00
yyforyongyu
d7c38b2c58
lntest: add node name to assertions
2023-02-24 01:35:16 +08:00
yyforyongyu
4e2268b8b1
lntest: update readme re different code used in lntest
2023-02-23 21:56:12 +08:00
yyforyongyu
d5af76cb29
itest+lntest: add a dedicated timeout for sending payments
...
This commit adds a new timeout `PaymentTimeout` that's used when sending
payments. A potential bug is also marked in the test.
2023-02-23 21:56:11 +08:00
yyforyongyu
ae6e109f35
lntest: catch window conn error in EnsureConnected
...
This commit also removes the first connection attempt inside
`SetupStandbyNodes` as the nodes are always connected inside each
subtest. The error returned from connection is now logged for debugging.
2023-02-23 21:56:11 +08:00
yyforyongyu
29b7903a28
lntest: use rpc-graph-cache-duration=100ms
in itest
2023-02-23 21:56:10 +08:00
yyforyongyu
17f08a87db
lntest+itest: remove assertion while iterating mempool
2023-02-23 21:56:10 +08:00
yyforyongyu
28203fc77c
lntest+itest: fix testDataLossProtection
2023-02-23 21:56:10 +08:00
yyforyongyu
d97f52d12a
lntest: shutdown running nodes when test fails
...
Fixes the zip log files failure we see.
2023-02-23 21:56:10 +08:00
yyforyongyu
0e8a525f94
lntest: change wait timeout values
2023-02-23 21:56:10 +08:00
yyforyongyu
2bc6aabf96
itest: fix make lint
...
This commit fixes the issues reported by the linter.
2023-02-23 21:56:10 +08:00
yyforyongyu
8b9ccfe310
itest: fix test async_bidirectional_payments
2023-02-23 21:56:09 +08:00
yyforyongyu
9d1d629001
itest+lntest: migrate lntemp
to lntest
...
This commit performs the takeover that `lntemp` is now promoted to be
`lntest`, and the scaffolding is now removed as all the refactoring is
finished!
2023-02-23 21:56:09 +08:00
yyforyongyu
94c64a886e
lntemp+itest: remove unused code to prepare lntemp
's takeover
...
This commit removes the old code living in `lntest` to prepare
`lntemp`'s takeover.
2023-02-23 21:56:08 +08:00
yyforyongyu
106fbeae85
multi: move timeouts into package wait
...
This commit moves the definition of timeout values into package `wait`,
preparing the incoming merging of `lntemp` and `lntest`.
2023-02-23 21:56:08 +08:00
yyforyongyu
0bc86a3b4b
multi: move itest
out of lntest
...
This commit moves all the test cases living in `itest` out of `lntest`,
further making `lntest` an independent package for general testing.
2023-02-23 21:56:08 +08:00
yyforyongyu
142b00711f
itest+github: remove flag temptest
...
This commit removes flag `temptest` and all its usage, marking the start
of promoting our `lntemp` to be `lntest`!
2023-02-23 21:56:08 +08:00
yyforyongyu
e500074017
itest: refactor testBidirectionalAsyncPayments
2023-02-23 21:56:08 +08:00
Oliver Gugger
38dc67e1ef
Merge pull request #6815 from bitromortac/2205-bimodal
...
pathfinding: probability for bimodal distribution
2023-02-15 14:19:32 +01:00
bitromortac
2ccdfb1151
lncli+routerrpc: adapt mc api to dynamic estimator
...
The active probability estimator can be switched dynamically using the
`Set/GetMissionControl` API, maintaining backward compatibility. The
lncli commands `setmccfg` and `getmccfg` are updated around this
functionality. Note that deprecated configuration parameters were
removed from the commands.
2023-02-14 13:34:25 +01:00
Oliver Gugger
f245591e4b
Merge pull request #7386 from guggero/remote-signer-p2tr-inputs
...
remote signer: fix channel funding with mixed funding input types
2023-02-14 12:34:11 +01:00
Torakushi
cdb015223b
walletrpc+lnwallet: possibility to define an address type for changes in FundPsbt
...
By default, P2TR addresses are used for changes. However, some users
might encounter some problems with this change. We add the possibility
to define a custom address type in FundPsbt for default/imported accounts
(only P2TR for now). If no address type is specified for these accounts,
we will use P2WKH by default.
2023-02-08 12:35:44 +01:00
Oliver Gugger
c6c52b8eb3
itest: add coverage for np2wkh in remote signing
2023-02-07 22:15:11 +01:00
Oliver Gugger
5d18fccd42
itest: reproduce remote signing issue
...
This commit attempts to reproduce the issue as described in #7276 .
2023-02-07 22:15:08 +01:00
Oliver Gugger
58d0707a77
itest: test both MuSig2 versions
2023-02-06 10:50:30 +01:00
Oliver Gugger
ce5fa2e043
multi: add version to MuSig2 API, bump btcd/btcec to v2.3.2
...
With this commit we bump the github.com/btcd/btcec/v2 library to v2.3.2
which implements the MuSig2 BIP version v1.0.0rc2. With this the
github.com/btcsuite/btcd/btcec/v2/schnorr/musig2 package becomes
v1.0.0rc2 and the github.com/lightningnetwork/lnd/internal/musig2v040
stays at the old v0.4.0 version.
2023-02-03 18:30:10 +01:00
Oliver Gugger
ff8f1371b5
itest: add itest for MuSig2 CombineKey
...
Before we change anything in the MuSig2 API, we first add an integration
test that makes sure the current version of the API combines keys
according to the v0.4.0 test vectors.
2023-02-03 18:25:56 +01:00
Olaoluwa Osuntokun
5d22d5eb6c
Merge pull request #7252 from ellemouton/sqlite-pt2
...
multi: add sqlite backend option
2023-01-31 10:14:46 -08:00
Oliver Gugger
33a0cbe634
Merge pull request #7292 from Crypt-iQ/disconnectblock_patch
...
aliasmgr+channeldb: stop deleting zero-conf edges from graph if reorg occurs
2023-01-26 16:26:28 +01:00
eugene
9d56963f5e
itest: add zero-conf reorg edge existence test
...
This itest asserts that zero-conf edges exist even after a reorg.
Without the prior commit, this test fails.
2023-01-25 12:03:21 -05:00
Chris Geihsler
a5eaabf548
multi: add sqlite option to itests and github job
2023-01-25 14:16:56 +02:00
Olaoluwa Osuntokun
3d8f284af7
lntest/itest: update taproot signing itest to use default and non-default sighashes
...
Without the prior commit, this test fails with:
```
rpc error: code = Unknown desc = malformed signature: too long: 65 > 64
```
2023-01-24 19:47:34 -08:00
Olaoluwa Osuntokun
8ab598e40c
lntest/itest: make publishTxAndConfirmSweep a test helper
...
Calling ht.Helper() means we'll get the proper line number if an error
hapens.
2023-01-24 19:47:31 -08:00
ziggie
28bceb23c8
walletrpc: add test sign/verify methods
...
Test the introduced methods sign/verify messages for single addresses
2023-01-24 09:23:42 +01:00
yyforyongyu
107404dfb8
itest+lntemp: refactor testCustomMessage
2023-01-18 10:53:59 +08:00
yyforyongyu
178e4b0103
lntemp+lntest: fix make lint
2023-01-18 10:53:58 +08:00
yyforyongyu
f3ad66b363
lntest+lntest: inherit node's public states when restarting it
...
This commit changes how a node's state is created during startup. When
it already has states, only its internal states are reset since these
info are only useful for the finished test. The name `InitRPCClients` is
changed to `Initialize` to reflect the fact that it's more than
initializing RPC clients.
2023-01-18 10:53:58 +08:00
yyforyongyu
0b0c0f12ee
lntemp+lntest: refactor testOpenChannelUpdateFeePolicy
2023-01-18 10:53:58 +08:00
yyforyongyu
1cb7ea1a0c
itest+lntemp: refactor testTrackPayments
2023-01-18 10:53:58 +08:00
yyforyongyu
368b3337bd
itest: refactor testTaprootCoopClose
2023-01-18 10:53:58 +08:00
yyforyongyu
38eaa36d90
lntemp+itest: refactor testRemoteSigner
2023-01-18 10:53:57 +08:00