Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
StreamChain Prototype
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
zistvan-public
StreamChain Prototype
Commits
67879d42
Commit
67879d42
authored
7 years ago
by
Christopher Ferris
Committed by
Gerrit Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "[FAB-4999] Cleanup ChainSupport interface"
parents
56d1a12c
80a2df4e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
orderer/common/broadcast/broadcast.go
+1
-2
1 addition, 2 deletions
orderer/common/broadcast/broadcast.go
orderer/multichain/chainsupport.go
+2
-15
2 additions, 15 deletions
orderer/multichain/chainsupport.go
with
3 additions
and
17 deletions
orderer/common/broadcast/broadcast.go
+
1
−
2
View file @
67879d42
...
...
@@ -33,8 +33,7 @@ var logger = logging.MustGetLogger("orderer/common/broadcast")
// ConfigUpdateProcessor is used to transform CONFIG_UPDATE transactions which are used to generate other envelope
// message types with preprocessing by the orderer
type
ConfigUpdateProcessor
interface
{
// Process takes in an envelope of type CONFIG_UPDATE and proceses it
// to transform it either into another envelope type
// Process transforms an envelope of type CONFIG_UPDATE to another type
Process
(
envConfigUpdate
*
cb
.
Envelope
)
(
*
cb
.
Envelope
,
error
)
}
...
...
This diff is collapsed.
Click to expand it.
orderer/multichain/chainsupport.go
+
2
−
15
View file @
67879d42
...
...
@@ -24,6 +24,7 @@ import (
"github.com/hyperledger/fabric/orderer/common/blockcutter"
"github.com/hyperledger/fabric/orderer/common/broadcast"
"github.com/hyperledger/fabric/orderer/common/configtxfilter"
"github.com/hyperledger/fabric/orderer/common/deliver"
"github.com/hyperledger/fabric/orderer/common/filter"
"github.com/hyperledger/fabric/orderer/common/sigfilter"
"github.com/hyperledger/fabric/orderer/common/sizefilter"
...
...
@@ -80,24 +81,10 @@ type ConsenterSupport interface {
// ChainSupport provides a wrapper for the resources backing a chain
type
ChainSupport
interface
{
// This interface is actually the union with the deliver.Support but because of a golang
// limitation https://github.com/golang/go/issues/6977 the methods must be explicitly declared
// PolicyManager returns the current policy manager as specified by the chain config
PolicyManager
()
policies
.
Manager
// Reader returns the chain Reader for the chain
Reader
()
ledger
.
Reader
// Errored returns whether the backing consenter has errored
Errored
()
<-
chan
struct
{}
broadcast
.
Support
deliver
.
Support
ConsenterSupport
// Sequence returns the current config sequence number
Sequence
()
uint64
// ProposeConfigUpdate applies a CONFIG_UPDATE to an existing config to produce a *cb.ConfigEnvelope
ProposeConfigUpdate
(
env
*
cb
.
Envelope
)
(
*
cb
.
ConfigEnvelope
,
error
)
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment