legacy

package
v0.4.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const FeatureSet = 1 << 0

FeatureSet denotes the version bit for legacy messages support.

View Source
const FeatureSetName = "Legacy-Gossip"

FeatureSetName is the name of the legacy feature set.

View Source
const (
	// The transaction payload + requested transaction hash gossipping packet.
	// In reality most of this packets won't take up their full 1604 bytes as the
	// signature message fragment of the tx is truncated.
	MessageTypeTransactionAndRequest message.Type = 2
)
View Source
const (
	// The amount of bytes used for the requested transaction hash.
	RequestedTransactionHashMsgBytesLength = 49
)

Variables

View Source
var (
	TransactionAndRequestMessageDefinition = &message.Definition{
		ID:             MessageTypeTransactionAndRequest,
		MaxBytesLength: RequestedTransactionHashMsgBytesLength + consts.NonSigTxPartBytesLength + consts.SigDataMaxBytesLength,
		VariableLength: true,
	}
)

Functions

func NewTransactionAndRequestMessage

func NewTransactionAndRequestMessage(truncatedTxData []byte, requestedHash []byte) ([]byte, error)

NewTransactionAndRequestMessage creates a new transaction and request message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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