follow-up prev commit
This commit is contained in:
parent
a2a25e4738
commit
e373f50596
@ -863,7 +863,8 @@ class Transaction:
|
|||||||
if not self.is_segwit():
|
if not self.is_segwit():
|
||||||
return 0
|
return 0
|
||||||
inputs = self.inputs()
|
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
|
witness_size = len(witness) // 2 + 2 # include marker and flag
|
||||||
return witness_size
|
return witness_size
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user