lnhtlc: remove unnecessary double application of pending feerate
This commit is contained in:
parent
3887bf57fd
commit
4e95f5e4c0
@ -188,7 +188,6 @@ class HTLCStateMachine(PrintError):
|
||||
self.pending_ack_fee_update = self.pending_fee_update
|
||||
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)
|
||||
|
||||
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_fee_update = None
|
||||
|
||||
with PendingFeerateApplied(self):
|
||||
preimage_hex = self.pending_local_commitment.serialize_preimage(0)
|
||||
pre_hash = Hash(bfh(preimage_hex))
|
||||
if not ecc.verify_signature(self.remote_config.multisig_key.pubkey, sig, pre_hash):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user