bundle

package
v1.11.1-rc3 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BundleFlagNetworkMainnet = 0x0001
	BundleFlagNetworkTestnet = 0x0002
	BundleFlagCarrierLibP2P  = 0x0010
	BundleFlagCompressed     = 0x0100
	BundleFlagBroadcasted    = 0x0200
	BundleFlagHandshaking    = 0x0400
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle struct {
	Flags           int
	Message         message.Message
	ConsensusHeight uint32
}

func NewBundle

func NewBundle(msg message.Message) *Bundle

func (*Bundle) BasicCheck added in v0.15.0

func (b *Bundle) BasicCheck() error

BasicCheck performs basic validation checks on the bundle and its message.

func (*Bundle) CompressIt

func (b *Bundle) CompressIt()

func (*Bundle) Decode

func (b *Bundle) Decode(r io.Reader) (int, error)

func (*Bundle) Encode

func (b *Bundle) Encode() ([]byte, error)

func (*Bundle) LogString added in v1.11.0

func (b *Bundle) LogString() string

LogString returns a concise string representation intended for use in logs.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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