multi: add new config usestatusinitiated for the new payment status

This commit adds a new config value to signal that the user understands
the new payment status `StatusInitiated`.
This commit is contained in:
yyforyongyu
2023-11-14 20:29:52 +08:00
parent c58454effe
commit 816a70e08c
5 changed files with 44 additions and 4 deletions

View File

@@ -20,6 +20,17 @@ func testMaxHtlcPathfind(ht *lntest.HarnessTest) {
maxHtlcs := 5
alice, bob := ht.Alice, ht.Bob
// Restart nodes with the new flag so they understand the new payment
// status.
ht.RestartNodeWithExtraArgs(alice, []string{
"--routerrpc.usestatusinitiated",
})
ht.RestartNodeWithExtraArgs(bob, []string{
"--routerrpc.usestatusinitiated",
})
ht.EnsureConnected(alice, bob)
chanPoint := ht.OpenChannel(
alice, bob, lntest.OpenChannelParams{
Amt: 1000000,