@@ -24,6 +24,7 @@ const (
2424 defaultChaincodeImageTag = "latest"
2525 defaultChaincodeMRENCLAVE = "fakeMRENCLAVE"
2626 defaultLoggingSpec = "info"
27+ defaultBlockchainExplorer = "YES"
2728)
2829
2930func Fabric () []api.Topology {
@@ -41,16 +42,18 @@ func Fabric() []api.Topology {
4142 // bring hyperledger explorer into the game
4243 // you can reach it http://localhost:8080 with admin:admin
4344 monitoringTopology := monitoring .NewTopology ()
44- monitoringTopology .EnableHyperledgerExplorer ()
45-
45+ if config .blockchainExplorer == "YES" {
46+ monitoringTopology .EnableHyperledgerExplorer ()
47+ }
4648 return []api.Topology {fabricTopology , fsc .NewTopology (), monitoringTopology }
4749}
4850
4951type config struct {
50- loggingSpec string
51- chaincodeName string
52- chaincodeImage string
53- fpcOptions []func (chaincode * topology.ChannelChaincode )
52+ loggingSpec string
53+ chaincodeName string
54+ chaincodeImage string
55+ blockchainExplorer string
56+ fpcOptions []func (chaincode * topology.ChannelChaincode )
5457}
5558
5659// setup prepares a config helper struct, containing some additional configuration that can be injected via environment variables
@@ -75,6 +78,12 @@ func setup() *config {
7578 config .chaincodeImage = fmt .Sprintf ("%s:%s" , defaultChaincodeImageName , defaultChaincodeImageTag )
7679 }
7780
81+ // export BE_INSTALL=YES or NO
82+ config .blockchainExplorer = os .Getenv ("BE_INSTALL" )
83+ if len (config .blockchainExplorer ) == 0 {
84+ config .blockchainExplorer = defaultBlockchainExplorer
85+ }
86+
7887 // get mrenclave
7988 mrenclave := os .Getenv ("FPC_MRENCLAVE" )
8089 if len (mrenclave ) == 0 {
0 commit comments