Tool for easy Hyperledger Fabric network reconfiguration by committing a new configuration transaction
Reference
-
Build Fabchanger:
go build -o fabchanger cmd/main.go
-
Generate new crypto materials
Edit
config/config.yaml
Generate configs:
./fabchanger --mode generate --join org
-
Create connection profile and refer to it from
config/config.yaml
. -
Run command:
./connectOrg.sh
-
Sign configuration transaction
Sign as admin specified in config/config.yaml:
./fabchanger --mode sign -f ./wrappedDelta.pb -o ./wrappedDelta.pb
Repeat this step for all orgs (change credentials in config/config.yaml and run command specified above)
Commit tx to orderer:
./fabchanger --mode update -f ./wrappedDelta.pb
-
Build Fabchanger:
go build -o fabchanger cmd/main.go
-
Generate new crypto materials
Edit
config/config.yaml
Generate configs:
./fabchanger --mode generate --join orderer
-
Create connection profile and refer to it from
config/config.yaml
. -
Run command:
./connectOrderer.sh
-
Sign configuration transaction
Sign as admin specified in config/config.yaml:
./fabchanger --mode sign -f ./wrappedDelta.pb -o ./wrappedDelta.pb
Repeat this step for all orgs (change credentials in config/config.yaml and run command specified above)
Commit tx to orderer:
./fabchanger --mode update -f ./wrappedDelta.pb