Add chainqueue settings

This commit is contained in:
lash 2022-04-26 21:28:31 +00:00
parent 18d10dc8b7
commit e54f03a8f6
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -80,11 +80,25 @@ class ChaindSettings(ChainsyncerSettings):
self.process_sync_range(config)
def process_socket(self, config):
socket_path = config.get('SESSION_SOCKET_PATH')
if socket_path == None:
socket_path = os.path.join(self.o['SESSION_RUNTIME_DIR'], 'chaind.sock')
self.o['SESSION_SOCKET_PATH'] = socket_path
def process_dispatch(self, config):
self.o['SESSION_DISPATCH_DELAY'] = 0.01
def process(self, config):
self.process_common(config)
self.process_session(config)
self.process_socket(config)
if self.include_sync:
self.process_sync(config)
if self.include_queue:
self.process_dispatch(config)
def __str__(self):