Skip to content

Commit 609e377

Browse files
committed
graph: use correct constant for not checking the completeness of transactions that are below the root.depth by DEPTH_DIFF
1 parent 1949707 commit 609e377

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graph.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func (g *Graph) AddTransaction(tx Transaction) error {
154154
// Do not consider transactions below root.depth by exactly DEPTH_DIFF to be incomplete
155155
// at all. Permit them to have incomplete parent histories.
156156

157-
if g.rootDepth != uint64(sys.MaxParentsPerTransaction)+tx.Depth {
157+
if g.rootDepth != uint64(sys.MaxDepthDiff)+tx.Depth {
158158
for _, parentID := range tx.ParentIDs {
159159
if _, stored := g.transactions[parentID]; !stored {
160160
parentsMissing = true

0 commit comments

Comments
 (0)