codec

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const NUM_HARDCODED_PAYLOADS_FOR_BLOCK_PAIR = 5 // txHeader, txMetadata, rxHeader..

Variables

This section is empty.

Functions

func DecodeBenchmarkConsensusCommitMessage

func DecodeBenchmarkConsensusCommitMessage(payloads [][]byte) (*gossipmessages.BenchmarkConsensusCommitMessage, error)

func DecodeBenchmarkConsensusCommittedMessage

func DecodeBenchmarkConsensusCommittedMessage(payloads [][]byte) (*gossipmessages.BenchmarkConsensusCommittedMessage, error)

func DecodeBlockAvailabilityRequest

func DecodeBlockAvailabilityRequest(payloads [][]byte) (*gossipmessages.BlockAvailabilityRequestMessage, error)

func DecodeBlockAvailabilityResponse

func DecodeBlockAvailabilityResponse(payloads [][]byte) (*gossipmessages.BlockAvailabilityResponseMessage, error)

func DecodeBlockPair

func DecodeBlockPair(payloads [][]byte) (*protocol.BlockPairContainer, error)

func DecodeBlockPairs

func DecodeBlockPairs(payloads [][]byte) (results []*protocol.BlockPairContainer, err error)

func DecodeBlockSyncRequest

func DecodeBlockSyncRequest(payloads [][]byte) (*gossipmessages.BlockSyncRequestMessage, error)

func DecodeBlockSyncResponse

func DecodeBlockSyncResponse(payloads [][]byte) (*gossipmessages.BlockSyncResponseMessage, error)

func DecodeForwardedTransactions

func DecodeForwardedTransactions(payloads [][]byte) (*gossipmessages.ForwardedTransactionsMessage, error)

func DecodeLeanHelixMessage

func DecodeLeanHelixMessage(header *gossipmessages.Header, payloads [][]byte) (*gossipmessages.LeanHelixMessage, error)

func EncodeBenchmarkConsensusCommitMessage

func EncodeBenchmarkConsensusCommitMessage(header *gossipmessages.Header, message *gossipmessages.BenchmarkConsensusCommitMessage) ([][]byte, error)

func EncodeBenchmarkConsensusCommittedMessage

func EncodeBenchmarkConsensusCommittedMessage(header *gossipmessages.Header, message *gossipmessages.BenchmarkConsensusCommittedMessage) ([][]byte, error)

func EncodeBlockAvailabilityRequest

func EncodeBlockAvailabilityRequest(header *gossipmessages.Header, message *gossipmessages.BlockAvailabilityRequestMessage) ([][]byte, error)

func EncodeBlockAvailabilityResponse

func EncodeBlockAvailabilityResponse(header *gossipmessages.Header, message *gossipmessages.BlockAvailabilityResponseMessage) ([][]byte, error)

func EncodeBlockPair

func EncodeBlockPair(blockPair *protocol.BlockPairContainer) ([][]byte, error)

func EncodeBlockPairs

func EncodeBlockPairs(blockPairs []*protocol.BlockPairContainer) ([][]byte, error)

func EncodeBlockSyncRequest

func EncodeBlockSyncRequest(header *gossipmessages.Header, message *gossipmessages.BlockSyncRequestMessage) ([][]byte, error)

func EncodeBlockSyncResponse

func EncodeBlockSyncResponse(header *gossipmessages.Header, message *gossipmessages.BlockSyncResponseMessage) ([][]byte, error)

func EncodeForwardedTransactions

func EncodeForwardedTransactions(header *gossipmessages.Header, message *gossipmessages.ForwardedTransactionsMessage) ([][]byte, error)

func EncodeLeanHelixMessage

func EncodeLeanHelixMessage(header *gossipmessages.Header, message *gossipmessages.LeanHelixMessage) ([][]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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