Skip to content

Commit

Permalink
chore: fix some typos in comments
Browse files Browse the repository at this point in the history
Signed-off-by: cuibuwei <cuibuwei@gmail.com>
  • Loading branch information
cuibuwei authored and SamWilsn committed May 16, 2024
1 parent 8affa29 commit 3bece82
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion network-upgrades/retrospectives/london.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Solution: Do a `debug.setHead{X-1)` to jump to before the fork. This internally

##### Syncing in the presence of a wrong higher-td chain

You are syncing a `geth`-node, and a fork has occurred at block `X`. Since the fork has already happened, and the erroneous chain has higher TD, you will most likely wind up on the 'wrong' side of the chain, with a pivot block `X+M`. If this happens, you _do not have_ any state for blocks `<X+M`, so you _cannot_ do `debug.setHead` to to resolve the situation.
You are syncing a `geth`-node, and a fork has occurred at block `X`. Since the fork has already happened, and the erroneous chain has higher TD, you will most likely wind up on the 'wrong' side of the chain, with a pivot block `X+M`. If this happens, you _do not have_ any state for blocks `<X+M`, so you _cannot_ do `debug.setHead` to resolve the situation.

In this case, a resync is required. However, you need to prevent geth from winding up on the wrong side of the fork. This can be done with the `whitelist` command line parameter.
```
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/crypto/finite_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class GaloisField(tuple, Field):
tuple of the non-leading coefficients of the defining polynomial. For
example `x^3 + 2x^2 + 3x + 4` is `(2, 3, 4)`.
In practice the polynomial is likely to be be sparse and you should overload
In practice the polynomial is likely to be sparse and you should overload
the `__mul__()` function to take advantage of this fact.
"""

Expand Down
2 changes: 1 addition & 1 deletion tests/test_rlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def test_ethtest_fixtures_for_rlp_encoding(
"raw_data, encoded_data",
ethtest_fixtures_as_pytest_fixtures("RandomRLPTests/example.json"),
)
def test_ethtest_fixtures_for_successfull_rlp_decoding(
def test_ethtest_fixtures_for_successfully_rlp_decoding(
raw_data: Bytes, encoded_data: Bytes
) -> None:
decoded_data = rlp.decode(encoded_data)
Expand Down

0 comments on commit 3bece82

Please sign in to comment.