py-geth 5.0.0b1__py3-none-any.whl → 5.0.0b3__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/genesis.json +1 -1
- geth/install.py +8 -0
- geth/types.py +7 -1
- geth/utils/validation.py +8 -1
- geth/wrapper.py +3 -0
- {py_geth-5.0.0b1.dist-info → py_geth-5.0.0b3.dist-info}/METADATA +5 -5
- {py_geth-5.0.0b1.dist-info → py_geth-5.0.0b3.dist-info}/RECORD +10 -10
- {py_geth-5.0.0b1.dist-info → py_geth-5.0.0b3.dist-info}/WHEEL +1 -1
- {py_geth-5.0.0b1.dist-info → py_geth-5.0.0b3.dist-info}/LICENSE +0 -0
- {py_geth-5.0.0b1.dist-info → py_geth-5.0.0b3.dist-info}/top_level.txt +0 -0
geth/genesis.json
CHANGED
@@ -24,6 +24,6 @@
|
|
24
24
|
"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
25
25
|
"gasLimit": "0x47e7c4",
|
26
26
|
"difficulty": "0x0",
|
27
|
-
"
|
27
|
+
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
28
28
|
"alloc": {}
|
29
29
|
}
|
geth/install.py
CHANGED
@@ -32,6 +32,8 @@ V1_14_2 = "v1.14.2"
|
|
32
32
|
V1_14_3 = "v1.14.3"
|
33
33
|
V1_14_4 = "v1.14.4"
|
34
34
|
V1_14_5 = "v1.14.5"
|
35
|
+
V1_14_6 = "v1.14.6"
|
36
|
+
V1_14_7 = "v1.14.7"
|
35
37
|
|
36
38
|
|
37
39
|
LINUX = "linux"
|
@@ -322,6 +324,8 @@ install_v1_14_2 = functools.partial(install_from_source_code_release, V1_14_2)
|
|
322
324
|
install_v1_14_3 = functools.partial(install_from_source_code_release, V1_14_3)
|
323
325
|
install_v1_14_4 = functools.partial(install_from_source_code_release, V1_14_4)
|
324
326
|
install_v1_14_5 = functools.partial(install_from_source_code_release, V1_14_5)
|
327
|
+
install_v1_14_6 = functools.partial(install_from_source_code_release, V1_14_6)
|
328
|
+
install_v1_14_7 = functools.partial(install_from_source_code_release, V1_14_7)
|
325
329
|
|
326
330
|
|
327
331
|
INSTALL_FUNCTIONS = {
|
@@ -331,6 +335,8 @@ INSTALL_FUNCTIONS = {
|
|
331
335
|
V1_14_3: install_v1_14_3,
|
332
336
|
V1_14_4: install_v1_14_4,
|
333
337
|
V1_14_5: install_v1_14_5,
|
338
|
+
V1_14_6: install_v1_14_6,
|
339
|
+
V1_14_7: install_v1_14_7,
|
334
340
|
},
|
335
341
|
OSX: {
|
336
342
|
V1_14_0: install_v1_14_0,
|
@@ -338,6 +344,8 @@ INSTALL_FUNCTIONS = {
|
|
338
344
|
V1_14_3: install_v1_14_3,
|
339
345
|
V1_14_4: install_v1_14_4,
|
340
346
|
V1_14_5: install_v1_14_5,
|
347
|
+
V1_14_6: install_v1_14_6,
|
348
|
+
V1_14_7: install_v1_14_7,
|
341
349
|
},
|
342
350
|
}
|
343
351
|
|
geth/types.py
CHANGED
@@ -37,6 +37,7 @@ class GethKwargsTypedDict(TypedDict, total=False):
|
|
37
37
|
suffix_args: list[str] | None
|
38
38
|
suffix_kwargs: dict[str, str] | None
|
39
39
|
tx_pool_global_slots: str | None
|
40
|
+
tx_pool_lifetime: str | None
|
40
41
|
tx_pool_price_limit: str | None
|
41
42
|
verbosity: str | None
|
42
43
|
ws_addr: str | None
|
@@ -48,12 +49,17 @@ class GethKwargsTypedDict(TypedDict, total=False):
|
|
48
49
|
|
49
50
|
class GenesisDataTypedDict(TypedDict, total=False):
|
50
51
|
alloc: dict[str, dict[str, Any]]
|
52
|
+
baseFeePerGas: str
|
53
|
+
blobGasUsed: str
|
51
54
|
coinbase: str
|
52
55
|
config: dict[str, Any]
|
53
56
|
difficulty: str
|
57
|
+
excessBlobGas: str
|
54
58
|
extraData: str
|
55
59
|
gasLimit: str
|
56
|
-
|
60
|
+
gasUsed: str
|
61
|
+
mixHash: str
|
57
62
|
nonce: str
|
63
|
+
number: str
|
58
64
|
parentHash: str
|
59
65
|
timestamp: str
|
geth/utils/validation.py
CHANGED
@@ -46,6 +46,7 @@ class GethKwargs(BaseModel):
|
|
46
46
|
suffix_args: list[str] | None = None
|
47
47
|
suffix_kwargs: dict[str, str] | None = None
|
48
48
|
tx_pool_global_slots: str | None = None
|
49
|
+
tx_pool_lifetime: str | None = None
|
49
50
|
tx_pool_price_limit: str | None = None
|
50
51
|
verbosity: str | None = None
|
51
52
|
ws_addr: str | None = None
|
@@ -70,6 +71,7 @@ def validate_geth_kwargs(geth_kwargs: GethKwargsTypedDict) -> None:
|
|
70
71
|
|
71
72
|
|
72
73
|
class GenesisDataConfig(BaseModel):
|
74
|
+
chainId: int = 0
|
73
75
|
ethash: dict[str, Any] = {} # so that geth treats config as PoW -> PoS transition
|
74
76
|
homesteadBlock: int = 0
|
75
77
|
daoForkBlock: int = 0
|
@@ -97,15 +99,20 @@ class GenesisDataConfig(BaseModel):
|
|
97
99
|
|
98
100
|
class GenesisData(BaseModel):
|
99
101
|
alloc: dict[str, dict[str, Any]] = {}
|
102
|
+
baseFeePerGas: str = "0x0"
|
103
|
+
blobGasUsed: str = "0x0"
|
100
104
|
coinbase: str = "0x3333333333333333333333333333333333333333"
|
101
105
|
config: dict[str, Any] = GenesisDataConfig().model_dump()
|
102
106
|
difficulty: str = "0x0"
|
107
|
+
excessBlobGas: str = "0x0"
|
103
108
|
extraData: str = (
|
104
109
|
"0x0000000000000000000000000000000000000000000000000000000000000000"
|
105
110
|
)
|
106
111
|
gasLimit: str = "0x47e7c4"
|
107
|
-
|
112
|
+
gasUsed: str = "0x0"
|
113
|
+
mixHash: str = "0x0000000000000000000000000000000000000000000000000000000000000000"
|
108
114
|
nonce: str = "0x0"
|
115
|
+
number: str = "0x0"
|
109
116
|
parentHash: str = (
|
110
117
|
"0x0000000000000000000000000000000000000000000000000000000000000000"
|
111
118
|
)
|
geth/wrapper.py
CHANGED
@@ -219,6 +219,9 @@ def construct_popen_command(**geth_kwargs: Unpack[GethKwargsTypedDict]) -> list[
|
|
219
219
|
if gk.tx_pool_global_slots is not None:
|
220
220
|
builder.extend(("--txpool.globalslots", gk.tx_pool_global_slots))
|
221
221
|
|
222
|
+
if gk.tx_pool_lifetime is not None:
|
223
|
+
builder.extend(("--txpool.lifetime", gk.tx_pool_lifetime))
|
224
|
+
|
222
225
|
if gk.tx_pool_price_limit is not None:
|
223
226
|
builder.extend(("--txpool.pricelimit", gk.tx_pool_price_limit))
|
224
227
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: py-geth
|
3
|
-
Version: 5.0.
|
3
|
+
Version: 5.0.0b3
|
4
4
|
Summary: py-geth: Run Go-Ethereum as a subprocess
|
5
5
|
Home-page: https://github.com/ethereum/py-geth
|
6
6
|
Author: The Ethereum Foundation
|
@@ -165,19 +165,19 @@ the current list of supported versions.
|
|
165
165
|
Installation can be done via the command line:
|
166
166
|
|
167
167
|
```bash
|
168
|
-
$ python -m geth.install v1.14.
|
168
|
+
$ python -m geth.install v1.14.7
|
169
169
|
```
|
170
170
|
|
171
171
|
Or from python using the `install_geth` function.
|
172
172
|
|
173
173
|
```python
|
174
174
|
>>> from geth import install_geth
|
175
|
-
>>> install_geth('v1.14.
|
175
|
+
>>> install_geth('v1.14.7')
|
176
176
|
```
|
177
177
|
|
178
178
|
The installed binary can be found in the `$HOME/.py-geth` directory, under your
|
179
|
-
home directory. The `v1.14.
|
180
|
-
`$HOME/.py-geth/geth-v1.14.
|
179
|
+
home directory. The `v1.14.7` binary would be located at
|
180
|
+
`$HOME/.py-geth/geth-v1.14.7/bin/geth`.
|
181
181
|
|
182
182
|
## About `DevGethProcess`
|
183
183
|
|
@@ -3,15 +3,15 @@ geth/accounts.py,sha256=QxhjdyFT5JSgTswQiPsMMgCpTcV9-vaZiksDoWfePTI,5943
|
|
3
3
|
geth/chain.py,sha256=VMbb1OMI8z-HRteYg7bDgDpf9-SyLYioy2OIYO7oW5s,3879
|
4
4
|
geth/default_blockchain_password,sha256=7ZYUjo1py5Wh_uA_WvoXQG8mPv2CiJ07tI2tOodTLi8,30
|
5
5
|
geth/exceptions.py,sha256=yLGBkLabY_W-43kW9iYPM3FaoR08JWgTWYW1RHukaeU,2643
|
6
|
-
geth/genesis.json,sha256=
|
7
|
-
geth/install.py,sha256=
|
6
|
+
geth/genesis.json,sha256=E6pcGhk0pz1ByhRvyqeVbNAteOB4U1jOj4KiHtR2tAM,901
|
7
|
+
geth/install.py,sha256=MKvx9cJS5k37w6EX_2Mu7k-XhaiNkCtF963WwH10oco,10365
|
8
8
|
geth/main.py,sha256=jgWIs3o9BfHcqWfuq6l4JBjcdQzDy13-EJDP1c2ouhQ,1463
|
9
9
|
geth/mixins.py,sha256=cpls-_Z9WZdmYbjhOZL-y6F1xRYAvmfWRed2DODe6D8,5639
|
10
10
|
geth/process.py,sha256=3zeHvPFhXMhotB-kOhpJlt_qxiQFTEtByAdFNVf5mlg,8966
|
11
11
|
geth/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
12
|
geth/reset.py,sha256=IlKfr5PyjVi0rHjoGUY5kbjtnR9ZAsfSb1Jgzh0dDo0,2639
|
13
|
-
geth/types.py,sha256=
|
14
|
-
geth/wrapper.py,sha256=
|
13
|
+
geth/types.py,sha256=El5Q7ZnR7d_z7jliYhbH2df1FxaKOVHgxlyD8U-qzt0,1454
|
14
|
+
geth/wrapper.py,sha256=yPr0wyczd7ngLRJekIPinXyTP7cLtwyiWDTYxMlo-oU,7882
|
15
15
|
geth/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
geth/utils/encoding.py,sha256=YguGD7mEUN2eSMPkBREalKK1VQfOsLcj1WWJLR0HTxY,1618
|
17
17
|
geth/utils/filesystem.py,sha256=yg8m8n99-N0FA4NcNtu9V8mett2WTQPKHGjThrbk974,1320
|
@@ -19,9 +19,9 @@ geth/utils/networking.py,sha256=ntH6CZuGcTJJ0BIdT4rI-EMz703VDbJAJzGcxufDQMo,1488
|
|
19
19
|
geth/utils/proc.py,sha256=0CcHzOTkSzikrli_2ooQT6iHpPaTRYsshcvrGYC7btA,1801
|
20
20
|
geth/utils/thread.py,sha256=IL4C-AvzYbOwW2qOIMS63GVEqiWLe9TiMXX20qT1UaY,315
|
21
21
|
geth/utils/timeout.py,sha256=Uiz90EKJJm7UmKmVx2FhBpIblnvg9dTqszsanvfOtFM,2259
|
22
|
-
geth/utils/validation.py,sha256=
|
23
|
-
py_geth-5.0.
|
24
|
-
py_geth-5.0.
|
25
|
-
py_geth-5.0.
|
26
|
-
py_geth-5.0.
|
27
|
-
py_geth-5.0.
|
22
|
+
geth/utils/validation.py,sha256=YG3l98_EaweqUjElRJRxtdEldRwOz9cYii00PR74RkI,5396
|
23
|
+
py_geth-5.0.0b3.dist-info/LICENSE,sha256=kUYPqABLwavFVY_YsjHUmfvCFNnMRwMd3akYH1rHTaY,1095
|
24
|
+
py_geth-5.0.0b3.dist-info/METADATA,sha256=-9uKCYHt5GBP3iqLNMN_63PLmqDdhOEVDfk-TuXfBIg,8929
|
25
|
+
py_geth-5.0.0b3.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
|
26
|
+
py_geth-5.0.0b3.dist-info/top_level.txt,sha256=o8Gvkxt3xBR7BNG2p9_G1J3GnGlTrBMEhYJBdAzBWDU,5
|
27
|
+
py_geth-5.0.0b3.dist-info/RECORD,,
|
File without changes
|
File without changes
|