lnd.xprv/lntest/itest
Olaoluwa Osuntokun b73a6e2c61
routing: if MaxShardAmt is set, then use that as a ceiling for our splits
In this commit, we thread through the necessary state to allow users to
set a max shard amount. If this value is set, then this'll effectively
serve as a ceiling for all our split attempts. If we need to split,
we'll first try to use `paymentAmt/2`, if that's bigger than
`MaxShardAmt, then we'll use the latter instead.

Ideally in the future we have a dynamic way to automatically set both
the `MaxShardAmt` as well as `MaxParts` for users. Until then exposing
these two new fields will allow us to experiment with setting them
automatically using the RPC interface, and also give users a bit more
control over how we attempt to route payments, akin to coin control for
on-chain payments.

Fixes #4730
2021-02-15 19:31:52 -08:00
..
lnd_channel_backup_test.go itest: increase recovery payment amount so htlc isn't dust 2020-12-08 14:55:40 -08:00
lnd_forward_interceptor_test.go itest: defer shutdown of nodes in main test method 2020-12-03 23:06:32 -08:00
lnd_macaroons_test.go itest: fix crash in parallel macaroon tests 2020-11-12 09:17:52 +01:00
lnd_max_channel_size_test.go multi: move and export funding-related vars to funding package 2020-12-17 09:36:34 -05:00
lnd_mpp_test.go chainregistry+lnd: moving chainregistry+chainparams to new package 2020-10-29 15:24:14 -04:00
lnd_multi-hop_htlc_aggregation_test.go itest: add HTLC aggregation test 2020-12-10 14:24:21 +01:00
lnd_multi-hop_htlc_local_chain_claim_test.go itest/local_chain_claim test: mine one less blocks for anchor sweeps 2020-12-10 14:24:21 +01:00
lnd_multi-hop_htlc_local_timeout_test.go itest: increase htlc amt for local force close tests 2020-12-10 14:24:18 +01:00
lnd_multi-hop_htlc_receiver_chain_claim_test.go itest: cleanup multi-hop tests 2020-10-28 13:38:04 +01:00
lnd_multi-hop_htlc_remote_chain_claim_test.go itest: fix typo and formatting 2020-11-04 11:03:36 +01:00
lnd_multi-hop_local_force_close_on_chain_htlc_timeout_test.go itest: increase htlc amt for local force close tests 2020-12-10 14:24:18 +01:00
lnd_multi-hop_remote_force_close_on_chain_htlc_timeout_test.go itest: cleanup multi-hop tests 2020-10-28 13:38:04 +01:00
lnd_multi-hop_test.go itest: add HTLC aggregation test 2020-12-10 14:24:21 +01:00
lnd_multi-hop-error-propagation_test.go routing: if MaxShardAmt is set, then use that as a ceiling for our splits 2021-02-15 19:31:52 -08:00
lnd_multi-hop-payments_test.go chainregistry+lnd: moving chainregistry+chainparams to new package 2020-10-29 15:24:14 -04:00
lnd_network_test.go lntest: fix most linter warnings, silence rest 2020-09-21 21:16:31 +02:00
lnd_onchain_test.go itest: add testAnchorReservedValue 2021-01-19 20:06:52 +01:00
lnd_psbt_test.go multi: move and export funding-related vars to funding package 2020-12-17 09:36:34 -05:00
lnd_rest_api_test.go lntest: fix most linter warnings, silence rest 2020-09-21 21:16:31 +02:00
lnd_send_multi_path_payment_test.go lntest: allow the main test files to be buildable w/o the rpctest build tag 2020-09-21 21:16:31 +02:00
lnd_signer_test.go lntest: allow the main test files to be buildable w/o the rpctest build tag 2020-09-21 21:16:31 +02:00
lnd_single_hop_invoice_test.go invoicerpc: Allow user specify routing hints. 2020-11-06 17:54:20 +02:00
lnd_test_list_off_test.go itest: split tests into dynamic tranches 2020-11-04 11:03:29 +01:00
lnd_test_list_on_test.go itest: add testAnchorReservedValue 2021-01-19 20:06:52 +01:00
lnd_test.go Merge pull request #4909 from carlaKC/mc-paramsapi 2021-02-10 18:51:53 -08:00
lnd_wumbo_channels_test.go multi: move and export funding-related vars to funding package 2020-12-17 09:36:34 -05:00
log_check_errors.sh itest: fix log whitelist check 2020-12-09 08:06:16 +01:00
log_error_whitelist.txt lntest: add Block height out of range to whitelist 2021-02-11 17:51:07 -08:00
log_substitutions.txt itest: fix pattern for short_chan_id in err whitelist 2020-08-24 09:53:41 +02:00
test_harness.go itest: add flags for lnd executable 2020-11-04 11:03:31 +01:00