From efce411b8ddc60e8787170b7790900fdf7c09b80 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Wed, 25 Oct 2023 11:40:03 +0300 Subject: [PATCH] refactor: drop excessive conversions --- test/functional/feature_governance.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/functional/feature_governance.py b/test/functional/feature_governance.py index 149fb08460cbd..3c70cd2a1e66b 100755 --- a/test/functional/feature_governance.py +++ b/test/functional/feature_governance.py @@ -62,14 +62,14 @@ def check_superblock(self): coinbase_outputs = self.nodes[0].getblock(self.nodes[0].getbestblockhash(), 2)["tx"][0]["vout"] payments_found = 0 for txout in coinbase_outputs: - if txout["value"] == satoshi_round(str(self.p0_amount)) and txout["scriptPubKey"]["addresses"][0] == self.p0_payout_address: + if txout["value"] == self.p0_amount and txout["scriptPubKey"]["addresses"][0] == self.p0_payout_address: payments_found += 1 - if txout["value"] == satoshi_round(str(self.p1_amount)) and txout["scriptPubKey"]["addresses"][0] == self.p1_payout_address: + if txout["value"] == self.p1_amount and txout["scriptPubKey"]["addresses"][0] == self.p1_payout_address: if self.p1_hash > self.p2_hash: payments_found += 1 else: assert False - if txout["value"] == satoshi_round(str(self.p2_amount)) and txout["scriptPubKey"]["addresses"][0] == self.p2_payout_address: + if txout["value"] == self.p2_amount and txout["scriptPubKey"]["addresses"][0] == self.p2_payout_address: if self.p2_hash > self.p1_hash: payments_found += 1 else: