Resetting the ledger and wallets used by TheOrgBook and the supporting GreenLight Services requires executing an orchestrated process to allow all of the various participants to register with the ledger and recreate their associated wallets to avoid the wallets and ledger entries from getting out of sync.
The following procedure describes the process of resetting the ledger and wallets for an instance of the Ledger, TheOrgBook and GreenLight.
These instructions assume you are using the OpenShift management scripts found here; openshift-developer-tools. Refer to the OpenShift Scripts documentation for details.
It is assumed you have an instance of GreenLight and the von-network running, and you have working copies of both the GreenLight and TheOrgBook source code.
- Open 2 Git Bash command prompt windows; one to your
.../greenlight/openshift
working directory and the other to your.../TheOrgBook/openshift
working directory. - From the
.../TheOrgBook/openshift
command prompt, run the manage command to reset TheOrgBook environment, and follow the instructions moving on to running the GreenLight manage commands in parallel when instructed.- For example;
./manage -P -e dev hardReset
- For full usage information run;
./manage -h
- For example;
- From the
.../greenlight/openshift
command prompt, run the manage commands to reset all of the GreenLight service pods, and follow the instructions.- For example;
./manage -e dev reset
- For full usage information run;
./manage -h
- For example;
- When both sets of scripts are at the If you are resetting the ledger step, reset your von-network instance by following the instructions to stop and restart the ledger nodes and ledger browser.
- Once the ledger nodes and browser have started, allow the manage scripts to complete the DID registration process.
Now you can load data by following the instructions here; Loading the Test Data