yyforyongyu
21535826ba
lntest: remove redundant MineBlocks
2024-10-29 15:31:21 +08:00
Oliver Gugger
5f20fd4d9f
lntest: shutdown all nodes at end of test
...
Fixes an issue where the standby nodes would keep running even after the
test finished (successfully or with a failure).
2024-10-22 18:12:16 +02:00
yyforyongyu
bf8ae68eea
lntest: add method AssertTxnsNotInMempool
...
So we only need to do one `GetRawMempool` lookup when checking the
exclusion of multiple txns.
2024-10-17 07:34:40 +08:00
yyforyongyu
e560e00aeb
lntest: remove unused return value
2024-10-17 07:34:25 +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
Oliver Gugger
fb5e7f4b23
Merge pull request #9059 from guggero/bitcoind-28
...
CI: run integration tests against bitcoind v28
2024-10-16 15:55:44 +02:00
Oliver Gugger
91ade89a78
lntest: avoid port collision on Tor listen port
...
bitcoind now seems to listen on the -bind port at all times. So we need
to make sure multiple instances don't collide by using a unique port.
2024-10-14 16:10:19 +02:00
Oliver Gugger
56a36acf63
lntest: move debug flag, disable spammy libevent
2024-10-14 16:10:18 +02:00
Boris Nagaev
3de94c11ae
lntest: fix typo
2024-10-14 09:44:32 -03:00
ziggie
4402137fb4
multi: bump btcd version.
...
The new SignCompact return values had to be adopted across the
code base.
2024-10-03 21:56:21 +02:00
Olaoluwa Osuntokun
8dee76a1b8
peer: decorate delivery addr w/ internal key
...
In this commit, we move to add the internal key to the delivery addr. This way, we give the aux chan closer the extra information it may need to properly augment the normal co-op close process.
2024-09-19 10:18:41 +02:00
ffranr
0c6a1558d5
lntest: add HtlcModifier
support to node RPC harness
...
This commit enhances the itest LND node harness to include support for
the new `HtlcModifier` RPC endpoint.
At the same time we move another method to the correct file.
2024-09-19 09:21:38 +02:00
Oliver Gugger
5e1a98cd43
lnrpc+rpcserver: add and populate custom channel data
2024-09-18 19:07:26 +02:00
George Tsagkarelis
427d41dc1e
itest: add interceptor and first hop data tests
2024-09-05 18:00:53 +02:00
George Tsagkarelis
705e567357
itest: add dynamic scid alias routing test
2024-09-05 10:29:42 +02:00
Olaoluwa Osuntokun
cc9e2b783e
Merge pull request #8961 from yyforyongyu/fix-leaseoutput
...
Improve the performace of `LeaseOutput`
2024-08-21 16:31:26 -07:00
Oliver Gugger
e99e6662cf
multi: update linter, fix new issues
2024-08-20 19:14:44 +02: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
ae28f75557
miner: bugfix
...
return the transaction when found in the mempool.
2024-08-09 19:41:26 +02:00
yyforyongyu
3e36adf476
mulit: remove ListLeasedOutputs
in LeaseOutput
...
This commit removes the call toe `ListLeasedOutputs` in `LeaseOutput` -
the returned info from `ListLeasedOutputs` can easily be accessed via
`FetchInputInfo` and this info is only used at one callsite.
`ListLeasedOutputs` then becomes unnecessary here, plus it's very slow
and needs to be refactored in `btcwallet` instead.
2024-08-09 22:01:57 +08:00
yyforyongyu
b17db4a32a
lntest+lnwallet: remove the method FetchInputInfo
...
This method is no longer used. In addition, the `Derivation` field on
the `Utxo` is also removed to avoid nil dereference.
2024-08-09 22:01:56 +08:00
yyforyongyu
9801ee036b
lnwallet+lntest: add FetchOutpointInfo
and FetchDerivationInfo
2024-08-09 21:51:17 +08:00
Yong
a449a5d132
Merge pull request #8174 from yyforyongyu/fix-inflight-payments
...
routing: fix stuck inflight payments
2024-08-07 23:23:27 +08:00
yyforyongyu
677f2c390a
lntest: re-define CleanupForceClose
...
To reflect the new sweeping behavior, also makes it easier to be used as
we need to method to quickly cleanup force closes without concerning the
details when we are not testing the force close behavior.
2024-08-07 22:19:23 +08:00
yyforyongyu
941716d60e
lntest+itest: add new test testPaymentHTLCTimeout
...
This commit adds a new test case to validate that when an HTLC has timed
out, the corresponding payment is marked as failed.
2024-08-07 22:17:58 +08:00
yyforyongyu
0041426e7e
itest+lntest: return the error from SendCoinsAssertErr
...
Also rename the send all coins test for clarity.
2024-08-07 20:42:28 +08:00
Ononiwu Maureen
99339f706f
multi: expand SendOutputs
and CreateSimpleTx
to take utxos
...
This commit updates the interface methods from
`lnwallet.WalletController` to take optional input set which can be used
to create the tx.
2024-08-07 20:42:27 +08:00
Olaoluwa Osuntokun
c46b1a467a
Merge pull request #8836 from hieblmi/payment-failure-reason-cancel
...
routing: add payment failure reason `FailureReasonCancel`
2024-08-01 16:52:06 -07:00
Andras Banki-Horvath
8e0534f756
multi: add leader check to the healthcheck monitor
...
This commit extends our healtcheck with an optional leader check. This
is to ensure that given network partition or other cluster wide failure
we act as soon as possible to avoid a split-brain situation where a new
leader is elected but we still hold onto our etcd client.
2024-08-01 19:04:10 +02:00
Slyghtning
0273eac4b2
itest: payment failure reason canceled
2024-08-01 10:25:22 +02:00
bitromortac
557b33733c
itest: add test for failing send after queryroutes
2024-07-30 08:52:50 +02:00
Elle Mouton
34d8fff5f9
itest: update route blind tests
...
The route blinding itests are now updated so that recipient logic is
tested. The creation of a blinded route is also now done through the
AddInvoice API instead of manually.
2024-07-26 09:54:18 +02:00
yyforyongyu
a1d71afde8
lntest: allow specifying min relay feerate in itest
2024-07-24 20:05:00 +08:00
yyforyongyu
9fee656d70
chainntnfs+lntest: fix TestInterfaces
...
This commit upgrades the test to always use a segwit v0 witness program
when creating testing txns.
2024-07-24 17:43:27 +08:00
yyforyongyu
4dcce9df69
lntest+itest: fix flakes found using neutrino
backend
...
This commit makes sure the sweep requests are received before mining
blocks to trigger the actual sweeping.
In addition, `testFundingExpiryBlocksOnPending` is updated to deal with
the old `channel link not found` issue.
2024-07-23 21:30:09 +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
8240a87c2b
itest: fix misuse of MineBlocks
and replace it with
...
`MineBlocksAndAssertNumTxes`
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
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
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
Marcia Waite
e6dca0ce6e
multi: Fix typos and grammar in multiple docs
2024-07-22 20:08:12 -07:00
Elle Mouton
f3cdbbed2f
itest+lntest: let abandoned channel be either not found or in zombie
...
index
When abandoning a channel, we remove it from the graph and then add it
to the zombie channel index. However, if we then process a ChannelUpdate
for this channel it will result in us calling `processZombieUpdate`
which will delete the edge from the zombie index. The abandon channel
itest currently asserts that a channel is no longer in the graph by
asserting that when querying for the channel we get a "marked as zombie"
error but to account for the above series of operations, we now also
allow it to just not be found at all ("edge not found").
2024-06-14 14:33:43 -04:00
yyforyongyu
ddceb2b15b
lntest: increase timeout for postgres backend
...
Also decrease timeout values for other builds.
2024-06-13 17:54:30 +08:00
Keagan McClelland
56048133f2
itest+lntest: add itest to reproduce bug #8535
2024-06-05 12:56:04 -07:00
yyforyongyu
d9498a9d13
lntest: increase DefaultTimeout for postgres
2024-06-04 09:07:44 +02:00