bp

package
v0.6.1-alpha.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregatedBatchProposals

type AggregatedBatchProposals struct {
	// contains filtered or unexported fields
}

Here we store just an aggregated info.

func AggregateBatchProposals

func AggregateBatchProposals(inputs map[gpa.NodeID][]byte, nodeIDs []gpa.NodeID, f int, log *logger.Logger) *AggregatedBatchProposals

func (*AggregatedBatchProposals) AggregatedTime

func (abp *AggregatedBatchProposals) AggregatedTime() time.Time

func (*AggregatedBatchProposals) DecidedBaseAliasOutput

func (abp *AggregatedBatchProposals) DecidedBaseAliasOutput() *isc.AliasOutputWithID

func (*AggregatedBatchProposals) DecidedDSSIndexProposals

func (abp *AggregatedBatchProposals) DecidedDSSIndexProposals() map[gpa.NodeID][]int

func (*AggregatedBatchProposals) DecidedRequestRefs

func (abp *AggregatedBatchProposals) DecidedRequestRefs() []*isc.RequestRef

func (*AggregatedBatchProposals) OrderedRequests

func (abp *AggregatedBatchProposals) OrderedRequests(requests []isc.Request, randomness hashing.HashValue) []isc.Request

func (*AggregatedBatchProposals) ShouldBeSkipped

func (abp *AggregatedBatchProposals) ShouldBeSkipped() bool

func (*AggregatedBatchProposals) ValidatorFeeTarget

func (abp *AggregatedBatchProposals) ValidatorFeeTarget() isc.AgentID

type BatchProposal

type BatchProposal struct {
	// contains filtered or unexported fields
}

func NewBatchProposal

func NewBatchProposal(
	nodeIndex uint16,
	baseAliasOutput *isc.AliasOutputWithID,
	dssIndexProposal util.BitVector,
	timeData time.Time,
	feeDestination isc.AgentID,
	requestRefs []*isc.RequestRef,
) *BatchProposal

func (*BatchProposal) Bytes

func (b *BatchProposal) Bytes() []byte

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL