Commit 39492a79 authored by yacovm's avatar yacovm
Browse files

[FAB-10153] Continue instead of erroring- endorserState



The endorser's private data support assumes there is simulation
results if the iterator claims the iteration hasn't ended and
if there aren't any - it returns an error.

I think it's better be safe than sorry and just skip this iteration
and continue to the next one, and in the worst case - the user
anyway needs to inspect the results from this method.

Change-Id: I765057f6f4d231eceef55232b3831f5925a17dfa
Signed-off-by: default avataryacovm <yacovm@il.ibm.com>
parent ec1f138b
......@@ -61,7 +61,7 @@ func (sc *StateContext) GetTransientByTXID(txID string) ([]*rwset.TxPvtReadWrite
break
}
if res.PvtSimulationResultsWithConfig == nil {
return nil, errors.New("received nil private simulation results")
continue
}
data = append(data, res.PvtSimulationResultsWithConfig.PvtRwset)
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment