Skip to content

Commit

Permalink
FAB-15511 Kafka2Raft-V1 cleanup #5
Browse files Browse the repository at this point in the history
Clean dead code from multichannel/registrar_test.go

Change-Id: Ib734da20f4609b5aad44e1778ede032165f18c97
Signed-off-by: Yoav Tock <tock@il.ibm.com>
  • Loading branch information
tock-ibm committed Jun 6, 2019
1 parent 4b249b7 commit 3fd414c
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions orderer/common/multichannel/registrar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,37 +47,6 @@ func newRAMLedgerAndFactory(maxSize int,
return rlf, rl
}

func newRAMLedgerAndFactory3Chan(maxSize int,
chainID string, genesisBlockSys *cb.Block,
chainID1 string, genesisBlockStd1 *cb.Block,
chainID2 string, genesisBlockStd2 *cb.Block) (blockledger.Factory, []blockledger.ReadWriter) {
var rls []blockledger.ReadWriter
rlf, rl := newRAMLedgerAndFactory(maxSize, chainID, genesisBlockSys)
rls = append(rls, rl)

rl, err := rlf.GetOrCreate(chainID1)
if err != nil {
panic(err)
}
err = rl.Append(genesisBlockStd1)
if err != nil {
panic(err)
}
rls = append(rls, rl)

rl, err = rlf.GetOrCreate(chainID2)
if err != nil {
panic(err)
}
err = rl.Append(genesisBlockStd2)
if err != nil {
panic(err)
}
rls = append(rls, rl)

return rlf, rls
}

func testMessageOrderAndRetrieval(maxMessageCount uint32, chainID string, chainSupport *ChainSupport, lr blockledger.ReadWriter, t *testing.T) {
messages := make([]*cb.Envelope, maxMessageCount)
for i := uint32(0); i < maxMessageCount; i++ {
Expand Down

0 comments on commit 3fd414c

Please sign in to comment.