chia-blockchain 2.4.4rc1__py3-none-any.whl → 2.4.4rc2__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.
- chia/_tests/core/data_layer/test_data_layer_util.py +12 -3
- chia/server/ws_connection.py +2 -2
- {chia_blockchain-2.4.4rc1.dist-info → chia_blockchain-2.4.4rc2.dist-info}/METADATA +2 -2
- {chia_blockchain-2.4.4rc1.dist-info → chia_blockchain-2.4.4rc2.dist-info}/RECORD +7 -7
- {chia_blockchain-2.4.4rc1.dist-info → chia_blockchain-2.4.4rc2.dist-info}/LICENSE +0 -0
- {chia_blockchain-2.4.4rc1.dist-info → chia_blockchain-2.4.4rc2.dist-info}/WHEEL +0 -0
- {chia_blockchain-2.4.4rc1.dist-info → chia_blockchain-2.4.4rc2.dist-info}/entry_points.txt +0 -0
|
@@ -159,6 +159,13 @@ def test_internal_hash(seeded_random: Random) -> None:
|
|
|
159
159
|
assert definition(left_hash=left_hash, right_hash=right_hash) == reference
|
|
160
160
|
|
|
161
161
|
|
|
162
|
+
def get_random_bytes(length: int, r: Random) -> bytes:
|
|
163
|
+
if length == 0:
|
|
164
|
+
return b""
|
|
165
|
+
|
|
166
|
+
return r.getrandbits(length * 8).to_bytes(length, "big")
|
|
167
|
+
|
|
168
|
+
|
|
162
169
|
def test_leaf_hash(seeded_random: Random) -> None:
|
|
163
170
|
def definition(key: bytes, value: bytes) -> bytes32:
|
|
164
171
|
return SerializedProgram.to((key, value)).get_tree_hash()
|
|
@@ -169,12 +176,14 @@ def test_leaf_hash(seeded_random: Random) -> None:
|
|
|
169
176
|
length = 0
|
|
170
177
|
else:
|
|
171
178
|
length = seeded_random.randrange(100)
|
|
172
|
-
|
|
179
|
+
|
|
180
|
+
key = get_random_bytes(length=length, r=seeded_random)
|
|
181
|
+
|
|
173
182
|
if cycle in (1, 2):
|
|
174
183
|
length = 0
|
|
175
184
|
else:
|
|
176
185
|
length = seeded_random.randrange(100)
|
|
177
|
-
value =
|
|
186
|
+
value = get_random_bytes(length=length, r=seeded_random)
|
|
178
187
|
reference = definition(key=key, value=value)
|
|
179
188
|
data.append((key, value, reference))
|
|
180
189
|
|
|
@@ -197,7 +206,7 @@ def test_key_hash(seeded_random: Random) -> None:
|
|
|
197
206
|
length = 0
|
|
198
207
|
else:
|
|
199
208
|
length = seeded_random.randrange(100)
|
|
200
|
-
key =
|
|
209
|
+
key = get_random_bytes(length=length, r=seeded_random)
|
|
201
210
|
reference = definition(key=key)
|
|
202
211
|
data.append((key, reference))
|
|
203
212
|
|
chia/server/ws_connection.py
CHANGED
|
@@ -8,7 +8,7 @@ import traceback
|
|
|
8
8
|
from dataclasses import dataclass, field
|
|
9
9
|
from typing import Any, Awaitable, Callable, Dict, List, Optional, Set, Tuple, Union
|
|
10
10
|
|
|
11
|
-
from aiohttp import ClientSession, WSCloseCode, WSMessage, WSMsgType
|
|
11
|
+
from aiohttp import ClientSession, WebSocketError, WSCloseCode, WSMessage, WSMsgType
|
|
12
12
|
from aiohttp.client import ClientWebSocketResponse
|
|
13
13
|
from aiohttp.web import WebSocketResponse
|
|
14
14
|
from packaging.version import Version
|
|
@@ -708,7 +708,7 @@ class WSChiaConnection:
|
|
|
708
708
|
return full_message_loaded
|
|
709
709
|
elif message.type == WSMsgType.ERROR:
|
|
710
710
|
self.log.error(f"WebSocket Error: {message}")
|
|
711
|
-
if message.data.code == WSCloseCode.MESSAGE_TOO_BIG:
|
|
711
|
+
if isinstance(message.data, WebSocketError) and message.data.code == WSCloseCode.MESSAGE_TOO_BIG:
|
|
712
712
|
asyncio.create_task(self.close(300))
|
|
713
713
|
else:
|
|
714
714
|
asyncio.create_task(self.close())
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: chia-blockchain
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.4rc2
|
|
4
4
|
Summary: Chia blockchain full node, farmer, timelord, and wallet.
|
|
5
5
|
Home-page: https://chia.net/
|
|
6
6
|
License: Apache License
|
|
@@ -18,7 +18,7 @@ Provides-Extra: dev
|
|
|
18
18
|
Provides-Extra: legacy-keyring
|
|
19
19
|
Provides-Extra: upnp
|
|
20
20
|
Requires-Dist: aiofiles (==24.1.0)
|
|
21
|
-
Requires-Dist: aiohttp (==3.10.
|
|
21
|
+
Requires-Dist: aiohttp (==3.10.4)
|
|
22
22
|
Requires-Dist: aiohttp_cors (==0.7.0) ; extra == "dev"
|
|
23
23
|
Requires-Dist: aiosqlite (==0.20.0)
|
|
24
24
|
Requires-Dist: anyio (==4.3.0)
|
|
@@ -80,7 +80,7 @@ chia/_tests/core/data_layer/config.py,sha256=K2Odbop3xRSlWVsfaAZG53IRXXD3pdOpiYe
|
|
|
80
80
|
chia/_tests/core/data_layer/conftest.py,sha256=9NPs0xVEyGD75Q5g0yQc8cE7qPnvwObmh3KHtlBTITE,3891
|
|
81
81
|
chia/_tests/core/data_layer/test_data_cli.py,sha256=K2vGX0p6KdCemw7-9as85O-zffm02VGetxrSD9iSvYw,2347
|
|
82
82
|
chia/_tests/core/data_layer/test_data_layer.py,sha256=NCqRfZpYCp3lLq_q8HFvycL318lOmPXPEUMvzTzfe9U,2519
|
|
83
|
-
chia/_tests/core/data_layer/test_data_layer_util.py,sha256=
|
|
83
|
+
chia/_tests/core/data_layer/test_data_layer_util.py,sha256=rU5rOM_eE-zPsS27ZdpYZC7ET0YXB99qPDFGAf93xJs,7560
|
|
84
84
|
chia/_tests/core/data_layer/test_data_rpc.py,sha256=hbDQ7Bs-JWEAehGCnm5IHrXkWttCjxwAIRVqaihMdEg,333417
|
|
85
85
|
chia/_tests/core/data_layer/test_data_store.py,sha256=8YnS_fOjpOLqdB4uzJThzeDeL_bFgV7TS4a38-n6S88,93895
|
|
86
86
|
chia/_tests/core/data_layer/test_data_store_schema.py,sha256=pSYRxAYsn73HeCV_OuU65RmPHWKbNws0vY4iMvQuVYU,15006
|
|
@@ -635,7 +635,7 @@ chia/server/start_service.py,sha256=QPQuxnoLEnHVNvbMRz8j7eHdG8KixCb2nnKjVwWEyBU,
|
|
|
635
635
|
chia/server/start_timelord.py,sha256=mRap7vj0Sa9ASvtuFOZ3PwMzkqm86_OVmiQXNODp660,2802
|
|
636
636
|
chia/server/start_wallet.py,sha256=wKbitcLow9XRhWCxnI0erwSqj4Yp4-7CYWxnt7_rARY,3776
|
|
637
637
|
chia/server/upnp.py,sha256=h3cNKhzlLO2loAE1cVfcFbckMThXkl3owekkhfMO7Yc,3743
|
|
638
|
-
chia/server/ws_connection.py,sha256=
|
|
638
|
+
chia/server/ws_connection.py,sha256=OHriGg27zpEWWH1I_fAxxz-CNYMcaIV8QNQY84HaglA,32841
|
|
639
639
|
chia/simulator/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
640
640
|
chia/simulator/block_tools.py,sha256=wQQTtGpYraJ9rkshc2mXQFVnkiSLexFpIXgEySYqwGg,90940
|
|
641
641
|
chia/simulator/full_node_simulator.py,sha256=fs_t7vRH78M984AEvZ7zHxPPR-r0ljb0kjsY88hlEwM,34947
|
|
@@ -1021,8 +1021,8 @@ chia/wallet/wallet_transaction_store.py,sha256=Irw8k8ZqufsIDRR_uSWRV0nEOkr7m-Iz1
|
|
|
1021
1021
|
chia/wallet/wallet_user_store.py,sha256=Ce6Gg9A7LX9f7aKdVhLe6st0o-KFPI1hl9FLro6PuCk,4090
|
|
1022
1022
|
chia/wallet/wallet_weight_proof_handler.py,sha256=XlzDsTULQPljbAN7BVLo133aEc--aq0U_k4owSj3Os8,4932
|
|
1023
1023
|
mozilla-ca/cacert.pem,sha256=GJ089tEDGF-6BtdsGvkVJjxtQiJUgaF1noU7M6yFdUA,234847
|
|
1024
|
-
chia_blockchain-2.4.
|
|
1025
|
-
chia_blockchain-2.4.
|
|
1026
|
-
chia_blockchain-2.4.
|
|
1027
|
-
chia_blockchain-2.4.
|
|
1028
|
-
chia_blockchain-2.4.
|
|
1024
|
+
chia_blockchain-2.4.4rc2.dist-info/LICENSE,sha256=QsHs53_We_JTOMH_GprgI5-zMC9KC7D-Vws6Zi4efPM,11347
|
|
1025
|
+
chia_blockchain-2.4.4rc2.dist-info/METADATA,sha256=GJ7EuwooscU_6M8wkt_awbU7sAA719xWYOGJlSvUa6M,10942
|
|
1026
|
+
chia_blockchain-2.4.4rc2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
1027
|
+
chia_blockchain-2.4.4rc2.dist-info/entry_points.txt,sha256=GL2-UvicPVdKz72IP4shnmV3XImfoD5pMzoURfoAYk4,742
|
|
1028
|
+
chia_blockchain-2.4.4rc2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|