INNER CODE UNIT · Python

__init__

opentimestamps/opentimestamps-server · otsserver/backup.py:215

    def __init__(self, server_address, calendar):
        class rpc_request_handler(RPCRequestHandler):
            pass
        rpc_request_handler.calendar = calendar

        super().__init__(server_address, rpc_request_handler)

    def serve_forever(self):
        super().serve_forever()


# This is the thread responsible for asking the chunks to the running calendar and import them in the db.
# The main script allow to launch 1 thread of this for every calendar to backup, thus a backup server could
# theoretically serve timestamp in place of every calendar server which supports this incremental live backup mechanism
class AskBackup(threading.Thread):

    def __init__(self, db, calendar_url, base_path, btc_net):
        self.db = db

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…