Commit dadf429 1 parent c08c536 commit dadf429 Copy full SHA for dadf429
File tree 2 files changed +13
-11
lines changed
2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,11 @@ limitations under the License.
16
16
17
17
package api
18
18
19
- import "time"
19
+ import (
20
+ "time"
21
+
22
+ "github.com/hyperledger/fabric/gossip/common"
23
+ )
20
24
21
25
// SecurityAdvisor defines an external auxiliary object
22
26
// that provides security and identity related capabilities
@@ -33,7 +37,7 @@ type SecurityAdvisor interface {
33
37
// ChannelNotifier is implemented by the gossip component and is used for the peer
34
38
// layer to notify the gossip component of a JoinChannel event
35
39
type ChannelNotifier interface {
36
- JoinChannel (joinMsg JoinChannelMessage , chainID ChainID )
40
+ JoinChannel (joinMsg JoinChannelMessage , chainID common. ChainID )
37
41
}
38
42
39
43
// JoinChannelMessage is the message that asserts a creation or mutation
@@ -48,9 +52,6 @@ type JoinChannelMessage interface {
48
52
Members () []ChannelMember
49
53
}
50
54
51
- // ChainID defines the identity representation of a chain
52
- type ChainID []byte
53
-
54
55
// ChannelMember is a peer's certificate and endpoint (host:port)
55
56
type ChannelMember struct {
56
57
Cert PeerCert // Cert defines the certificate of the remote peer
Original file line number Diff line number Diff line change @@ -16,8 +16,6 @@ limitations under the License.
16
16
17
17
package common
18
18
19
- import "github.com/hyperledger/fabric/gossip/api"
20
-
21
19
// PKIidType defines the type that holds the PKI-id
22
20
// which is the security identifier of a peer
23
21
type PKIidType []byte
@@ -29,8 +27,11 @@ type MessageAcceptor func(interface{}) bool
29
27
30
28
// Payload defines an object that contains a ledger block
31
29
type Payload struct {
32
- ChainID api. ChainID // The channel's ID of the block
33
- Data []byte // The content of the message, possibly encrypted or signed
34
- Hash string // The message hash
35
- SeqNum uint64 // The message sequence number
30
+ ChainID ChainID // The channel's ID of the block
31
+ Data []byte // The content of the message, possibly encrypted or signed
32
+ Hash string // The message hash
33
+ SeqNum uint64 // The message sequence number
36
34
}
35
+
36
+ // ChainID defines the identity representation of a chain
37
+ type ChainID []byte
You can’t perform that action at this time.
0 commit comments