mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-01 09:40:19 +01:00
df-tests: test_payment_success|failed_persistence
This commit is contained in:
parent
fa539d3281
commit
e964c31369
1 changed files with 14 additions and 3 deletions
|
@ -6,7 +6,7 @@ from pyln.client import RpcError, Millisatoshi
|
|||
from pyln.proto.onion import TlvPayload
|
||||
from utils import (
|
||||
DEVELOPER, wait_for, only_one, sync_blockheight, TIMEOUT,
|
||||
EXPERIMENTAL_FEATURES, env, VALGRIND
|
||||
EXPERIMENTAL_FEATURES, env, VALGRIND, EXPERIMENTAL_DUAL_FUND
|
||||
)
|
||||
import copy
|
||||
import os
|
||||
|
@ -342,7 +342,13 @@ def test_pay_optional_args(node_factory, compat):
|
|||
def test_payment_success_persistence(node_factory, bitcoind, executor):
|
||||
# Start two nodes and open a channel.. die during payment.
|
||||
# Feerates identical so we don't get gratuitous commit to update them
|
||||
l1 = node_factory.get_node(disconnect=['+WIRE_COMMITMENT_SIGNED'],
|
||||
disconnect = ['+WIRE_COMMITMENT_SIGNED']
|
||||
if EXPERIMENTAL_DUAL_FUND:
|
||||
# We have to add an extra 'wire-commitment-signed' because
|
||||
# dual funding uses this for channel establishment also
|
||||
disconnect = ['=WIRE_COMMITMENT_SIGNED'] + disconnect
|
||||
|
||||
l1 = node_factory.get_node(disconnect=disconnect,
|
||||
options={'dev-no-reconnect': None},
|
||||
may_reconnect=True,
|
||||
feerates=(7500, 7500, 7500, 7500))
|
||||
|
@ -387,7 +393,12 @@ def test_payment_success_persistence(node_factory, bitcoind, executor):
|
|||
def test_payment_failed_persistence(node_factory, executor):
|
||||
# Start two nodes and open a channel.. die during payment.
|
||||
# Feerates identical so we don't get gratuitous commit to update them
|
||||
l1 = node_factory.get_node(disconnect=['+WIRE_COMMITMENT_SIGNED'],
|
||||
disconnect = ['+WIRE_COMMITMENT_SIGNED']
|
||||
if EXPERIMENTAL_DUAL_FUND:
|
||||
# We have to add an extra 'wire-commitment-signed' because
|
||||
# dual funding uses this for channel establishment also
|
||||
disconnect = ['=WIRE_COMMITMENT_SIGNED'] + disconnect
|
||||
l1 = node_factory.get_node(disconnect=disconnect,
|
||||
options={'dev-no-reconnect': None},
|
||||
may_reconnect=True,
|
||||
feerates=(7500, 7500, 7500, 7500))
|
||||
|
|
Loading…
Add table
Reference in a new issue