fabric-private-chaincode icon indicating copy to clipboard operation
fabric-private-chaincode copied to clipboard

Robust Error handling

Open g2flyer opened this issue 6 years ago • 1 comments

The current code is rather weak on error handling: return codes are often ignored, errors are logged but not handled or might lead right away to a panic.

related issues #81, #87, #104, #139

We probably should come up first with a general error strategy of how to deal errors in enclaves and pass them on and alike and the i guess slowly chip away on it. What we definitely should do is start at least adding TODOs of code we touch related to this so at least we know what still have to be done ...

(For fabric general error handling guidelines, see https://hyperledger-fabric.readthedocs.io/en/latest/error-handling.html)

g2flyer avatar Aug 14 '19 18:08 g2flyer

As part of this we should also re-consider whether we can safely skip/ignore all config updates we do in tlcc_enclave/enclave/ledger.cpp as-of PR #147

g2flyer avatar Aug 27 '19 17:08 g2flyer