commit 6703521f5610df3f267c35289326b7f6f4c637bd
parent 6161853941399b4746312aed7ffc6f0020ad027a
Author: SomberNight <somber.night@protonmail.com>
Date: Thu, 27 Feb 2020 02:53:03 +0100
rm more cruft from test_lnchannel
follow-up e54c69b861c2990adf9cf618b68c6f1c7dd3ebea
Diffstat:
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/electrum/tests/test_lnchannel.py b/electrum/tests/test_lnchannel.py
@@ -151,15 +151,12 @@ def create_test_channels(feerate=6000, local=None, remote=None):
assert len(a_htlc_sigs) == 0
assert len(b_htlc_sigs) == 0
- alice.config[LOCAL].current_commitment_signature = sig_from_bob
- bob.config[LOCAL].current_commitment_signature = sig_from_alice
+ alice.open_with_first_pcp(bob_first, sig_from_bob)
+ bob.open_with_first_pcp(alice_first, sig_from_alice)
alice_second = lnutil.secret_to_pubkey(int.from_bytes(lnutil.get_per_commitment_secret_from_seed(alice_seed, lnutil.RevocationStore.START_INDEX - 1), "big"))
bob_second = lnutil.secret_to_pubkey(int.from_bytes(lnutil.get_per_commitment_secret_from_seed(bob_seed, lnutil.RevocationStore.START_INDEX - 1), "big"))
- alice.open_with_first_pcp(bob_first, sig_from_bob)
- bob.open_with_first_pcp(alice_first, sig_from_alice)
-
# from funding_locked:
alice.config[REMOTE].next_per_commitment_point = bob_second
bob.config[REMOTE].next_per_commitment_point = alice_second