lntest: keep all failed payments by default for HarnessNode
In this commit, we fix a detected flake: we go to make a payment, and then want to assert that 2 attempts we required. The existing logic assumes that the success and the payment will still be on disk. With a recent PR, we now delete failed payments by default, but after the fact, in a non-atomic fashion. We fix this issue simply by having all the nodes keep around failed payments for the sake of all the old itests that assumed this information would always be on disk. Introduced in: https://github.com/lightningnetwork/lnd/pull/6438. Fixes https://github.com/lightningnetwork/lnd/issues/6711.
This commit is contained in:
2 files changed
+4
No files matched your search
@@ -60,6 +60,8 @@
|
|||||||
* [The HtlcSwitch now waits for a ChannelLink to stop before replacing it. This fixes a race
|
* [The HtlcSwitch now waits for a ChannelLink to stop before replacing it. This fixes a race
|
||||||
condition.](https://github.com/lightningnetwork/lnd/pull/6642)
|
condition.](https://github.com/lightningnetwork/lnd/pull/6642)
|
||||||
|
|
||||||
|
* [Integration tests now always run with nodes never deleting failed payments](https://github.com/lightningnetwork/lnd/pull/6712).
|
||||||
|
|
||||||
## Code Health
|
## Code Health
|
||||||
|
|
||||||
### Code cleanup, refactor, typo fixes
|
### Code cleanup, refactor, typo fixes
|
||||||
@@ -83,6 +85,7 @@
|
|||||||
* Eugene Siegel
|
* Eugene Siegel
|
||||||
* Slyghtning
|
* Slyghtning
|
||||||
* Oliver Gugger
|
* Oliver Gugger
|
||||||
|
* Olaoluwa Osuntokun
|
||||||
* Priyansh Rastogi
|
* Priyansh Rastogi
|
||||||
* Tommy Volk
|
* Tommy Volk
|
||||||
* Yong Yu
|
* Yong Yu
|
||||||
@@ -217,6 +217,7 @@ func (cfg *BaseNodeConfig) GenArgs() []string {
|
|||||||
"--nobootstrap",
|
"--nobootstrap",
|
||||||
"--debuglevel=debug",
|
"--debuglevel=debug",
|
||||||
"--bitcoin.defaultchanconfs=1",
|
"--bitcoin.defaultchanconfs=1",
|
||||||
|
"--keep-failed-payment-attempts",
|
||||||
fmt.Sprintf("--db.batch-commit-interval=%v", commitInterval),
|
fmt.Sprintf("--db.batch-commit-interval=%v", commitInterval),
|
||||||
fmt.Sprintf("--bitcoin.defaultremotedelay=%v", DefaultCSV),
|
fmt.Sprintf("--bitcoin.defaultremotedelay=%v", DefaultCSV),
|
||||||
fmt.Sprintf("--rpclisten=%v", cfg.RPCAddr()),
|
fmt.Sprintf("--rpclisten=%v", cfg.RPCAddr()),
|
||||||
|
|||||||
Reference in new issue
Block a user