follow-up prev commit

This commit is contained in:
SomberNight 2017-11-22 01:15:01 +01:00
parent a2a25e4738
commit e373f50596
1 changed files with 2 additions and 1 deletions

View File

@ -863,7 +863,8 @@ class Transaction:
if not self.is_segwit():
return 0
inputs = self.inputs()
witness = ''.join(self.serialize_witness(x, True) for x in inputs)
estimate = not self.is_complete()
witness = ''.join(self.serialize_witness(x, estimate) for x in inputs)
witness_size = len(witness) // 2 + 2 # include marker and flag
return witness_size