txpoolCache

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: MIT Imports: 4 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TXCStruct = new(TxCaCheListstruct)

Functions

func DeleteTxCache

func DeleteTxCache(hash common.Hash, h uint64)

func GetTxByN_Cache

func GetTxByN_Cache(listn []uint32, h uint64) map[uint32]types.SelfTransaction

h 传过来时应该是当前区块高度,而在这存储的是下一区块的高度

func MakeStruck

func MakeStruck(txser []types.SelfTransaction, hash common.Hash, h uint64)

Types

type TxCaChe

type TxCaChe struct {
	Ntx      map[uint32]types.SelfTransaction
	HeadHash common.Hash
	Height   uint64
}

type TxCaCheListstruct

type TxCaCheListstruct struct {
	TxCaCheList []*TxCaChe
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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