Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Latest commit

 

History

History
29 lines (21 loc) · 2.41 KB

ResettingTheLedger.md

File metadata and controls

29 lines (21 loc) · 2.41 KB

Resetting the Ledger and Wallets

Overview

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.

Procedure

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.

  1. Open 2 Git Bash command prompt windows; one to your .../greenlight/openshift working directory and the other to your .../TheOrgBook/openshift working directory.
  2. 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
  3. 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
  4. 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.
  5. 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