Documentation
¶
Index ¶
- Constants
- Variables
- 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
Constants ¶
View Source
const (
DefaultPkgSize = 1024
)
Variables ¶
View Source
var ( ErrBlockNotFound = errors.New("Block not found") ErrPackageTooOld = errors.New("Package is too old") )
View Source
var ( ErrTxAlreadyExist = errors.New("the tx already exists in the pool of packer") ErrPoolNotBigEnough = errors.New("the tx pool doesn't have enough tx") ErrTransactionNotMatchPacker = errors.New("the transaction and the packer don't match") ErrIsBroadcastTx = errors.New("the transaction should be broadcast") )
View Source
var TxPackageType = reflect.TypeOf(types.TxPackage{})
Functions ¶
func NewPkgPool ¶
func NewPkgPool(conf config.PoolConfig, c *chain.BlockChain) pool.Pool
Types ¶
Click to show internal directories.
Click to hide internal directories.