Skip to content

Commit

Permalink
[FAB-7556] check for bad config in channel tx
Browse files Browse the repository at this point in the history
Bad configs will cause channel config components to
return nil channelconfig. This can happen with
handcrafted configs using configtxlator tool.

This is really a side effect of not catching an earlier
error. Fixing the root cause.

Change-Id: I01828d8e2c1520a3c694c49587e5aca3867681d3
Signed-off-by: Srinivasan Muralidharan <srinivasan.muralidharan99@gmail.com>
  • Loading branch information
muralisrini committed Jan 24, 2018
1 parent f3ea98e commit de1051b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/peer/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,9 @@ func createChain(cid string, ledger ledger.PeerLedger, cb *common.Block) error {
}

rBundle, err := resourcesconfig.NewBundle(cid, resConf, bundle)
if err != nil {
return err
}

cs.bundleSource = resourcesconfig.NewBundleSource(
rBundle,
Expand Down

0 comments on commit de1051b

Please sign in to comment.