mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-11-13 03:12:24 +03:00
Nits.
This commit is contained in:
parent
f232e7c85c
commit
669a294683
@ -198,7 +198,7 @@ class DataLayer:
|
|||||||
else:
|
else:
|
||||||
root = None
|
root = None
|
||||||
if root is None:
|
if root is None:
|
||||||
self.log.error(f"Don't have pending root for {tree_id}.")
|
self.log.info(f"Don't have pending root for {tree_id}.")
|
||||||
return
|
return
|
||||||
if root.generation == singleton_record.generation:
|
if root.generation == singleton_record.generation:
|
||||||
return
|
return
|
||||||
@ -246,6 +246,9 @@ class DataLayer:
|
|||||||
async with self.lock:
|
async with self.lock:
|
||||||
await self._update_confirmation_status(tree_id=tree_id)
|
await self._update_confirmation_status(tree_id=tree_id)
|
||||||
|
|
||||||
|
if not self.data_store.tree_id_exists(tree_id=tree_id):
|
||||||
|
await self.data_store.create_tree(tree_id=tree_id)
|
||||||
|
|
||||||
for url in subscription.urls:
|
for url in subscription.urls:
|
||||||
root = await self.data_store.get_tree_root(tree_id=tree_id)
|
root = await self.data_store.get_tree_root(tree_id=tree_id)
|
||||||
if root.generation > singleton_record.generation:
|
if root.generation > singleton_record.generation:
|
||||||
|
Loading…
Reference in New Issue
Block a user