Commit Graph

36 Commits

Author SHA1 Message Date
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
d4b2798570 itest: make sure SendToRoute stream is recieved with timeout 2023-01-17 07:34:48 +08:00
fe376385d1 lntemp+lntest: fix make lint 2023-01-17 07:26:58 +08:00
368635ef95 lntemp+itest: refactor testRouteFeeCutoff 2023-01-17 07:26:56 +08:00
b2dc9d8393 lntemp+itest: refactor testQueryRoutes 2023-01-17 07:26:56 +08:00
ba6a722ad8 itest: refactor testMultiHopOverPrivateChannels 2023-01-17 07:26:56 +08:00
5536f16d4b itest: refactor testInvoiceRoutingHints 2023-01-17 07:26:56 +08:00
2ce93afd70 itest: refactor testPrivateChannels 2023-01-17 07:26:55 +08:00
25b6ff3336 itest: refactor testSendToRouteErrorPropagation 2023-01-17 07:26:55 +08:00
787883870b itest: refactor testMultiHopSendToRoute 2023-01-16 16:49:20 +08:00
c5785967aa lntemp+itest: refactor testSingleHopSendToRoute 2023-01-16 16:49:19 +08:00
0cae501009 lnrpc: provide hop hints when adding an invoice with no amount
With this change we allow adding hop hints when adding an invoice, even
if its amount is zero.

A couple of new unit test case have been added, and the
`testInvoiceRoutingHints` itest was expanded to account for this
scenario.
2022-11-12 05:01:10 -05:00
a96483c7d2 itest: refactor testInvoiceRoutingHints' hints check logic
Move code into new closure `checkInvoiceHints` to reuse when checking
other invoices.
2022-11-12 05:01:09 -05:00
0735522194 multi: fix make fmt 2022-08-23 22:10:24 +08:00
7dfe4018ce multi: use btcd's btcec/v2 and btcutil modules
This commit was previously split into the following parts to ease
review:
 - 2d746f68: replace imports
 - 4008f0fd: use ecdsa.Signature
 - 849e33d1: remove btcec.S256()
 - b8f6ebbd: use v2 library correctly
 - fa80bca9: bump go modules
2022-03-09 19:02:37 +01:00
895a2e497b multi: formatting and comment fixes 2022-02-10 11:02:02 +01:00
26ed64fa52 itest: manage context within HarnessNode
This commit removes the context as a param needed when calling methods
of HarnessNode. This change moves the context management inside
HarnessNode, aside from saving us a few lines, it makes the context
creation/timeout less error-prone.
2021-12-04 14:54:36 +08:00
27632daa98 itest: test path finding without cache 2021-10-22 09:32:50 +02:00
cdec34c5f7 itest: remove the method waitForChannelUpdate
This commit removes the method waitForChannelUpdate, and uses
node.WaitForChannelPolicyUpdate instead.
2021-09-17 07:50:43 +08:00
06fa17513c itest: move tests by their category 2021-09-17 07:50:43 +08:00
104b7a09db itest: fix inheritance when creating timeout ctxt
This commit fixes the issue where a wrong context being inherited to
create a timeout context. When a parent context timed out, all its
children contexts also timed out, even the children contexts had a
larger timeout value. This means it only makes sense to inherite from a
parent when its children have smaller timeout value. Given the setup of
the itest, all the timeout contexts need to be created from a context
background(hence no timeout on the parent) unless there's an explicit
timeout bound we want to set.
2021-08-24 12:28:40 +08:00
edffd65e92 itest: manage context timeout in utils.go
This commit finishes moving the context management into utils.go.
2021-08-24 12:28:40 +08:00
a6c5255e77 itest: manage context timeout inside completePaymentRequests 2021-08-24 12:28:39 +08:00
16403da91e itest: manage context in CloseChannel and AssertChannelExists 2021-08-24 12:16:46 +08:00
3e26d77f91 itest: manage context inside WaitForChannelOpen and WaitForChannelClose 2021-08-24 12:16:46 +08:00
1629858a3d itest: manage context inside assertions - II
This commit continues moving context management into assertions.
2021-08-24 12:16:40 +08:00
02e4c3ad4c itest: manage context inside assertions - I
This commit changes the methods assertTxLabel, assertReports,
assertSweepFound, and sendAndAssertSuccess to manage their own context
with deadline.
2021-08-24 11:17:20 +08:00
d10d1e3e24 itest: manage context inside SendCoins 2021-08-24 11:06:44 +08:00
8de495b96b itest: initialize context inside ConnectNodes 2021-08-24 11:06:43 +08:00
dca20d80a7 itest: fix context leak in openChannelAndAssert
In this commit, we put the context initialization inside
openChannelAndAssert, thus saving us a few lines and making sure the
context is always properly handled.
2021-08-24 11:06:43 +08:00
8eddc50beb itest: remove context creations outside close channel assertion 2021-08-11 12:44:39 +08:00
310e923170 itest: use require inside net.EnsureConnected/net.ConnectNodes 2021-06-29 01:41:48 +08:00
54ed6c271b itest: silence depreciation warnings 2021-06-23 20:35:28 +08:00
193d149d48 itest: test channel policy update in private channels 2021-06-23 20:35:28 +08:00
319cc533a6 itest: fix make lint 2021-06-23 20:35:28 +08:00
e10bd84a4f itest: moving routing related tests into one file 2021-06-23 20:35:23 +08:00