yyforyongyu
a1d71afde8
lntest: allow specifying min relay feerate in itest
2024-07-24 20:05:00 +08:00
yyforyongyu
623f816f8e
lntest: remove redundant nodes shutdown
...
The nodes are already shut down in the `Cleanup` in `ht.Subtest` so
there's no need to shutdown them again.
2024-07-23 21:30:08 +08:00
yyforyongyu
f1f341095e
lntest+itest: add new method CurrentHeight
2024-07-23 21:30:08 +08:00
yyforyongyu
14e7b134d9
lntest+itest: make Miner
a private instance
2024-07-23 21:30:08 +08:00
yyforyongyu
6bd8baea38
lntest+itest: continue removing direct call to Miner
2024-07-23 21:30:07 +08:00
yyforyongyu
976bb37972
lntest+itest: add method AssertNumTxsInMempool
and AssertTxInBlock
...
in harness
Prepare to make `HarnessTest.Miner` a private instance to sync height.
2024-07-23 21:30:07 +08:00
yyforyongyu
e553895ddd
lntest+itest: strictly define the behavior of MineBlocks
...
This commit adds more assertion to `MineBlocks` so the caller won't
misuse it.
2024-07-23 21:30:07 +08:00
yyforyongyu
91b20e661b
lntest: move mining methods into one file
2024-07-23 21:30:07 +08:00
yyforyongyu
a881477404
lntest: create new package lntest/miner
for itest miner
...
This commit moves the `HarnessMiner` into a new package to avoid
confusion about incoming changes.
2024-07-23 21:30:07 +08:00
Keagan McClelland
56048133f2
itest+lntest: add itest to reproduce bug #8535
2024-06-05 12:56:04 -07:00
yyforyongyu
55452f64e8
lntest: wait for mempool update after mining txns
2024-06-04 09:07:43 +02:00
yyforyongyu
8da68bb7db
multi: apply the new type lntypes.WeightUnit
2024-05-25 13:37:13 +08:00
Olaoluwa Osuntokun
e8031fdccf
lnrpc: ensure parsing of the Amp flag for payments is consistent
...
In this commit, we fix an inconsistent in the API related to AMP
payments. When a payment request isn't specified, we require the `--amp`
flag on the CLI to make an AMP payment. However, for payment requests,
we don't require this flag. To fix this inconsistency, we now require
the `--amp` flag to _also_ be set for payment requests.
2024-04-25 16:16:16 -07:00
ziggie
351e9a68dd
multi: Add tests to psbt and normal open channel flow.
...
Itests were added to the normal channel funding flow and the psbt
funding flow using unstable (unconfirmed sweeper inputs).
2024-04-24 13:58:20 +01:00
yyforyongyu
d854c80aa7
itest+lntest: fix itest re the new sweeping behavior
2024-04-20 04:41:29 +08:00
yyforyongyu
6f55a7af05
itest: add new test to check BumpFee
and PendingSweeps
2024-04-19 21:33:38 +08:00
yyforyongyu
f68c14321b
itest: fix multi-hop itest
2024-04-19 21:33:36 +08:00
yyforyongyu
ce58175314
itest+lntest: fix channel force close itest
2024-04-19 21:33:36 +08:00
yyforyongyu
94e0e32c74
multi: add itest testSweepAnchorCPFPLocalForceClose
...
This commit adds an itest case that focuses on validating the CPFP logic
in anchor sweeping.
2024-04-19 21:33:36 +08:00
yyforyongyu
94390fc775
itest: fix existing itests
2024-04-19 21:33:29 +08:00
yyforyongyu
521b1fc34a
itest+lntest: fix itest re the new block driven behavior
2024-04-19 21:33:26 +08:00
yyforyongyu
519a8749ef
lntest: reflect the updated fee estimator in tests
2024-04-19 21:33:21 +08:00
Olaoluwa Osuntokun
716c6dddd8
Merge pull request #8052 from bhandras/sql-invoices
...
sqldb: `InvoiceDB` implementation
2024-03-06 21:15:14 -06:00
Slyghtning
ef069b658d
itest: preparatory fee estimation changes
2024-03-05 09:24:27 +01:00
Andras Banki-Horvath
ba8e7550d5
itest: add the -nativesql flag to run SQL itests with native SQL tables
2024-03-01 10:08:10 +01:00
Andras Banki-Horvath
187e61da23
itests: add itest for ListSweeps's start_height
2024-02-01 21:02:25 +01:00
Keagan McClelland
07277172f8
itest+lntest: remove temporary hacks around broken coop close in itests
2024-01-23 14:31:51 -08:00
Calvin Zachman
2209badfe8
lntest: standby test nodes in remote signing configuration
...
Add the ability to create a test harness with nodes in a
remote signing configuration.
2024-01-10 09:18:30 -06:00
Thabokani
55072bfd5e
sweep+lntest: fix typos
2024-01-02 19:23:30 +08:00
yyforyongyu
9cc57fa371
lntest: add verbose logging when node fails to shutdown
2023-11-25 07:25:18 +08:00
yyforyongyu
cc6b20bf2f
lntest: mine empty blocks when cleaning up force close
...
Fix this test flake,
```
harness_miner.go:218:
Error Trace: /home/runner/work/lnd/lnd/lntest/harness_miner.go:218
/home/runner/work/lnd/lnd/lntest/harness.go:1641
/home/runner/work/lnd/lnd/lntest/harness.go:1515
/home/runner/work/lnd/lnd/itest/lnd_wipe_fwdpkgs_test.go:121
/home/runner/work/lnd/lnd/lntest/harness.go:286
/home/runner/work/lnd/lnd/itest/lnd_test.go:136
Error: Received unexpected error:
want 1, got 0 in mempool: []
Test: TestLightningNetworkDaemon/tranche02/91-of-135/neutrino/wipe_forwarding_packages
Messages: assert tx in mempool timeout
harness.go:339: finished test: wipe_forwarding_packages, start height=1636, end height=1653, mined blocks=17
harness.go:345: test failed, skipped cleanup
```
2023-10-31 16:51:24 +08:00
Oliver Gugger
590dc0c3b3
itest: unify PSBT channel funding tests, add taproot
...
With this commit we unify three existing PSBT channel funding
integration tests into a single one with the goal of testing all three
cases with simple taproot channels as well.
2023-08-29 10:57:38 +02:00
Olaoluwa Osuntokun
7c5be4d056
itest: add taproot support for all variants of runMultiHopHtlcClaimTest
2023-08-22 16:34:06 -07:00
Slyghtning
396cffcd70
itest: anchor reserve test for SendOutputs
2023-07-24 13:07:01 +02:00
Oliver Gugger
56dba2df03
multi: update linter, fix new issues
2023-06-13 11:58:33 +02:00
Oliver Gugger
3d53d6909a
Merge pull request #7681 from yyforyongyu/btcwallet-mempool
...
mod: update btcwallet's version
2023-05-22 10:24:17 +02:00
yyforyongyu
c6cfc425a0
lntest+itest: clean mempool in testHtlcTimeoutResolverExtractPreimageRemote
2023-05-20 00:33:04 +08:00
shaurya947
84fff6e0a7
itest: update channel creation itest with Memo field logic
...
We test both the happy path (valid memo is returned when querying),
as well as the unhappy path (invalid memo rejects the open action).
To accomplish this, we update the OpenChannelParams struct inside
the harness to accept the Memo.
2023-05-18 13:02:30 -04:00
Oliver Gugger
d9396741fa
Merge pull request #7607 from yyforyongyu/itest-fix-close-chan
...
lntest: add temporary wait when closing channels
2023-04-19 10:48:43 +02:00
yyforyongyu
774db0dfe1
lntest: add more methods to assert mempool state
2023-04-19 01:18:19 +08:00
yyforyongyu
6aaca568c1
lntest: add temporary wait when closing channels
...
A temporary solution to avoid the `link failed to shutdown` error.
2023-04-19 01:07:04 +08:00
Bjarne Magnussen
d7f578b0d9
lntest/itest: adds tests for fundmax
flag of cli:openchannel
2023-04-05 23:09:12 +02:00
yyforyongyu
a79ab8bafd
lntest: increase wait time to 5s when failed to close channel
2023-03-22 23:55:11 +07:00
yyforyongyu
20e53e85b4
itest+lntest: make sure states are cleaned when tests end
...
This commit changes how the node's state is updated to make sure the
test cleans up the node's state.
Also `testLookupHtlcResolution` is fixed with a cleanup.
2023-03-15 00:01:40 +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
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