Documentation ¶
Index ¶
- type CertRequestBuffer
- func (c *CertRequestBuffer) Add(request *certification.BlockCertificationRequest, ...) (QuorumStatus, []*certification.BlockCertificationRequest, error)
- func (c *CertRequestBuffer) Clear(id protocol.SystemIdentifier)
- func (c *CertRequestBuffer) IsConsensusReceived(id protocol.SystemIdentifier, tb partitions.PartitionTrustBase) QuorumStatus
- func (c *CertRequestBuffer) Reset()
- type MsgVerification
- type Node
- type PartitionNet
- type QuorumStatus
- type Subscriptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertRequestBuffer ¶ added in v0.2.0
type CertRequestBuffer struct {
// contains filtered or unexported fields
}
func NewCertificationRequestBuffer ¶ added in v0.2.0
func NewCertificationRequestBuffer() *CertRequestBuffer
NewCertificationRequestBuffer create new certification nodeRequest buffer
func (*CertRequestBuffer) Add ¶ added in v0.2.0
func (c *CertRequestBuffer) Add(request *certification.BlockCertificationRequest, tb partitions.PartitionTrustBase) (QuorumStatus, []*certification.BlockCertificationRequest, error)
Add request to certification store. Per node id first valid request is stored. Rest are either duplicate or equivocating and in both cases error is returned. Clear or Reset in order to receive new nodeRequest
func (*CertRequestBuffer) Clear ¶ added in v0.2.0
func (c *CertRequestBuffer) Clear(id protocol.SystemIdentifier)
Clear clears node request in one partition
func (*CertRequestBuffer) IsConsensusReceived ¶ added in v0.2.0
func (c *CertRequestBuffer) IsConsensusReceived(id protocol.SystemIdentifier, tb partitions.PartitionTrustBase) QuorumStatus
IsConsensusReceived has partition with id reached consensus
func (*CertRequestBuffer) Reset ¶ added in v0.2.0
func (c *CertRequestBuffer) Reset()
Reset removed all incoming nodeRequest from all stores
type MsgVerification ¶ added in v0.2.0
type Node ¶ added in v0.2.0
type Node struct {
// contains filtered or unexported fields
}
func New ¶ added in v0.2.0
func New( p *network.Peer, pNet PartitionNet, ps partitions.PartitionConfiguration, cm consensus.Manager, ) (*Node, error)
New creates a new instance of the root chain node
type PartitionNet ¶ added in v0.2.0
type QuorumStatus ¶ added in v0.2.0
type QuorumStatus uint8
const ( QuorumInProgress QuorumStatus = iota QuorumAchieved QuorumNotPossible )
type Subscriptions ¶ added in v0.2.0
type Subscriptions struct {
// contains filtered or unexported fields
}
func NewSubscriptions ¶ added in v0.2.0
func NewSubscriptions() *Subscriptions
func (*Subscriptions) Get ¶ added in v0.2.0
func (s *Subscriptions) Get(id p.SystemIdentifier) []string
func (*Subscriptions) Subscribe ¶ added in v0.2.0
func (s *Subscriptions) Subscribe(id p.SystemIdentifier, nodeId string)
func (*Subscriptions) SubscriberError ¶ added in v0.2.0
func (s *Subscriptions) SubscriberError(id p.SystemIdentifier, nodeId string)
Click to show internal directories.
Click to hide internal directories.