Skip to content

Commit

Permalink
dag: fix a bug in resolving pening ancestor
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyuan129 committed Sep 17, 2022
1 parent 25f40d9 commit 0220c49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dag/dag-module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0220c49

Please sign in to comment.