Browse Source
rm @profiler from Transaction.estimated_size
in certain situations, estimated_size is called hundreds of times, flooding the log
3.3.3.1
SomberNight
6 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
0 additions and
1 deletions
-
electrum/transaction.py
|
@ -1087,7 +1087,6 @@ class Transaction: |
|
|
def is_final(self): |
|
|
def is_final(self): |
|
|
return not any([x.get('sequence', 0xffffffff - 1) < 0xffffffff - 1 for x in self.inputs()]) |
|
|
return not any([x.get('sequence', 0xffffffff - 1) < 0xffffffff - 1 for x in self.inputs()]) |
|
|
|
|
|
|
|
|
@profiler |
|
|
|
|
|
def estimated_size(self): |
|
|
def estimated_size(self): |
|
|
"""Return an estimated virtual tx size in vbytes. |
|
|
"""Return an estimated virtual tx size in vbytes. |
|
|
BIP-0141 defines 'Virtual transaction size' to be weight/4 rounded up. |
|
|
BIP-0141 defines 'Virtual transaction size' to be weight/4 rounded up. |
|
|