do not tx._reset() in generate_channel_private_key

This commit is contained in:
Lex Berezhny 2021-02-07 13:32:54 -05:00
parent 4a20ccc28e
commit 7486ee9537
2 changed files with 1 additions and 1 deletions

View file

@ -2617,6 +2617,7 @@ class Daemon(metaclass=JSONRPCServerType):
)
txo = tx.outputs[0]
await txo.generate_channel_private_key()
tx._reset()
await tx.sign(funding_accounts)

View file

@ -450,7 +450,6 @@ class Output(InputOutput):
)
self.claim.channel.public_key_bytes = self.private_key.get_verifying_key().to_der()
self.script.generate()
self.tx_ref.tx._reset()
return self.private_key
def is_channel_private_key(self, private_key):