diff --git a/orderer/multichain/chainsupport.go b/orderer/multichain/chainsupport.go index 1114f489e14..8114fed6103 100644 --- a/orderer/multichain/chainsupport.go +++ b/orderer/multichain/chainsupport.go @@ -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) diff --git a/orderer/multichain/chainsupport_test.go b/orderer/multichain/chainsupport_test.go index bf6015d789b..52911a3a472 100644 --- a/orderer/multichain/chainsupport_test.go +++ b/orderer/multichain/chainsupport_test.go @@ -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}