Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit 9264c17

Browse files
Fix count tuples at creation (#93)
1 parent 46d71bf commit 9264c17

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

chaincode/compute_plan.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ func createComputePlanInternal(db *LedgerDB, inp inputComputePlan, tag string) (
133133
if err != nil {
134134
return resp, err
135135
}
136-
count := len(inp.Traintuples) + len(inp.Aggregatetuples) + len(inp.CompositeTraintuples)
136+
count := len(inp.Traintuples) +
137+
len(inp.Aggregatetuples) +
138+
len(inp.CompositeTraintuples) +
139+
len(inp.Testtuples)
137140
if count == 0 {
138141
resp.Fill(ID, computePlan)
139142
return resp, nil

0 commit comments

Comments
 (0)