yyforyongyu
782edde213
itest: fix and document flake in sweeping tests
...
We previously didn't see this issue because we always have nodes being
over-funded.
2024-12-20 19:38:07 +08:00
yyforyongyu
de8f14bed2
itest: remove the use of standby nodes
...
This commit removes the usage of the standby nodes and uses
`CreateSimpleNetwork` when applicable. Also introduces a helper method
`NewNodeWithCoins` to quickly start a node with funds.
2024-12-20 19:38:05 +08:00
yyforyongyu
3eda87fff9
itest: remove direct reference to stanby nodes
...
Prepares the upcoming refactor. We now never call `ht.Alice` directly,
instead, we always init `alice := ht.Alice` so it's easier to see how
they are removed in a following commit.
2024-12-20 19:38:05 +08:00
yyforyongyu
0778009ac2
itest: fix testBumpForceCloseFee
2024-12-20 17:54:09 +08:00
yyforyongyu
1aeea8a90f
itest: fix testSweepCommitOutputAndAnchor
2024-12-20 17:54:09 +08:00
yyforyongyu
d260a87f3b
itest: fix testSweepHTLCs
2024-12-20 17:54:09 +08:00
yyforyongyu
cacf222e11
itest: fix testSweepCPFPAnchorIncomingTimeout
2024-12-20 17:54:09 +08:00
yyforyongyu
40ac04a254
lntest+itest: fix testSweepCPFPAnchorOutgoingTimeout
2024-12-20 17:54:08 +08:00
Keagan McClelland
ed2989ae33
multi: update to fn v2
2024-12-04 13:19:00 -07:00
Elle Mouton
ab7aae0708
multi: rename nolint:lll to nolint:ll
...
Find and replace all nolint instances refering to the `lll` linter and
replace with `ll` which is the name of our custom version of the `lll`
linter which can be used to ignore log lines during linting.
The next commit will do the configuration of the custom linter and
disable the default one.
2024-12-02 09:14:21 +02:00
yyforyongyu
35992e1503
lntest+itest: expore method createSimpleNetwork
...
So it can be used via `ht.CreateSimpleNetwork`.
2024-11-11 20:57:49 +08:00
yyforyongyu
ed3cb26188
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-17 07:14:51 +08:00
ziggie
2d04813dc3
itest: Add itest for bumpclosefeerate rpc.
...
Add an itest which will bump the close fee rate of an anchor
channel which is force closed without having any HTLCs at stake.
2024-08-09 19:41:27 +02:00
ziggie
cac5b32d88
itest: adapt itest for the new anchor behavior.
...
Now we also register anchors when no HTLCs are at stake.
2024-07-30 20:31:29 +02: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
be4dba5da6
lntest+itest: finalize moving miner methods
2024-07-23 21:30:07 +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
8da68bb7db
multi: apply the new type lntypes.WeightUnit
2024-05-25 13:37:13 +08:00
yyforyongyu
4079f61d7e
itest+sweep: fix current itest re anchor deadline
2024-05-21 00:53:20 +08:00
yyforyongyu
e68c0235c6
itest: add new itests to check CPFP anchor sweeping behavior
...
Replaced `testSweepAnchorCPFPLocalForceClose` with dedicated tests.
2024-05-18 07:45:10 +08:00
yyforyongyu
d854c80aa7
itest+lntest: fix itest re the new sweeping behavior
2024-04-20 04:41:29 +08:00
yyforyongyu
96883f307c
itest+sweep: add itest testSweepCommitOutputAndAnchor
...
This commit adds a test case to check the no deadline sweeping behavior.
The sweeper is updated to make sure it can handle the case for neutrino
backend.
2024-04-19 21:33:39 +08:00
yyforyongyu
6f55a7af05
itest: add new test to check BumpFee
and PendingSweeps
2024-04-19 21:33:38 +08:00
yyforyongyu
a1a480a81c
itest+lntest: add itest testSweepHTLCs
to check HTLC sweepings
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