def blockchain_sync(persistence_module, mock_w3): red = MockRedis() s = BlockchainSyncer(w3=mock_w3, red=red, persistence=persistence_module) return s
def persistence_module(db_session): red = MockRedis() return SQLPersistenceInterface(red=red, session=db_session, first_block_hash='deadbeef01')
def supervisor(persistence_module, processor): red = MockRedis() return TransactionSupervisor(red, persistence_module, processor)