sample-blockchain-vehicle-lifecycle icon indicating copy to clipboard operation
sample-blockchain-vehicle-lifecycle copied to clipboard

Initializing the RES with latest version of XOM/Ruleapp when a peer is joining a network

Open stephane-mery opened this issue 8 years ago • 1 comments

Current version of the code sample assume all peers are running when deploying a given version of the rules. There is nothing that initializes the odm-runtime with latest version of the XOM and latest version of the rules. That's a missing feature.

The information is available in the World State, so we could do it, has to be done

stephane-mery avatar Sep 28 '17 09:09 stephane-mery

we need to write a client JS app that would be called when initializing the peer (may be in the startup phase of the odm-runtime container) which would use Composer CLI to read the registry and initialize the RES from information available in the registry, if any.

Using getAssetRegistry on the BusinessNetworkConnection object in CLI

stephane-mery avatar Sep 28 '17 10:09 stephane-mery