Skip to content

Commit

Permalink
Ordere v3: remove sys chan: clean consensus (hyperledger#4190)
Browse files Browse the repository at this point in the history
Change-Id: I600362026a64d792782b3bf9d4037348821a4a4e

Signed-off-by: Yoav Tock <[email protected]>
  • Loading branch information
tock-ibm authored May 1, 2023
1 parent 6612020 commit d2007e7
Show file tree
Hide file tree
Showing 32 changed files with 266 additions and 791 deletions.
14 changes: 8 additions & 6 deletions orderer/common/follower/mocks/block_puller_factory.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion orderer/common/follower/mocks/chain_creator.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 12 additions & 8 deletions orderer/common/follower/mocks/channel_puller.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 4 additions & 32 deletions orderer/common/follower/mocks/cluster_consenter.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 16 additions & 12 deletions orderer/common/follower/mocks/ledger_resources.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions orderer/common/follower/mocks/signer_serializer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions orderer/common/follower/mocks/time_after.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 0 additions & 17 deletions orderer/common/multichannel/chainsupport.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ import (
"github.com/hyperledger/fabric/common/ledger/blockledger"
"github.com/hyperledger/fabric/internal/pkg/identity"
"github.com/hyperledger/fabric/orderer/common/blockcutter"
"github.com/hyperledger/fabric/orderer/common/localconfig"
"github.com/hyperledger/fabric/orderer/common/msgprocessor"
"github.com/hyperledger/fabric/orderer/common/types"
"github.com/hyperledger/fabric/orderer/consensus"
"github.com/hyperledger/fabric/orderer/consensus/inactive"
"github.com/hyperledger/fabric/protoutil"
"github.com/pkg/errors"
)
Expand Down Expand Up @@ -183,18 +181,3 @@ func (cs *ChainSupport) Sequence() uint64 {
func (cs *ChainSupport) Append(block *cb.Block) error {
return cs.ledgerResources.ReadWriter.Append(block)
}

func newOnBoardingChainSupport(
ledgerResources *ledgerResources,
config localconfig.TopLevel,
bccsp bccsp.BCCSP,
) (*ChainSupport, error) {
cs := &ChainSupport{ledgerResources: ledgerResources}
cs.Processor = msgprocessor.NewStandardChannel(cs, msgprocessor.CreateStandardChannelFilters(cs, config), bccsp)
cs.Chain = &inactive.Chain{Err: errors.New("system channel creation pending: server requires restart")}
cs.StatusReporter = consensus.StaticStatusReporter{ConsensusRelation: types.ConsensusRelationConsenter, Status: types.StatusInactive}

logger.Debugf("[channel: %s] Done creating onboarding channel support resources", cs.ChannelID())

return cs, nil
}
Loading

0 comments on commit d2007e7

Please sign in to comment.