Skip to content

Commit

Permalink
Remove dead code in genesis pkg
Browse files Browse the repository at this point in the history
No invocation path found for config.go in genesis package,
After remove config.go, the genesisBlock item in config file
is also no needed.

Change-Id: I093ef40027a67e1070bdc0fde6e8edcf6f34dd2e
Signed-off-by: grapebaba <281165273@qq.com>
  • Loading branch information
GrapeBaBa committed Aug 4, 2016
1 parent ab56c33 commit cd71ca9
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 126 deletions.
14 changes: 0 additions & 14 deletions core/chaincode/chaincodetest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -408,20 +408,6 @@ ledger:

blockchain:

# Define the genesis block
genesisBlock:

# Deploy chaincodes into the genesis block
chaincodes:

#sample_syscc:
# path: github.com/hyperledger/fabric/core/system_chaincode/sample_syscc
# type: GOLANG
# constructor:
# args:
# - greetings
# - hello world

# Setting the deploy-system-chaincode property to false will prevent the
# deploying of system chaincode at genesis time.
deploy-system-chaincode: false
Expand Down
42 changes: 0 additions & 42 deletions core/ledger/genesis/config.go

This file was deleted.

3 changes: 1 addition & 2 deletions core/ledger/genesis/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ var genesisLogger = logging.MustGetLogger("genesis")
var makeGenesisError error
var once sync.Once

// MakeGenesis creates the genesis block based on configuration in core.yaml
// and adds it to the blockchain.
// MakeGenesis creates the genesis block and adds it to the blockchain.
func MakeGenesis() error {
once.Do(func() {
ledger, err := ledger.GetLedger()
Expand Down
15 changes: 0 additions & 15 deletions core/ledger/genesis/genesis_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,21 +211,6 @@ ledger:

blockchain:

# Define the genesis block
genesisBlock:

# Deploy chaincodes into the genesis block
chaincode:
path: github.com/hyperledger/fabric/core/example/chaincode/chaincode_example01
type: GOLANG
constructor:
func: init
args:
- alice
- "4"
- bob
- "10"

state:

# Control the number state deltas that are maintained. This takes additional
Expand Down
3 changes: 0 additions & 3 deletions core/rest/rest_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,6 @@ ledger:

blockchain:

# Define the genesis block
genesisBlock:

state:

# Control the number state deltas that are maintained. This takes additional
Expand Down
15 changes: 0 additions & 15 deletions examples/chaincode/go/asset_management02/asset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -422,21 +422,6 @@ ledger:

blockchain:

# Define the genesis block
genesisBlock:

# Deploy chaincodes into the genesis block
# chaincode:
# path: github.com/hyperledger/fabric/core/example/chaincode/chaincode_example01
# type: GOLANG
# constructor:
# func: init
# args:
# - alice
# - "4"
# - bob
# - "10"

# Setting the deploy-system-chaincode property to false will prevent the
# deploying of system chaincode at genesis time.
deploy-system-chaincode: false
Expand Down
15 changes: 0 additions & 15 deletions examples/chaincode/go/asset_management_with_roles/asset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -397,21 +397,6 @@ ledger:

blockchain:

# Define the genesis block
genesisBlock:

# Deploy chaincodes into the genesis block
# chaincode:
# path: github.com/hyperledger/fabric/core/example/chaincode/chaincode_example01
# type: GOLANG
# constructor:
# func: init
# args:
# - alice
# - "4"
# - bob
# - "10"

# Setting the deploy-system-chaincode property to false will prevent the
# deploying of system chaincode at genesis time.
deploy-system-chaincode: false
Expand Down
17 changes: 0 additions & 17 deletions membersrvc/ca/ca_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -265,23 +265,6 @@ ledger:

blockchain:

# Define the genesis block
genesisBlock:

# Deploy chaincodes into the genesis block
# chaincode:
# - id:
# url: github.com/hyperledger/fabric/core/example/chaincode/chaincode_example01
# version: 0.1.0
# type: GOLANG
# constructor:
# func: init
# args:
# - alice
# - "4"
# - bob
# - "10"

state:

# Control the number state deltas that are maintained. This takes additional
Expand Down
3 changes: 0 additions & 3 deletions peer/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,6 @@ ledger:

blockchain:

# Define the genesis block
genesisBlock:

state:

# Control the number state deltas that are maintained. This takes additional
Expand Down

0 comments on commit cd71ca9

Please sign in to comment.