yyforyongyu
29124dd3b4
itest+lntest: add helper methods to manage temp miners
...
This commit adds several methods to easily spawn a temp miner and
connect/disconnect it from the original miner.
2023-06-19 14:04:24 +08:00
shaurya947
44fdd02ab4
lnrpc+itest: return channel Memo for Pending channels
...
In a previous PR we added a Memo field for channels that could be
specified when opening a channel. This was a reference note-to-self
with no bearing on the functioning of the channel. In that PR, the
memo value was returned only through ListChannels. This commit builds
upon that PR by also returning the Memo field for channels returned by
PendingChannels RPC.
2023-06-15 15:16:06 -04:00
Torakushi
77d3f00c3b
walletrpc+btcwallet: no custom account with various key scopes
...
Currently, a user can create a custom account with various key scopes.
This is not a desired behaviour.
2023-06-14 09:58:53 +02:00
Oliver Gugger
cf1f44ab10
Merge pull request #7689 from guggero/housekeeping
...
Housekeeping (fix small issues, take over stale contributor PRs)
2023-06-13 17:42:53 +02:00
Oliver Gugger
56dba2df03
multi: update linter, fix new issues
2023-06-13 11:58:33 +02:00
Maxwell Sayles
f7bdbb9e73
funding: integration test to verify the value of FundingExpiryBlock on
...
pending channels that are waiting for funding confirmation.
2023-06-12 10:04:04 -07:00
yyforyongyu
9ae4511a6f
itest: make sure invoice is settled in multi hop htlc test
2023-05-24 02:38:40 +08: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
0b64ba94c0
itest: cleanup channels for testSwitchOfflineDeliveryOutgoingOffline
2023-05-20 00:33:56 +08:00
yyforyongyu
931481c4fe
itest: make sure edges are updated in mpp tests
2023-05-20 00:33:56 +08: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
f9436ec05d
mod+cmd/lncli: use google.golang.org/protobuf package
2023-05-11 22:51:16 +02:00
yyforyongyu
1dc66302cd
itest: fix test flake in testHtlcTimeoutResolverExtractPreimageRemote
2023-05-10 02:01:54 +08:00
yyforyongyu
3f2675f10d
itest: remove potential parallel usage of the watchtower default port
2023-05-09 21:41:53 +08:00
yyforyongyu
cdc6f63f17
itest: reorder test cases to even out blocks per tranche
2023-05-09 21:41:53 +08:00
yyforyongyu
e018c02d40
itest: refactor createThreeHopNetwork
to open channels async
...
This will save us 6 blocks each time we call this function.
2023-05-09 21:41:53 +08:00
Carla Kirk-Cohen
019da315a8
itest: add coverage for custom features
2023-05-04 10:42:17 -04:00
Carla Kirk-Cohen
e41c65785f
multi: update node announcement features in feature manager first
...
Move merge of our features into the feature manager, rather than
updating our node announcement then retrospectively setting the
feature manger's set to the new vector. This allows us to use the
feature vector as our single source of truth for announcements.
2023-05-04 10:35:46 -04:00
Slyghtning
77322dddb8
itest: anchor reserve test for SendOutputs
2023-04-29 22:44:26 +02:00
yyforyongyu
e715b8ed1f
itest+lntest: add itest for mempool preimage watch
2023-04-19 01:18:19 +08:00
Oliver Gugger
1eebbe3f42
itest: update channel open test to send payment
...
This commit enhances the custom fee policy channel open test by adding a
second channel and testing forwarding payments through the channel with
the custom forwarding policies.
This was able to reproduce the bug reported in #5796 which was fixed in
a previous commit of this PR.
2023-04-18 09:52:14 +02:00
Oliver Gugger
ebf11bc2f1
itest: move lnd_custom_{message => message_test}.go
...
This recently added file didn't follow the golang naming convention for
tests.
2023-04-18 09:40:18 +02:00
Torakushi
0445fef7ad
funding: use p2tr by default for batch_open_channel
...
In LND v0.15.1, batch_open_channel used p2tr by default
for change output. However, in a later version, a breaking
change has been fixed in FundPSBT to make the change type
configurable (default to p2wkh). As batch_open_channel
uses FundPsbt, we need to put back p2tr as default for
change output
2023-04-17 17:37:51 +02:00
Slyghtning
ff45fc7e71
itest: respect the reserved wallet balance when using fundmax
2023-04-05 23:10:04 +02:00
Bjarne Magnussen
d7f578b0d9
lntest/itest: adds tests for fundmax
flag of cli:openchannel
2023-04-05 23:09:12 +02:00
ziggie
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
Oliver Gugger
d019c82f07
itest: assert change output type of SendCoins
2023-03-20 20:15:43 +01:00
Oliver Gugger
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
Elle Mouton
6f4034f7d1
lntest/itest: add session deletion itest
2023-03-20 16:51:51 +02:00
yyforyongyu
c87da1ff01
itest: fix flake in testAnchorThirdPartySpend
2023-03-17 03:17:36 +08: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
Olaoluwa Osuntokun
251802d796
Merge pull request #7444 from bitromortac/2302-capacity-config
...
routing: configurable capacity fraction for apriori probability
2023-03-02 18:39:01 -08:00
yyforyongyu
70eede22dc
itest: use unreachable URL in testNetworkConnectionTimeout
2023-03-02 09:42:21 +08: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
bitromortac
fce88e8b5d
lncli+routerrpc: dynamic capacity fraction config
...
Enable setting and getting of the apriori capacity fraction in lncli and
in the router rpc.
2023-02-24 15:28:55 +01:00
Slyghtning
4c198bdfde
itest: check peer alias in ListChannels
2023-02-24 10:49:11 +01:00
yyforyongyu
52dff48477
itest: fix flake in testOptionScidUpgrade
2023-02-24 01:35:17 +08:00
yyforyongyu
4fdce8b448
itest: fix flake in testChannelFundingPersistence
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
eb57de2f0e
itest: fix context leak in testZeroConfReorg
2023-02-24 01:35:16 +08:00
yyforyongyu
1f636ad275
itest: add readme
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
f55f9dcb87
itest: increase sleep time when closing channels in mpp setup
2023-02-23 21:56:11 +08:00
yyforyongyu
92a2da52c5
itest: fix testGraphTopologyNtfns
and mark a bug in disconnectpeer
2023-02-23 21:56:11 +08:00
yyforyongyu
25a2e0f716
itest: temp fix testAddPeerConfig
2023-02-23 21:56:11 +08:00
yyforyongyu
05c82d918e
itest: remove file log_error_whitelist.txt
2023-02-23 21:56:11 +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