mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 12:30:07 +00:00
detect RBF transactions
This commit is contained in:
parent
e2627e0944
commit
321ab10742
1 changed files with 3 additions and 0 deletions
|
@ -698,6 +698,9 @@ class Transaction:
|
|||
def get_fee(self):
|
||||
return self.input_value() - self.output_value()
|
||||
|
||||
def is_final(self):
|
||||
return not any([x.get('sequence') < 0xffffffff - 1 for x in self.inputs])
|
||||
|
||||
@classmethod
|
||||
def fee_for_size(self, relay_fee, fee_per_kb, size):
|
||||
'''Given a fee per kB in satoshis, and a tx size in bytes,
|
||||
|
|
Loading…
Add table
Reference in a new issue