bp

package
v1.0.1-rc.5 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 12 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

TODO should this be moved to the VM?

func (*AggregatedBatchProposals) ShouldBeSkipped

func (abp *AggregatedBatchProposals) ShouldBeSkipped() bool

func (*AggregatedBatchProposals) ValidatorFeeTarget

func (abp *AggregatedBatchProposals) ValidatorFeeTarget(randomness hashing.HashValue) 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,
	validatorFeeDestination isc.AgentID,
	requestRefs []*isc.RequestRef,
) *BatchProposal

func (*BatchProposal) Bytes

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

func (*BatchProposal) Read

func (b *BatchProposal) Read(r io.Reader) error

func (*BatchProposal) Write

func (b *BatchProposal) Write(w io.Writer) error

Jump to

Keyboard shortcuts

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