txpoolCache

package
v0.0.0-...-c3c44a6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Copyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php

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