v0

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MaxInvPerMsg = 100

Variables

This section is empty.

Functions

This section is empty.

Types

type GetData

type GetData struct {
	Hash common.Uint256
}

func NewGetData

func NewGetData(hash common.Uint256) *GetData

func (*GetData) CMD

func (msg *GetData) CMD() string

func (*GetData) Deserialize

func (msg *GetData) Deserialize(r io.Reader) error

func (*GetData) MaxLength

func (msg *GetData) MaxLength() uint32

func (*GetData) Serialize

func (msg *GetData) Serialize(w io.Writer) error

type Inv

type Inv struct {
	Hashes []*common.Uint256
}

func NewInv

func NewInv(hashes []*common.Uint256) *Inv

func (*Inv) CMD

func (msg *Inv) CMD() string

func (*Inv) Deserialize

func (msg *Inv) Deserialize(r io.Reader) error

func (*Inv) MaxLength

func (msg *Inv) MaxLength() uint32

func (*Inv) Serialize

func (msg *Inv) Serialize(w io.Writer) error

type NotFound

type NotFound struct {
	Hash common.Uint256
}

func NewNotFound

func NewNotFound(hash common.Uint256) *NotFound

func (*NotFound) CMD

func (msg *NotFound) CMD() string

func (*NotFound) Deserialize

func (msg *NotFound) Deserialize(r io.Reader) error

func (*NotFound) MaxLength

func (msg *NotFound) MaxLength() uint32

func (*NotFound) Serialize

func (msg *NotFound) Serialize(w io.Writer) error

Jump to

Keyboard shortcuts

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