Skip to content

Commit 6cdd70f

Browse files
committed
Add info prompt that network started in dev mode
Signed-off-by: Jakub Dzikowski <[email protected]>
1 parent 8dde85f commit 6cdd70f

11 files changed

+53
-10
lines changed

e2e/__snapshots__/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json.test.ts.snap

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2038,7 +2038,7 @@ networkUp() {
20382038
installChannels
20392039
installChaincodes
20402040
notifyOrgsAboutChannels
2041-
printHeadline \\"Done! Enjoy your fresh network\\" \\"U1F984\\"
2041+
printStartSuccessInfo
20422042
}
20432043
20442044
if [ \\"$1\\" = \\"up\\" ]; then
@@ -2406,6 +2406,10 @@ notifyOrgsAboutChannels() {
24062406
deleteNewChannelUpdateTx \\"my-channel1\\" \\"Org2MSP\\" \\"cli.org2.example.com\\"
24072407
}
24082408
2409+
printStartSuccessInfo() {
2410+
printHeadline \\"Done! Enjoy your fresh network\\" \\"U1F984\\"
2411+
}
2412+
24092413
stopNetwork() {
24102414
printHeadline \\"Stopping network\\" \\"U1F68F\\"
24112415
(cd \\"$FABLO_NETWORK_ROOT\\"/fabric-docker && docker-compose stop)

e2e/__snapshots__/fablo-config-hlf1.4-1org-1chaincode-raft.json.test.ts.snap

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ networkUp() {
14491449
installChannels
14501450
installChaincodes
14511451
notifyOrgsAboutChannels
1452-
printHeadline \\"Done! Enjoy your fresh network\\" \\"U1F984\\"
1452+
printStartSuccessInfo
14531453
}
14541454
14551455
if [ \\"$1\\" = \\"up\\" ]; then
@@ -1762,6 +1762,10 @@ notifyOrgsAboutChannels() {
17621762
deleteNewChannelUpdateTx \\"my-channel1\\" \\"Org1MSP\\" \\"cli.org1.example.com\\"
17631763
}
17641764
1765+
printStartSuccessInfo() {
1766+
printHeadline \\"Done! Enjoy your fresh network\\" \\"U1F984\\"
1767+
}
1768+
17651769
stopNetwork() {
17661770
printHeadline \\"Stopping network\\" \\"U1F68F\\"
17671771
(cd \\"$FABLO_NETWORK_ROOT\\"/fabric-docker && docker-compose stop)

e2e/__snapshots__/fablo-config-hlf1.4-2orgs-1chaincode.json.test.ts.snap

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2064,7 +2064,7 @@ networkUp() {
20642064
installChannels
20652065
installChaincodes
20662066
notifyOrgsAboutChannels
2067-
printHeadline \\"Done! Enjoy your fresh network\\" \\"U1F984\\"
2067+
printStartSuccessInfo
20682068
}
20692069
20702070
if [ \\"$1\\" = \\"up\\" ]; then
@@ -2473,6 +2473,10 @@ notifyOrgsAboutChannels() {
24732473
deleteNewChannelUpdateTx \\"my-channel2\\" \\"Org2MSP\\" \\"cli.org2.example.com\\"
24742474
}
24752475
2476+
printStartSuccessInfo() {
2477+
printHeadline \\"Done! Enjoy your fresh network\\" \\"U1F984\\"
2478+
}
2479+
24762480
stopNetwork() {
24772481
printHeadline \\"Stopping network\\" \\"U1F68F\\"
24782482
(cd \\"$FABLO_NETWORK_ROOT\\"/fabric-docker && docker-compose stop)

e2e/__snapshots__/fablo-config-hlf1.4-2orgs-2chaincodes-private-data.yaml.test.ts.snap

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2045,7 +2045,7 @@ networkUp() {
20452045
installChannels
20462046
installChaincodes
20472047
notifyOrgsAboutChannels
2048-
printHeadline \\"Done! Enjoy your fresh network\\" \\"U1F984\\"
2048+
printStartSuccessInfo
20492049
}
20502050
20512051
if [ \\"$1\\" = \\"up\\" ]; then
@@ -2464,6 +2464,10 @@ notifyOrgsAboutChannels() {
24642464
deleteNewChannelUpdateTx \\"my-channel1\\" \\"Org2MSP\\" \\"cli.org2.example.com\\"
24652465
}
24662466
2467+
printStartSuccessInfo() {
2468+
printHeadline \\"Done! Enjoy your fresh network\\" \\"U1F984\\"
2469+
}
2470+
24672471
stopNetwork() {
24682472
printHeadline \\"Stopping network\\" \\"U1F68F\\"
24692473
(cd \\"$FABLO_NETWORK_ROOT\\"/fabric-docker && docker-compose stop)

e2e/__snapshots__/fablo-config-hlf1.4-2orgs-2chaincodes-raft.json.test.ts.snap

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2235,7 +2235,7 @@ networkUp() {
22352235
installChannels
22362236
installChaincodes
22372237
notifyOrgsAboutChannels
2238-
printHeadline \\"Done! Enjoy your fresh network\\" \\"U1F984\\"
2238+
printStartSuccessInfo
22392239
}
22402240
22412241
if [ \\"$1\\" = \\"up\\" ]; then
@@ -2688,6 +2688,10 @@ notifyOrgsAboutChannels() {
26882688
deleteNewChannelUpdateTx \\"my-channel2\\" \\"Org2MSP\\" \\"cli.org2.example.com\\"
26892689
}
26902690
2691+
printStartSuccessInfo() {
2692+
printHeadline \\"Done! Enjoy your fresh network\\" \\"U1F984\\"
2693+
}
2694+
26912695
stopNetwork() {
26922696
printHeadline \\"Stopping network\\" \\"U1F68F\\"
26932697
(cd \\"$FABLO_NETWORK_ROOT\\"/fabric-docker && docker-compose stop)

e2e/__snapshots__/fablo-config-hlf2-1org-1chaincode-raft-explorer.json.test.ts.snap

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@ networkUp() {
14761476
installChannels
14771477
installChaincodes
14781478
notifyOrgsAboutChannels
1479-
printHeadline \\"Done! Enjoy your fresh network\\" \\"U1F984\\"
1479+
printStartSuccessInfo
14801480
}
14811481
14821482
if [ \\"$1\\" = \\"up\\" ]; then
@@ -1761,6 +1761,10 @@ notifyOrgsAboutChannels() {
17611761
deleteNewChannelUpdateTx \\"my-channel1\\" \\"Org1MSP\\" \\"cli.org1.example.com\\"
17621762
}
17631763
1764+
printStartSuccessInfo() {
1765+
printHeadline \\"Done! Enjoy your fresh network\\" \\"U1F984\\"
1766+
}
1767+
17641768
stopNetwork() {
17651769
printHeadline \\"Stopping network\\" \\"U1F68F\\"
17661770
(cd \\"$FABLO_NETWORK_ROOT\\"/fabric-docker && docker-compose stop)

e2e/__snapshots__/fablo-config-hlf2-1org-1chaincode.json.test.ts.snap

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ networkUp() {
13861386
installChannels
13871387
installChaincodes
13881388
notifyOrgsAboutChannels
1389-
printHeadline \\"Done! Enjoy your fresh network\\" \\"U1F984\\"
1389+
printStartSuccessInfo
13901390
}
13911391
13921392
if [ \\"$1\\" = \\"up\\" ]; then
@@ -1713,6 +1713,10 @@ notifyOrgsAboutChannels() {
17131713
deleteNewChannelUpdateTx \\"my-channel1\\" \\"Org1MSP\\" \\"cli.org1.example.com\\"
17141714
}
17151715
1716+
printStartSuccessInfo() {
1717+
printHeadline \\"Done! Enjoy your fresh network\\" \\"U1F984\\"
1718+
}
1719+
17161720
stopNetwork() {
17171721
printHeadline \\"Stopping network\\" \\"U1F68F\\"
17181722
(cd \\"$FABLO_NETWORK_ROOT\\"/fabric-docker && docker-compose stop)

e2e/__snapshots__/fablo-config-hlf2-2orgs-2chaincodes-raft.yaml.test.ts.snap

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2973,7 +2973,7 @@ networkUp() {
29732973
installChannels
29742974
installChaincodes
29752975
notifyOrgsAboutChannels
2976-
printHeadline \\"Done! Enjoy your fresh network\\" \\"U1F984\\"
2976+
printStartSuccessInfo
29772977
}
29782978
29792979
if [ \\"$1\\" = \\"up\\" ]; then
@@ -3600,6 +3600,10 @@ notifyOrgsAboutChannels() {
36003600
deleteNewChannelUpdateTx \\"my-channel3\\" \\"Org2MSP\\" \\"cli.org2.example.com\\"
36013601
}
36023602
3603+
printStartSuccessInfo() {
3604+
printHeadline \\"Done! Enjoy your fresh network\\" \\"U1F984\\"
3605+
}
3606+
36033607
stopNetwork() {
36043608
printHeadline \\"Stopping network\\" \\"U1F68F\\"
36053609
(cd \\"$FABLO_NETWORK_ROOT\\"/fabric-docker && docker-compose stop)

e2e/__snapshots__/fablo-config-hlf2-3orgs-1chaincode-raft-explorer.json.test.ts.snap

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3268,7 +3268,7 @@ networkUp() {
32683268
installChannels
32693269
installChaincodes
32703270
notifyOrgsAboutChannels
3271-
printHeadline \\"Done! Enjoy your fresh network\\" \\"U1F984\\"
3271+
printStartSuccessInfo
32723272
}
32733273
32743274
if [ \\"$1\\" = \\"up\\" ]; then
@@ -3836,6 +3836,10 @@ notifyOrgsAboutChannels() {
38363836
deleteNewChannelUpdateTx \\"my-channel3\\" \\"Org2MSP\\" \\"cli.org2.example.com\\"
38373837
}
38383838
3839+
printStartSuccessInfo() {
3840+
printHeadline \\"Done! Enjoy your fresh network\\" \\"U1F984\\"
3841+
}
3842+
38393843
stopNetwork() {
38403844
printHeadline \\"Stopping network\\" \\"U1F68F\\"
38413845
(cd \\"$FABLO_NETWORK_ROOT\\"/fabric-docker && docker-compose stop)

src/setup-docker/templates/fabric-docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ networkUp() {
1919
installChannels
2020
installChaincodes
2121
notifyOrgsAboutChannels
22-
printHeadline "Done! Enjoy your fresh network" "U1F984"
22+
printStartSuccessInfo
2323
}
2424

2525
if [ "$1" = "up" ]; then

0 commit comments

Comments
 (0)