Skip to content

Commit

Permalink
Fix some typos (spesmilo#245)
Browse files Browse the repository at this point in the history
* Fix typos

* Fix typos
  • Loading branch information
vuittont60 authored Jan 8, 2024
1 parent 97a016c commit 77b60f3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion contrib/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# example of Dockerfile that installs spesmilo electrumx 1.16.0
# ENV variables can be overriden on the `docker run` command
# ENV variables can be overridden on the `docker run` command

FROM python:3.9.16-bullseye AS builder

Expand Down
2 changes: 1 addition & 1 deletion electrumx/lib/tx.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ def _is_anon_input(self):
self.script[1] == self.OP_ANON_MARKER)

def is_generation(self):
# Transactions comming in from stealth addresses are seen by
# Transactions coming in from stealth addresses are seen by
# the blockchain as newly minted coins. The reverse, where coins
# are sent TO a stealth address, are seen by the blockchain as
# a coin burn.
Expand Down
2 changes: 1 addition & 1 deletion electrumx/server/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async def _send_data(self, data):
async def _send(self, payload, processor):
'''Send a payload to be converted to JSON.
Handles temporary connection issues. Daemon reponse errors
Handles temporary connection issues. Daemon response errors
are raise through DaemonError.
'''
def log_error(error):
Expand Down
2 changes: 1 addition & 1 deletion electrumx/server/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ async def rpc_daemon_url(self, daemon_url):
try:
self.daemon.set_url(daemon_url)
except Exception as e:
raise RPCError(BAD_REQUEST, f'an error occured: {e!r}')
raise RPCError(BAD_REQUEST, f'an error occurred: {e!r}')
return f'now using daemon at {self.daemon.logged_url()}'

async def rpc_stop(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/server/test_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async def notify(height, touched):
await n.start(5, notify)

# Suppose a gets in block 6 and blocks 7,8 found right after and
# the block processer processes them together.
# the block processor processes them together.
await n.on_mempool({'a'}, 5)
assert notified == [(5, set()), (5, {'a'})]
# Mempool refreshes with daemon on block 6
Expand Down

0 comments on commit 77b60f3

Please sign in to comment.