Versions in this module Expand all Collapse all v0 v0.2.2 May 2, 2020 v0.2.1 Nov 19, 2019 Changes in this version + const DefaultPkgSize + var ErrBlockNotFound = errors.New("Block not found") + var ErrIsBroadcastTx = errors.New("the transaction should be broadcast") + var ErrPackageTooOld = errors.New("Package is too old") + var ErrPoolNotBigEnough = errors.New("the tx pool doesn't have enough tx") + var ErrTransactionNotMatchPacker = errors.New("the transaction and the packer don't match") + var ErrTxAlreadyExist = errors.New("the tx already exists in the pool of packer") + var TxPackageType = reflect.TypeOf(types.TxPackage{}) + func ElemsToTxPkgHashes(elems []pool.Element) []common.Hash + func ElemsToTxPkgs(elems []pool.Element) []*types.TxPackage + func NewPacker(cfg *config.Config, pkgPool pool.Pool, packerKeyManager packerKeyManager, ...) packer.Packer + func NewPkgPool(conf config.PoolConfig, c *chain.BlockChain) pool.Pool + type PkgHelper struct + func (h *PkgHelper) Reset(pool pool.Pool, block *types.Block) + func (h *PkgHelper) Sender(ele pool.Element) (common.Address, error) + func (h *PkgHelper) Validate(p pool.Pool, ele pool.Element, currentState pool.StateDB, ...) error