mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 09:21:39 +00:00
trustedcoin: check that price does not exceed predefined value
This commit is contained in:
parent
622b9d13ee
commit
33f48276db
1 changed files with 1 additions and 0 deletions
|
@ -481,6 +481,7 @@ class Plugin(BasePlugin):
|
|||
return 0
|
||||
# trustedcoin won't charge if the total inputs is lower than their fee
|
||||
price = int(self.price_per_tx.get(1))
|
||||
assert price <= 50000
|
||||
if tx.input_value() < price:
|
||||
print_error("not charging for this tx")
|
||||
return 0
|
||||
|
|
Loading…
Add table
Reference in a new issue