From 0220c496187b285c9603cfab47e7f9276b31980c Mon Sep 17 00:00:00 2001 From: Tianyuan Yu Date: Fri, 16 Sep 2022 17:41:47 -0700 Subject: [PATCH] dag: fix a bug in resolving pening ancestor --- src/dag/dag-module.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dag/dag-module.cpp b/src/dag/dag-module.cpp index de9b43b..442cca4 100644 --- a/src/dag/dag-module.cpp +++ b/src/dag/dag-module.cpp @@ -178,7 +178,10 @@ DagModule::onNewRecord(EdgeState& state) // resolve all pending descendants for (auto& desc : state.descendants) { auto descState = getOrConstruct(desc); - evaluateWaitlist(descState); + // if this is a genesis record + if (!descState.record.isGenesis()) { + evaluateAncestors(descState); + } } return *this; }