py-geth 4.2.0__py3-none-any.whl → 5.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
geth/utils/dag.py DELETED
@@ -1,45 +0,0 @@
1
- import os
2
- import sys
3
-
4
- MAGIC_PREFIX = b"\xfe\xca\xdd\xba\xad\xde\xe1\xfe" # 0xfee1deadbaddcafe
5
-
6
-
7
- def get_dag_file_path(revision=23, seedhash="0000000000000000", base_dir=None):
8
- if seedhash != "0000000000000000":
9
- raise NotImplementedError("Non-zero seedhashes are not supported")
10
-
11
- if base_dir is None:
12
- if sys.platform in {"darwin", "linux", "linux2", "linux3"}:
13
- base_dir = os.path.expanduser(os.path.join("~", ".ethash"))
14
- elif sys.platform in {"win32", "cygwin"}:
15
- base_dir = os.path.expanduser(
16
- os.path.join(
17
- "~",
18
- "Appdata",
19
- "Local",
20
- "Ethash",
21
- )
22
- )
23
- else:
24
- raise ValueError(f"Unknown platform: {sys.platform}")
25
-
26
- dag_filename = f"full-R{revision}-{seedhash}"
27
-
28
- dag_file_path = os.path.join(base_dir, dag_filename)
29
- return dag_file_path
30
-
31
-
32
- def get_magic_bytes(dag_file_path):
33
- with open(dag_file_path, "rb") as dag_file:
34
- return dag_file.read(8)
35
-
36
-
37
- def is_dag_generated(revision=23, seedhash="0000000000000000", base_dir=None):
38
- dag_file_path = get_dag_file_path(revision, seedhash, base_dir)
39
-
40
- if not os.path.exists(dag_file_path):
41
- return False
42
-
43
- dag_file_prefix = get_magic_bytes(dag_file_path)
44
-
45
- return dag_file_prefix == MAGIC_PREFIX
@@ -1,25 +0,0 @@
1
- geth/__init__.py,sha256=J-N66M6DHo5kaliYxKhkLQx7GvyD3pFKq1ypHaMNkYE,394
2
- geth/accounts.py,sha256=GOtfarVP5_Sd4UE5wnOS4v3roMuNpYuSB76rMUKuAP8,4422
3
- geth/chain.py,sha256=J40mLKrP3bF2JkJ5nzI1wCxLKIz0bFrc_GQ10cT9PD8,4568
4
- geth/default_blockchain_password,sha256=7ZYUjo1py5Wh_uA_WvoXQG8mPv2CiJ07tI2tOodTLi8,30
5
- geth/exceptions.py,sha256=tWYMW4D0J2wK40mbd0q9whCLfoLPsBpnZ4Vmi2Nr3T4,1037
6
- geth/genesis.json,sha256=FK_yoYu3deEV1hFP_2fD1nOAiUZ2jOLrSMgozhHXmzA,406
7
- geth/install.py,sha256=Oi1U2rlyCsuYC5WG7nv93URs9UC877YpPVLvs1ke4W8,11938
8
- geth/main.py,sha256=b-5bqmj99uqce6jT-H3EsDFvTDRM4NZ-9BF3LY5IbnA,976
9
- geth/mixins.py,sha256=8eFyRIJ7XGgFYRNPUCSoRJVhAoWynVG9j7FdLLyinbE,4672
10
- geth/process.py,sha256=cPUnBmfsNHrUxSCOG2WDdSXCsh90mcQyY3ECuqz8dQU,7988
11
- geth/reset.py,sha256=gvlWTs-q_k112dRFSe1aUzHA306vXyxQI5ZQFgfs3Nc,2193
12
- geth/wrapper.py,sha256=2CdqTSGPP8-faSIuVHRQmj5uH_kxL_h94o8B8BqLA-w,8684
13
- geth/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
- geth/utils/dag.py,sha256=P4LnNV88dMCHgfAF-F525QeMZJww-4X6faEq-tV6p34,1370
15
- geth/utils/encoding.py,sha256=FCiH9pZBt9T5r9K6s_EMLqpX1zMJBFwfC1CHXauV1Qg,1113
16
- geth/utils/filesystem.py,sha256=h-9aNxRrQ_VksKFI0eqm4ZgJwwhjqqpOfywe_FFYJEQ,1388
17
- geth/utils/networking.py,sha256=BwiBPrz__LL5qNvhPvX52zJSDOJ52BZ9m2n4cvszVY4,1209
18
- geth/utils/proc.py,sha256=V4qadrH-zIt14EkKL7OrClwVRJAObKm5XEKjL4_G-CU,1584
19
- geth/utils/thread.py,sha256=pSZf5TQXy1S31sy57ciewovy-DZWJKPLN1PDqqvpn8A,219
20
- geth/utils/timeout.py,sha256=HsDHFMruHKhJDGNDyM5BqKGDxNwbg_a8YAQe2wdp6l4,1780
21
- py_geth-4.2.0.dist-info/LICENSE,sha256=kUYPqABLwavFVY_YsjHUmfvCFNnMRwMd3akYH1rHTaY,1095
22
- py_geth-4.2.0.dist-info/METADATA,sha256=bXTDsGajxpLzgAgAp816o5T0_K7axEdviTPdx3NCf4E,9416
23
- py_geth-4.2.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
24
- py_geth-4.2.0.dist-info/top_level.txt,sha256=o8Gvkxt3xBR7BNG2p9_G1J3GnGlTrBMEhYJBdAzBWDU,5
25
- py_geth-4.2.0.dist-info/RECORD,,