From 1e87f2ed31b14d2f7b9301f47dfb250aba4ecb84 Mon Sep 17 00:00:00 2001 From: nolash Date: Wed, 30 Jun 2021 17:22:26 +0200 Subject: [PATCH] Consider faucet amount in verify balance --- apps/data-seeding/verify.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/data-seeding/verify.py b/apps/data-seeding/verify.py index bca6ce95..09813d9b 100644 --- a/apps/data-seeding/verify.py +++ b/apps/data-seeding/verify.py @@ -254,6 +254,10 @@ class Verifier: if len(k) > 7 and k[:7] == 'verify_': logg.debug('verifier has verify method {}'.format(k)) verifymethods.append(k[7:]) + o = self.faucet_tx_factory.token_amount(self.faucet_address, sender_address=ZERO_ADDRESS) + r = self.conn.do(o) + self.faucet_amount = self.faucet_tx_factory.parse_token_amount(r) + logg.info('faucet amount set to {} at verify initialization time'.format(self.faucet_amount)) self.state = VerifierState(verifymethods, active_tests=active_tests) @@ -284,6 +288,7 @@ class Verifier: except ValueError: actual_balance = int(r) balance = int(balance / 1000000) * 1000000 + balance += self.faucet_amount logg.debug('balance for {}: {}'.format(address, balance)) if balance != actual_balance: raise VerifierError((actual_balance, balance), 'balance')