Browse Source

follow-up prev commit

3.0.x
SomberNight 7 years ago
parent
commit
e373f50596
  1. 3
      lib/transaction.py

3
lib/transaction.py

@ -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

Loading…
Cancel
Save