txpoolCache

package
v0.0.0-...-ddf2b42 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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