From 33f48276db0d3ca325758cfabf02bc64af54ab5b Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 23 Jan 2015 17:12:26 +0100 Subject: [PATCH] trustedcoin: check that price does not exceed predefined value --- plugins/trustedcoin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/trustedcoin.py b/plugins/trustedcoin.py index 32a040342..ae7195630 100644 --- a/plugins/trustedcoin.py +++ b/plugins/trustedcoin.py @@ -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