Skip to content

Commit c9c22f0

Browse files
committed
[FAB-14324] remove peer.CreateChainFromBlock
Change-Id: I390f94a52d36e5d2651629c907ff27f0918ea1bc Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
1 parent 22c0be6 commit c9c22f0

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

core/peer/peer.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -457,16 +457,6 @@ func (p *Peer) OpenStore(cid string) (transientstore.Store, error) {
457457
return store, nil
458458
}
459459

460-
func CreateChainFromBlock(
461-
cb *common.Block,
462-
sccp sysccprovider.SystemChaincodeProvider,
463-
deployedCCInfoProvider ledger.DeployedChaincodeInfoProvider,
464-
legacyLifecycleValidation plugindispatcher.LifecycleResources,
465-
newLifecycleValidation plugindispatcher.CollectionAndLifecycleResources,
466-
) error {
467-
return Default.CreateChainFromBlock(cb, sccp, deployedCCInfoProvider, legacyLifecycleValidation, newLifecycleValidation)
468-
}
469-
470460
func (p *Peer) CreateChainFromBlock(
471461
cb *common.Block,
472462
sccp sysccprovider.SystemChaincodeProvider,

core/peer/peer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func TestCreateChainFromBlock(t *testing.T) {
174174
t.FailNow()
175175
}
176176

177-
err = CreateChainFromBlock(block, nil, &mock.DeployedChaincodeInfoProvider{}, nil, nil)
177+
err = Default.CreateChainFromBlock(block, nil, &mock.DeployedChaincodeInfoProvider{}, nil, nil)
178178
if err != nil {
179179
t.Fatalf("failed to create chain %s", err)
180180
}

internal/peer/node/start.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ func serve(args []string) error {
216216
policyMgr := peer.NewChannelPolicyManagerGetter()
217217
signingIdentity := mgmt.GetLocalSigningIdentityOrPanic()
218218

219+
// FIXME: Creating the gossip service has the side effect of starting a bunch
220+
// of go routines and registration with the grpc server.
219221
gossipService, err := initGossipService(
220222
policyMgr,
221223
metricsProvider,

0 commit comments

Comments
 (0)