def start_all(db): # Backend. connect_to_backend() # API Status Poller. api_status_poller = api.APIStatusPoller() api_status_poller.daemon = True api_status_poller.start() # API Server. api_status_poller = api.APIStatusPoller() api_server = api.APIServer() api_server.daemon = True api_server.start() # Server. blocks.follow(db)
def start_all(db): # For Monacoin. altcoin.SelectParams( 'ff9f1c0116d19de7c9963845e129f9ed1bfc0b376eb54fd7afa42e0d418c8bb6') # Backend. connect_to_backend() # API Status Poller. api_status_poller = api.APIStatusPoller() api_status_poller.daemon = True api_status_poller.start() # API Server. api_server = api.APIServer() api_server.daemon = True api_server.start() # Server. blocks.follow(db)