wire

package
v0.0.0-...-041d6b2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InvalidInvType = iota
	TxInvType
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GetMempoolTxsArg

type GetMempoolTxsArg struct {
	Items [][]byte
}

type GetMempoolTxsReply

type GetMempoolTxsReply struct {
	Transactions []types.Transaction
	NotFoundTxs  [][]byte
}

type GetRangeOfBlocksArg

type GetRangeOfBlocksArg struct {
	From uint64
	To   uint64
}

type GetRangeOfBlocksReply

type GetRangeOfBlocksReply struct {
	Blocks             []types.Block
	FailedBlockHeights []uint64 // list of block heights the node was unable to retrieve
}

type InvItem

type InvItem struct {
	Type InvType
	Hash []byte
}

type InvMessage

type InvMessage struct {
	Inventory []InvItem
}

type InvType

type InvType int

type LastBlockHeightReply

type LastBlockHeightReply struct {
	Height uint64
}

Jump to

Keyboard shortcuts

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