chia-blockchain 2.5.5rc6__py3-none-any.whl → 2.5.5rc7__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/coin_store.py +10 -0
- {chia_blockchain-2.5.5rc6.dist-info → chia_blockchain-2.5.5rc7.dist-info}/METADATA +1 -1
- {chia_blockchain-2.5.5rc6.dist-info → chia_blockchain-2.5.5rc7.dist-info}/RECORD +6 -6
- {chia_blockchain-2.5.5rc6.dist-info → chia_blockchain-2.5.5rc7.dist-info}/LICENSE +0 -0
- {chia_blockchain-2.5.5rc6.dist-info → chia_blockchain-2.5.5rc7.dist-info}/WHEEL +0 -0
- {chia_blockchain-2.5.5rc6.dist-info → chia_blockchain-2.5.5rc7.dist-info}/entry_points.txt +0 -0
chia/full_node/coin_store.py
CHANGED
|
@@ -30,6 +30,9 @@ class CoinStore:
|
|
|
30
30
|
"""
|
|
31
31
|
|
|
32
32
|
db_wrapper: DBWrapper2
|
|
33
|
+
# Fall back to the `coin_puzzle_hash` index if the ff unspent index
|
|
34
|
+
# does not exist.
|
|
35
|
+
_unspent_lineage_for_ph_idx: str = "coin_puzzle_hash"
|
|
33
36
|
|
|
34
37
|
@classmethod
|
|
35
38
|
async def create(cls, db_wrapper: DBWrapper2) -> CoinStore:
|
|
@@ -82,6 +85,12 @@ class CoinStore:
|
|
|
82
85
|
WHERE spent_index = -1
|
|
83
86
|
"""
|
|
84
87
|
)
|
|
88
|
+
async with conn.execute(
|
|
89
|
+
"SELECT 1 FROM sqlite_master WHERE type = 'index' AND name = 'coin_record_ph_ff_unspent_idx'"
|
|
90
|
+
) as cursor:
|
|
91
|
+
has_ff_unspent_idx = await cursor.fetchone() is not None
|
|
92
|
+
if has_ff_unspent_idx:
|
|
93
|
+
self._unspent_lineage_for_ph_idx = "coin_record_ph_ff_unspent_idx"
|
|
85
94
|
|
|
86
95
|
return self
|
|
87
96
|
|
|
@@ -639,6 +648,7 @@ class CoinStore:
|
|
|
639
648
|
"unspent.coin_parent, "
|
|
640
649
|
"parent.coin_parent "
|
|
641
650
|
"FROM coin_record AS unspent "
|
|
651
|
+
f"INDEXED BY {self._unspent_lineage_for_ph_idx} "
|
|
642
652
|
"LEFT JOIN coin_record AS parent ON unspent.coin_parent = parent.coin_name "
|
|
643
653
|
"WHERE unspent.spent_index = -1 "
|
|
644
654
|
"AND parent.spent_index > 0 "
|
|
@@ -525,7 +525,7 @@ chia/full_node/block_height_map.py,sha256=EOB6egK8jLWuFGmYW54uo6YmLFipcx0GoAbzV-
|
|
|
525
525
|
chia/full_node/block_store.py,sha256=Kd5gWjotNC_ffEqUUXFfoJjF0e5xx0o-D1fBm-0ilAY,24535
|
|
526
526
|
chia/full_node/bundle_tools.py,sha256=M-YSytA29mAIoteQ1FzfMrQYbbrzGXsXT0HSDjHaw3Y,854
|
|
527
527
|
chia/full_node/check_fork_next_block.py,sha256=l2N-iW8GYdA9CkHLUDXuntuiLtG4jPcALFm00IflajQ,1434
|
|
528
|
-
chia/full_node/coin_store.py,sha256=
|
|
528
|
+
chia/full_node/coin_store.py,sha256=w8gOjHpGegf4QLH4k2oMe7KO3uTlGLaajWVhGh1EHTc,29739
|
|
529
529
|
chia/full_node/eligible_coin_spends.py,sha256=FLwwOUaFJSnWCekdYwmCaRFizx-0vgc0u9-v1AeXLTA,16844
|
|
530
530
|
chia/full_node/fee_estimate_store.py,sha256=Llp44WEeJmvafq2BDO_n4a6UeCY2wB6g52ImoLGxAOo,526
|
|
531
531
|
chia/full_node/fee_estimation.py,sha256=ZpXoVHa8IS5ZeE0GLk7Fm1AYED2NVC2c7-N7WARr4lo,2903
|
|
@@ -891,8 +891,8 @@ chia/wallet/wallet_user_store.py,sha256=rXiQpk5g8t1X0Chx0bValcQsHonjB1oQ_F_K16bp
|
|
|
891
891
|
chia/wallet/wallet_weight_proof_handler.py,sha256=IcQg_w8EPjpS9xwmEE8GvPcneLePOtu74wWUu1l5uuM,4875
|
|
892
892
|
chia/wallet/wsm_apis.py,sha256=6LmxbHXC-tqNbRyoiGgz-f19PF1nEfMbfm3BTnsNQ6s,3914
|
|
893
893
|
mozilla-ca/cacert.pem,sha256=qz7jZRl3pBeKcCsLgopO57K7uRJyNbCrdA4uFZdL9ds,222971
|
|
894
|
-
chia_blockchain-2.5.
|
|
895
|
-
chia_blockchain-2.5.
|
|
896
|
-
chia_blockchain-2.5.
|
|
897
|
-
chia_blockchain-2.5.
|
|
898
|
-
chia_blockchain-2.5.
|
|
894
|
+
chia_blockchain-2.5.5rc7.dist-info/LICENSE,sha256=0tuU-jTzeRDJJaxF2YCEpBwbywgpbrVSXq1i6fJq63U,11347
|
|
895
|
+
chia_blockchain-2.5.5rc7.dist-info/METADATA,sha256=zsp7-Z7j067pBbewUX5mnDnte--rz4lTIWXfimuYKKE,10687
|
|
896
|
+
chia_blockchain-2.5.5rc7.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
897
|
+
chia_blockchain-2.5.5rc7.dist-info/entry_points.txt,sha256=GL2-UvicPVdKz72IP4shnmV3XImfoD5pMzoURfoAYk4,742
|
|
898
|
+
chia_blockchain-2.5.5rc7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|