From 3cfe3edfa9c654576558235d33f22cc2156783c8 Mon Sep 17 00:00:00 2001 From: Sergi Delgado Segura Date: Mon, 17 Feb 2020 15:52:10 +0100 Subject: [PATCH] Typos and PISA-> teos --- apps/cli/README.md | 2 +- apps/cli/wt_cli.py | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/cli/README.md b/apps/cli/README.md index 429549d..1f1f023 100644 --- a/apps/cli/README.md +++ b/apps/cli/README.md @@ -53,7 +53,7 @@ The API will return a `application/json` HTTP response code `200/OK` if the appo The alpha release does not have authentication, payments nor rate limiting, therefore some self imposed restrictions apply: - `start_time` should be within the next 6 blocks `[current_time+1, current_time+6]`. -- `end_time` cannot be bigger than (roughtly) a month. That is `4320` blocks on top of `start_time`. +- `end_time` cannot be bigger than (roughly) a month. That is `4320` blocks on top of `start_time`. - `encrypted_blob`s are limited to `2 kib`. diff --git a/apps/cli/wt_cli.py b/apps/cli/wt_cli.py index bafc7ef..a0fa971 100644 --- a/apps/cli/wt_cli.py +++ b/apps/cli/wt_cli.py @@ -165,7 +165,7 @@ def add_appointment(args): logger.error("The returned appointment's signature is invalid") return False - logger.info("Appointment accepted and signed by PISA") + logger.info("Appointment accepted and signed by the Eye of Satoshi") # All good, store appointment and signature return save_appointment_receipt(appointment.to_dict(), signature) @@ -232,18 +232,18 @@ def post_appointment(data): None otherwise. """ - logger.info("Sending appointment to PISA") + logger.info("Sending appointment to the Eye of Satoshi") try: add_appointment_endpoint = "{}:{}".format(pisa_api_server, pisa_api_port) return requests.post(url=add_appointment_endpoint, json=json.dumps(data), timeout=5) except ConnectTimeout: - logger.error("Can't connect to PISA API. Connection timeout") + logger.error("Can't connect to the Eye of Satoshi's API. Connection timeout") return None except ConnectionError: - logger.error("Can't connect to PISA API. Server cannot be reached") + logger.error("Can't connect to the Eye of Satoshi's API. Server cannot be reached") return None except requests.exceptions.InvalidSchema: @@ -353,11 +353,11 @@ def get_appointment(locator): return r.json() except ConnectTimeout: - logger.error("Can't connect to PISA API. Connection timeout") + logger.error("Can't connect to the Eye of Satoshi's API. Connection timeout") return None except ConnectionError: - logger.error("Can't connect to PISA API. Server cannot be reached") + logger.error("Can't connect to the Eye of Satoshi's API. Server cannot be reached") return None except requests.exceptions.InvalidSchema: @@ -372,8 +372,8 @@ def show_usage(): "USAGE: " "\n\tpython wt_cli.py [global options] command [command options] [arguments]" "\n\nCOMMANDS:" - "\n\tadd_appointment \tRegisters a json formatted appointment to the PISA server." - "\n\tget_appointment \tGets json formatted data about an appointment from the PISA server." + "\n\tadd_appointment \tRegisters a json formatted appointment with the tower." + "\n\tget_appointment \tGets json formatted data about an appointment from the tower." "\n\thelp \t\t\tShows a list of commands or help for a specific command." "\n\nGLOBAL OPTIONS:" "\n\t-s, --server \tAPI server where to send the requests. Defaults to https://teos.pisa.watch (modifiable in "