INNER CODE UNIT · Python

__getitem__

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

    def __getitem__(self, commitment):
        """Get commitment timestamps(s)"""
        return self.db[commitment]


class BackupServer(socketserver.ThreadingMixIn, http.server.HTTPServer):
    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.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…