mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-11 18:58:59 +03:00
limit DataStore.get_pending_root()
query (#15607)
This commit is contained in:
parent
345f096192
commit
5052cc2fd4
@ -369,7 +369,7 @@ class DataStore:
|
||||
async def get_pending_root(self, tree_id: bytes32) -> Optional[Root]:
|
||||
async with self.db_wrapper.reader() as reader:
|
||||
cursor = await reader.execute(
|
||||
"SELECT * FROM root WHERE tree_id == :tree_id AND status == :status",
|
||||
"SELECT * FROM root WHERE tree_id == :tree_id AND status == :status LIMIT 2",
|
||||
{"tree_id": tree_id, "status": Status.PENDING.value},
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user