ext

package
v0.0.0-...-5fb9e85 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package ext external data

@author: xwc1125

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetBlockHeadersData

type GetBlockHeadersData struct {
	Origin  HashOrNumber // 区块检索头
	Amount  uint64       // 检索最大的个数
	Reverse bool         // 查询方向,false:往最新区块方向查询,true:往创世块方向查询
}

type HashOrNumber

type HashOrNumber struct {
	Hash   types.Hash // 区块Hash
	Number uint64     // 区块高度
}

HashOrNumber hash或数字对象

func (*HashOrNumber) DecodeRLP

func (hn *HashOrNumber) DecodeRLP(s *rlp.Stream) error

func (*HashOrNumber) EncodeRLP

func (hn *HashOrNumber) EncodeRLP(w io.Writer) error

Jump to

Keyboard shortcuts

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