Skip to content

Commit

Permalink
BROKEN_BUILD Fix orderer merge problem
Browse files Browse the repository at this point in the history
The multichain package in orderer was refactored and merged which caused
a code conflict in multichain/chainsupport.go.  This fixes that.

Change-Id: Ia29368c80448fe1d22f1fe9dacd70ca6f96812c3
Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
  • Loading branch information
Jason Yellick committed Jan 23, 2017
1 parent 6f8939f commit d40e10c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion orderer/multichain/chainsupport.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func newChainSupport(
// Assuming a block created with cb.NewBlock(), this should not
// error even if the orderer metadata is an empty byte slice
if err != nil {
logger.Fatalf("Error extracting orderer metadata for chain %x: %s", configManager.ChainID(), err)
logger.Fatalf("Error extracting orderer metadata for chain %x: %s", cs.ChainID(), err)
}

cs.chain, err = consenter.HandleChain(cs, metadata)
Expand Down
2 changes: 1 addition & 1 deletion orderer/multichain/chainsupport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func TestWriteBlockSignatures(t *testing.T) {
func TestWriteBlockOrdererMetadata(t *testing.T) {
ml := &mockLedgerReadWriter{}
cm := &mockconfigtx.Manager{}
cs := &chainSupport{ledger: ml, configManager: cm, signer: &xxxCryptoHelper{}}
cs := &chainSupport{ledgerResources: &ledgerResources{configResources: &configResources{Manager: cm}, ledger: ml}, signer: &xxxCryptoHelper{}}

value := []byte("foo")
expected := &cb.Metadata{Value: value}
Expand Down

0 comments on commit d40e10c

Please sign in to comment.