Skip to content

Commit d40e10c

Browse files
author
Jason Yellick
committed
BROKEN_BUILD Fix orderer merge problem
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 <[email protected]>
1 parent 6f8939f commit d40e10c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

orderer/multichain/chainsupport.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func newChainSupport(
125125
// Assuming a block created with cb.NewBlock(), this should not
126126
// error even if the orderer metadata is an empty byte slice
127127
if err != nil {
128-
logger.Fatalf("Error extracting orderer metadata for chain %x: %s", configManager.ChainID(), err)
128+
logger.Fatalf("Error extracting orderer metadata for chain %x: %s", cs.ChainID(), err)
129129
}
130130

131131
cs.chain, err = consenter.HandleChain(cs, metadata)

orderer/multichain/chainsupport_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func TestWriteBlockSignatures(t *testing.T) {
100100
func TestWriteBlockOrdererMetadata(t *testing.T) {
101101
ml := &mockLedgerReadWriter{}
102102
cm := &mockconfigtx.Manager{}
103-
cs := &chainSupport{ledger: ml, configManager: cm, signer: &xxxCryptoHelper{}}
103+
cs := &chainSupport{ledgerResources: &ledgerResources{configResources: &configResources{Manager: cm}, ledger: ml}, signer: &xxxCryptoHelper{}}
104104

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

0 commit comments

Comments
 (0)