1
0

transaction: fix remove_signatures

closes #5491
This commit is contained in:
SomberNight
2019-07-05 21:16:58 +02:00
parent cc9ad3ae90
commit aadde9be17
2 changed files with 43 additions and 13 deletions

View File

@@ -688,7 +688,10 @@ class Transaction:
def remove_signatures(self):
for txin in self.inputs():
txin['signatures'] = [None] * len(txin['signatures'])
txin['scriptSig'] = None
txin['witness'] = None
assert not self.is_complete()
self.raw = None
def deserialize(self, force_full_parse=False):
if self.raw is None: