1
0

rm @profiler from Transaction.estimated_size

in certain situations, estimated_size is called hundreds of times, flooding the log
This commit is contained in:
SomberNight
2018-09-06 17:51:13 +02:00
parent 77aefdfe71
commit 8467f95a28

View File

@@ -1087,7 +1087,6 @@ class Transaction:
def is_final(self):
return not any([x.get('sequence', 0xffffffff - 1) < 0xffffffff - 1 for x in self.inputs()])
@profiler
def estimated_size(self):
"""Return an estimated virtual tx size in vbytes.
BIP-0141 defines 'Virtual transaction size' to be weight/4 rounded up.