Skip to content
Snippets Groups Projects
Commit 04c8913c authored by Dmitry Puzyrkov's avatar Dmitry Puzyrkov
Browse files

Update datums.py

parent 77cccb32
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,12 @@ class CFSubDatum:
net: CFNet | None = None):
self._parent_datum = parent_datum
self._origin_sub_datum = sub_datum
self.hash = str(sub_datum.hash)
if parent_datum:
self.hash = str(parent_datum.hash)
else:
log.warning(f"SubDatum created with no parent datum, no hash provided")
self.hash = None
self.type = "DEFAULT"
if self._parent_datum and self._parent_datum.atom is None: # mempool datum
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment