p2p

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GNodeInfo

type GNodeInfo struct {
	net.DefaultNodeInfo
}

NodeInfo is the basic node information exchanged between two peers during the Tendermint P2P handshake.

func (*GNodeInfo) Marshal

func (info *GNodeInfo) Marshal() ([]byte, error)

Marshal returns the amino encoding.

func (*GNodeInfo) MarshalTo

func (info *GNodeInfo) MarshalTo(data []byte) (int, error)

MarshalTo calls Marshal and copies to the given buffer.

func (*GNodeInfo) Size

func (info *GNodeInfo) Size() int

func (*GNodeInfo) Unmarshal

func (info *GNodeInfo) Unmarshal(bs []byte) error

Unmarshal deserializes from amino encoded form.

Jump to

Keyboard shortcuts

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