Compare commits
10 Commits
lash/traff
...
lash/allow
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a5f9eace3f
|
||
|
|
a9f4f1ccda
|
||
|
|
67eb3137cf
|
||
|
|
ae870d175f
|
||
|
|
2b43f8a47d
|
||
|
|
a8291f49ab
|
||
|
|
2e3f8a0bf1 | ||
|
|
407b29cef5
|
||
|
|
75c6609dff
|
||
|
|
6a45d5faa7
|
@@ -10,7 +10,7 @@ import redis
|
||||
import celery
|
||||
from cic_eth_registry.registry import CICRegistry
|
||||
from chainsyncer.backend.memory import MemBackend
|
||||
from chainsyncer.driver.head import HeadSyncer
|
||||
from chainsyncer.driver import HeadSyncer
|
||||
from chainlib.eth.connection import EthHTTPConnection
|
||||
from chainlib.chain import ChainSpec
|
||||
from chainlib.eth.gas import RPCGasOracle
|
||||
@@ -24,7 +24,6 @@ from cic_base import (
|
||||
rpc,
|
||||
signer as signer_funcs,
|
||||
)
|
||||
from cic_base.eth.syncer import chain_interface
|
||||
|
||||
# local imports
|
||||
#import common
|
||||
@@ -121,7 +120,7 @@ def main():
|
||||
'api_queue': config.get('_CELERY_QUEUE'),
|
||||
}
|
||||
|
||||
syncer = HeadSyncer(syncer_backend, chain_interface, block_callback=handler.refresh)
|
||||
syncer = HeadSyncer(syncer_backend, block_callback=handler.refresh)
|
||||
syncer.add_filter(handler)
|
||||
syncer.loop(1, conn)
|
||||
|
||||
|
||||
@@ -254,10 +254,6 @@ 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)
|
||||
|
||||
@@ -288,7 +284,6 @@ 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')
|
||||
|
||||
Reference in New Issue
Block a user