From 669a294683f449ed98f8f1d4c1a9e2180bec6c6a Mon Sep 17 00:00:00 2001 From: Florin Chirica Date: Fri, 8 Jul 2022 14:33:50 +0200 Subject: [PATCH] Nits. --- chia/data_layer/data_layer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chia/data_layer/data_layer.py b/chia/data_layer/data_layer.py index 738a68bc8b6a6..5d8fa5b109cbc 100644 --- a/chia/data_layer/data_layer.py +++ b/chia/data_layer/data_layer.py @@ -198,7 +198,7 @@ class DataLayer: else: root = 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 if root.generation == singleton_record.generation: return @@ -246,6 +246,9 @@ class DataLayer: async with self.lock: 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: root = await self.data_store.get_tree_root(tree_id=tree_id) if root.generation > singleton_record.generation: