chia-blockchain 2.5.4rc1__py3-none-any.whl → 2.5.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/full_node/mempool_manager.py +6 -2
- {chia_blockchain-2.5.4rc1.dist-info → chia_blockchain-2.5.4rc2.dist-info}/METADATA +2 -2
- {chia_blockchain-2.5.4rc1.dist-info → chia_blockchain-2.5.4rc2.dist-info}/RECORD +6 -6
- {chia_blockchain-2.5.4rc1.dist-info → chia_blockchain-2.5.4rc2.dist-info}/LICENSE +0 -0
- {chia_blockchain-2.5.4rc1.dist-info → chia_blockchain-2.5.4rc2.dist-info}/WHEEL +0 -0
- {chia_blockchain-2.5.4rc1.dist-info → chia_blockchain-2.5.4rc2.dist-info}/entry_points.txt +0 -0
|
@@ -588,7 +588,7 @@ class MempoolManager:
|
|
|
588
588
|
Optional[MempoolItem]: the item to add (to mempool or pending pool)
|
|
589
589
|
list[bytes32]: conflicting mempool items to remove, if no Err
|
|
590
590
|
"""
|
|
591
|
-
start_time = time.
|
|
591
|
+
start_time = time.monotonic()
|
|
592
592
|
if self.peak is None:
|
|
593
593
|
return Err.MEMPOOL_NOT_INITIALIZED, None, []
|
|
594
594
|
|
|
@@ -778,7 +778,7 @@ class MempoolManager:
|
|
|
778
778
|
if not can_replace(conflicts, removal_names, potential):
|
|
779
779
|
return Err.MEMPOOL_CONFLICT, potential, []
|
|
780
780
|
|
|
781
|
-
duration = time.
|
|
781
|
+
duration = time.monotonic() - start_time
|
|
782
782
|
|
|
783
783
|
log.log(
|
|
784
784
|
logging.DEBUG if duration < 2 else logging.WARNING,
|
|
@@ -786,6 +786,10 @@ class MempoolManager:
|
|
|
786
786
|
f"Cost: {cost} ({round(100.0 * cost / self.constants.MAX_BLOCK_COST_CLVM, 3)}% of max block cost)",
|
|
787
787
|
)
|
|
788
788
|
|
|
789
|
+
if duration > 2:
|
|
790
|
+
log.warning("validating spend took too long, rejecting")
|
|
791
|
+
return Err.INVALID_SPEND_BUNDLE, None, []
|
|
792
|
+
|
|
789
793
|
return None, potential, [item.name for item in conflicts]
|
|
790
794
|
|
|
791
795
|
def get_spendbundle(self, bundle_hash: bytes32) -> Optional[SpendBundle]:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: chia-blockchain
|
|
3
|
-
Version: 2.5.
|
|
3
|
+
Version: 2.5.4rc2
|
|
4
4
|
Summary: Chia blockchain full node, farmer, timelord, and wallet.
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Keywords: chia,blockchain,node
|
|
@@ -26,7 +26,7 @@ Requires-Dist: bitstring (>=4.1.4)
|
|
|
26
26
|
Requires-Dist: boto3 (>=1.35.43)
|
|
27
27
|
Requires-Dist: build (>=1.2.1) ; extra == "dev"
|
|
28
28
|
Requires-Dist: chia-puzzles-py (>=0.20.1)
|
|
29
|
-
Requires-Dist: chia_rs (>=0.21.1)
|
|
29
|
+
Requires-Dist: chia_rs (>=0.21.1,<0.22)
|
|
30
30
|
Requires-Dist: chiabip158 (>=1.5.2)
|
|
31
31
|
Requires-Dist: chiapos (>=2.0.10)
|
|
32
32
|
Requires-Dist: chiavdf (>=1.1.10)
|
|
@@ -520,7 +520,7 @@ chia/full_node/hint_management.py,sha256=8dVKguFPm-h32GEnMWxX2qyITo4WVO1YBKaPFKC
|
|
|
520
520
|
chia/full_node/hint_store.py,sha256=0m6y0_f0rhGIKqfAmhFSGEeyM3LCN-dv-bR1OfIr4Uo,3666
|
|
521
521
|
chia/full_node/mempool.py,sha256=VK323fsHtnbn_zQMqE7dcBAf37_4K7X_wfYLmjvLK6c,28150
|
|
522
522
|
chia/full_node/mempool_check_conditions.py,sha256=r_NXwXH5nLvO-YbhcZozrMIYOdHqyMRyDzBCVoIX1QA,5606
|
|
523
|
-
chia/full_node/mempool_manager.py,sha256=
|
|
523
|
+
chia/full_node/mempool_manager.py,sha256=o2rP43tpxd1thk9DW-6L6MJW7FACL91JnezG0GSjTLw,50329
|
|
524
524
|
chia/full_node/pending_tx_cache.py,sha256=jEL004L7r1n7ppeSdLVe6nsVNfYw0jU86DHmRYe1rH4,3657
|
|
525
525
|
chia/full_node/signage_point.py,sha256=vtHQk3P0HLfOVpenGqmgqBoWnf_WCETHRplL_id9KyA,414
|
|
526
526
|
chia/full_node/subscriptions.py,sha256=ItPMnGTgrfdzoeyC5TBbamrVWKvYnpabSLYUDBI5bmI,8706
|
|
@@ -884,8 +884,8 @@ chia/wallet/wallet_transaction_store.py,sha256=PoSJLKuNNx0X8KVSQ92C5zGKIbBBDtPVW
|
|
|
884
884
|
chia/wallet/wallet_user_store.py,sha256=rXiQpk5g8t1X0Chx0bValcQsHonjB1oQ_F_K16bphDA,4089
|
|
885
885
|
chia/wallet/wallet_weight_proof_handler.py,sha256=d3UvjSP5X2gVIephBR9grutvYRC58Vr-HnV1ezJXrJ8,4914
|
|
886
886
|
mozilla-ca/cacert.pem,sha256=UKYnfsaRE_AMX9RfCei5eks-MtqjXTqVqzATelU4bO8,233263
|
|
887
|
-
chia_blockchain-2.5.
|
|
888
|
-
chia_blockchain-2.5.
|
|
889
|
-
chia_blockchain-2.5.
|
|
890
|
-
chia_blockchain-2.5.
|
|
891
|
-
chia_blockchain-2.5.
|
|
887
|
+
chia_blockchain-2.5.4rc2.dist-info/LICENSE,sha256=0tuU-jTzeRDJJaxF2YCEpBwbywgpbrVSXq1i6fJq63U,11347
|
|
888
|
+
chia_blockchain-2.5.4rc2.dist-info/METADATA,sha256=aLKKakrgyATPbgEixhjazcWbOZ_D04r9YiWbpxYRx68,10679
|
|
889
|
+
chia_blockchain-2.5.4rc2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
890
|
+
chia_blockchain-2.5.4rc2.dist-info/entry_points.txt,sha256=GL2-UvicPVdKz72IP4shnmV3XImfoD5pMzoURfoAYk4,742
|
|
891
|
+
chia_blockchain-2.5.4rc2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|