Skip to content

Commit

Permalink
mozilla typo fixes (Chia-Network#5303)
Browse files Browse the repository at this point in the history
* refactor is_fee_enough

* fix typo

Co-authored-by: Nikolaj Kuntner <>
  • Loading branch information
Nikolaj-K authored May 24, 2021
1 parent 6f06f04 commit 9aecb3c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions chia/daemon/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from chia.cmds.init_funcs import chia_init
from chia.daemon.windows_signal import kill
from chia.server.server import ssl_context_for_root, ssl_context_for_server
from chia.ssl.create_ssl import get_mozzila_ca_crt
from chia.ssl.create_ssl import get_mozilla_ca_crt
from chia.util.chia_logging import initialize_logging
from chia.util.config import load_config
from chia.util.json_util import dict_to_json_str
Expand Down Expand Up @@ -51,8 +51,8 @@
async def fetch(url: str):
async with ClientSession() as session:
try:
mozzila_root = get_mozzila_ca_crt()
ssl_context = ssl_context_for_root(mozzila_root)
mozilla_root = get_mozilla_ca_crt()
ssl_context = ssl_context_for_root(mozilla_root)
response = await session.get(url, ssl=ssl_context)
if not response.ok:
log.warning("Response not OK.")
Expand Down
2 changes: 1 addition & 1 deletion chia/ssl/create_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_chia_ca_crt_key() -> Tuple[Any, Any]:
return crt, key


def get_mozzila_ca_crt() -> str:
def get_mozilla_ca_crt() -> str:
mozilla_path = Path(__file__).parent.parent.parent.absolute() / "mozilla-ca/cacert.pem"
return str(mozilla_path)

Expand Down
6 changes: 3 additions & 3 deletions chia/wallet/util/backup_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from cryptography.fernet import Fernet

from chia.server.server import ssl_context_for_root
from chia.ssl.create_ssl import get_mozzila_ca_crt
from chia.ssl.create_ssl import get_mozilla_ca_crt
from chia.util.byte_types import hexstr_to_bytes
from chia.util.hash import std_hash
from chia.wallet.derive_keys import master_sk_to_backup_sk
Expand Down Expand Up @@ -72,8 +72,8 @@ def get_backup_info(file_path, private_key):


async def post(session: aiohttp.ClientSession, url: str, data: Any):
mozzila_root = get_mozzila_ca_crt()
ssl_context = ssl_context_for_root(mozzila_root)
mozilla_root = get_mozilla_ca_crt()
ssl_context = ssl_context_for_root(mozilla_root)
response = await session.post(url, json=data, ssl=ssl_context)
return await response.json()

Expand Down

0 comments on commit 9aecb3c

Please sign in to comment.