Skip to content

Commit 59be468

Browse files
ralexstokescburgdorf
authored andcommitted
Medley of typo fixes
1 parent 8841a69 commit 59be468

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

docs/guides/trinity/architecture.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ The database process exposes several chain-related operations, all of which are
9999
single process. These aren't necessarily low-level get/set operations, but also include
100100
higher-level APIs, such as the :func:`~eth.chains.base.Chain.import_block` API.
101101

102-
The way this works is by facilitazing Pythons :class:`~multiprocessing.managers.BaseManager` API
102+
The way this works is by utilizing Python's :class:`~multiprocessing.managers.BaseManager` API
103103
and exposing several :class:`~multiprocessing.managers.BaseProxy` proxies to coordinate
104104
inter-process access to these APIs.
105105

@@ -109,17 +109,17 @@ that all database reads and writes are done by a single process.
109109
Networking Process
110110
------------------
111111

112-
The networking process is what kicks of the peer to peer communication and starts the syncing
112+
The networking process is what kicks off the peer to peer communication and starts the syncing
113113
process. It does so by running an instance of
114114
:func:`~trinity.nodes.base.Node` in an event loop.
115115

116116
Notice that the instance of :func:`~trinity.nodes.base.Node` has access to the APIs that the
117-
database processes exposes. In pracice that means, that the network process controls the
118-
connections to other peers, starts of the syncing process but will call APIs that run inside
117+
database processes exposes. In practice that means that the network process controls the
118+
connections to other peers and starts the syncing process but will call APIs that run inside
119119
the database processes when it comes to actual importing of blocks or reading and writing of other
120120
things from the database.
121121

122-
The networking process also host an instance of the
122+
The networking process also hosts an instance of the
123123
:class:`~trinity.extensibility.plugin_manager.PluginManager` to run plugins that need to deeply
124124
integrate with the networking process (Further reading:
125125
:doc:`Writing Plugins</guides/trinity/writing_plugins>`).

docs/guides/trinity/writing_plugins.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Plugin state: ``NOT_READY``
129129

130130
Every plugin starts out being in the ``NOT_READY`` state. This state begins with the instantiation
131131
of the plugin and lasts until the :meth:`~trinity.extensibility.plugin.BasePlugin.on_ready` hook
132-
was called which happens as soon the core infrastructure of Trinity is ready.
132+
was called which happens as soon as the core infrastructure of Trinity is ready.
133133

134134
Plugin state: ``READY``
135135
-----------------------
@@ -190,7 +190,7 @@ on, is a good way to deal with that. Implementing
190190
:meth:`~trinity.extensibility.plugin.BasePlugin.configure_parser` enables us to do exactly that.
191191

192192
This method is called when Trinity starts and bootstraps the plugin system, in other words,
193-
**before** the start of any plugin. It is passed a :class:`~argparse.ArgumentParser` as well as a
193+
**before** the start of any plugin. It is passed an :class:`~argparse.ArgumentParser` as well as a
194194
:class:`~argparse._SubParsersAction` which allows it to amend the configuration of Trinity's
195195
command line arguments in many different ways.
196196

@@ -332,7 +332,7 @@ Check out the `official documentation on entry points <https://packaging.python.
332332
for a deeper explanation.
333333

334334
A plugin where the ``setup.py`` file is configured as described can be installed by
335-
``pip install <package-name>``` and immediately becomes available as a plugin in Trinity.
335+
``pip install <package-name>`` and immediately becomes available as a plugin in Trinity.
336336

337337
.. note::
338338

eth/chains/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ def import_block(self,
692692
693693
- the imported block
694694
- a tuple of blocks which are now part of the canonical chain.
695-
- a tuple of blocks which are were canonical and now are no longer canonical.
695+
- a tuple of blocks which were canonical and now are no longer canonical.
696696
"""
697697

698698
try:

eth/db/chain.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def _persist_uncles(db: BaseDB, uncles: Tuple[BlockHeader]) -> Hash32:
284284
#
285285
def add_receipt(self, block_header: BlockHeader, index_key: int, receipt: Receipt) -> Hash32:
286286
"""
287-
Adds the given receipt to the provide block header.
287+
Adds the given receipt to the provided block header.
288288
289289
Returns the updated `receipts_root` for updated block header.
290290
"""
@@ -297,7 +297,7 @@ def add_transaction(self,
297297
index_key: int,
298298
transaction: 'BaseTransaction') -> Hash32:
299299
"""
300-
Adds the given transaction to the provide block header.
300+
Adds the given transaction to the provided block header.
301301
302302
Returns the updated `transactions_root` for updated block header.
303303
"""
@@ -317,7 +317,7 @@ def get_block_transactions(
317317

318318
def get_block_transaction_hashes(self, block_header: BlockHeader) -> Iterable[Hash32]:
319319
"""
320-
Returns an iterable of the transaction hashes from th block specified
320+
Returns an iterable of the transaction hashes from the block specified
321321
by the given block header.
322322
"""
323323
return self._get_block_transaction_hashes(self.db, block_header)

eth/vm/computation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,14 +544,14 @@ def __exit__(self, exc_type: None, exc_value: None, traceback: None) -> None:
544544
@abstractmethod
545545
def apply_message(self) -> 'BaseComputation':
546546
"""
547-
Execution of an VM message.
547+
Execution of a VM message.
548548
"""
549549
raise NotImplementedError("Must be implemented by subclasses")
550550

551551
@abstractmethod
552552
def apply_create_message(self) -> 'BaseComputation':
553553
"""
554-
Execution of an VM message to create a new contract.
554+
Execution of a VM message to create a new contract.
555555
"""
556556
raise NotImplementedError("Must be implemented by subclasses")
557557

0 commit comments

Comments
 (0)