Fix typos in comments and strings (#2542)

Co-authored-by: al-munazzim <al-munazzim@users.noreply.github.com>
This commit is contained in:
al-munazzim 2026-02-10 21:36:09 +01:00 committed by GitHub
parent c0655d3696
commit 621dbd23ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 9 additions and 9 deletions

View file

@ -397,7 +397,7 @@ def endless_loop(
break
except Exception as e:
logger.debug(
f"Caught {e.__module__}, Couldn't mine, assume SIGTERM occured => exiting!"
f"Caught {e.__module__}, Couldn't mine, assume SIGTERM occurred => exiting!"
)
break
if prevent_mining_file.is_file():

View file

@ -143,7 +143,7 @@ def _write_json_file(content, path, lock=None):
with open(path, "w") as f:
json.dump(content, f, indent=4)
# check if write was sucessful
# check if write was successful
with open(path, "r") as f:
c = json.load(f)

View file

@ -49,7 +49,7 @@ class Btcd_conn:
@property
def ipaddress(self):
if self._ipaddress is None:
raise Exception("ipadress is none")
raise Exception("ip_address is none")
else:
return self._ipaddress

View file

@ -9,7 +9,7 @@ logger = logging.getLogger(__name__)
class FeeEstimationResult:
"""A tiny object to pass the Fee Estimation Results around including a list of errors which might have occured"""
"""A tiny object to pass the Fee Estimation Results around including a list of errors which might have occurred"""
def __init__(self, result):
self.result = result

View file

@ -568,7 +568,7 @@ class TxList(dict, AbstractTxListContext):
full=True will add a "hex" key
decode=True will decode transaction similar to Core's decoderawtransaction
"""
# if we don't know blockheigth or transaction
# if we don't know blockheight or transaction
# we invalidate which results in asking core
if txid in self and self[txid]["blockheight"] == None:
self.invalidate(txid)

View file

@ -16,8 +16,8 @@ class WebsocketServer:
"""
A forever lived websockets server in a different thread.
The server has 2 main functions:
1. Recieve messages from webbrowser websocket connections and call notification_manager.create_and_show
2. Recieve messages (notifications) from python websocket connection (broadcaster) and send them to the webbrowser websocket connections
1. Receive messages from webbrowser websocket connections and call notification_manager.create_and_show
2. Receive messages (notifications) from python websocket connection (broadcaster) and send them to the webbrowser websocket connections
Each message must contain a user_token, which is checked against user_manager.user.websocket_token to make sure this is a legitimate user.
Otherwise the user_token will not be found in user_manager.user.websocket_token and rejected.
Before the python websocket connection is established, the set_as_broadcaster method should be called to inform self that this user_token will be a broadcaster
@ -269,12 +269,12 @@ class WebsocketServer:
if user_token in self.get_broadcaster_tokens():
if self.verbose_debug:
logger.debug(
f"message from user with broadcaster_token recieved. Sending to websockets"
f"message from user with broadcaster_token received. Sending to websockets"
)
self._send_to_websockets(message_dictionary, user_token)
elif user:
if self.verbose_debug:
logger.debug(f"message from user recieved. Creating Notification")
logger.debug(f"message from user received. Creating Notification")
self._create_notification(message_dictionary, user)
else:
logger.warning(