Browse Source

lnhtlc: remove unnecessary double application of pending feerate

regtest_lnd
Janus 7 years ago
committed by SomberNight
parent
commit
a43fc875db
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      lib/lnhtlc.py

2
lib/lnhtlc.py

@ -188,7 +188,6 @@ class HTLCStateMachine(PrintError):
self.pending_ack_fee_update = self.pending_fee_update self.pending_ack_fee_update = self.pending_fee_update
self.pending_fee_update = None self.pending_fee_update = None
with PendingFeerateApplied(self):
sig_64 = sign_and_get_sig_string(self.pending_remote_commitment, self.local_config, self.remote_config) sig_64 = sign_and_get_sig_string(self.pending_remote_commitment, self.local_config, self.remote_config)
their_remote_htlc_privkey_number = derive_privkey( their_remote_htlc_privkey_number = derive_privkey(
@ -238,7 +237,6 @@ class HTLCStateMachine(PrintError):
self.pending_ack_fee_update = self.pending_fee_update self.pending_ack_fee_update = self.pending_fee_update
self.pending_fee_update = None self.pending_fee_update = None
with PendingFeerateApplied(self):
preimage_hex = self.pending_local_commitment.serialize_preimage(0) preimage_hex = self.pending_local_commitment.serialize_preimage(0)
pre_hash = Hash(bfh(preimage_hex)) pre_hash = Hash(bfh(preimage_hex))
if not ecc.verify_signature(self.remote_config.multisig_key.pubkey, sig, pre_hash): if not ecc.verify_signature(self.remote_config.multisig_key.pubkey, sig, pre_hash):

Loading…
Cancel
Save