Browse Source

rm more cruft from test_lnchannel

follow-up e54c69b861
master
SomberNight 6 years ago
parent
commit
6703521f56
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 7
      electrum/tests/test_lnchannel.py

7
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

Loading…
Cancel
Save