Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sealer ¶
type Sealer struct { SealedCh chan *SealedNotify // contains filtered or unexported fields }
Sealer seals blocks
func NewSealer ¶
func NewSealer(config *Config, logger hclog.Logger, blockchain *blockchain.Blockchain, engine consensus.Consensus, executor *state.Executor) *Sealer
NewSealer creates a new sealer for a specific engine
func (*Sealer) AddTx ¶
func (s *Sealer) AddTx(tx *types.Transaction) error
AddTx adds a new transaction to the transaction pool
func (*Sealer) SetEnabled ¶
SetEnabled enables or disables the sealer
type TxPool ¶
type TxPool struct {
// contains filtered or unexported fields
}
TxPool is a pool of transactions
func NewTxPool ¶
func NewTxPool(blockchain *blockchain.Blockchain) *TxPool
NewTxPool creates a new pool of transactios
func (*TxPool) Add ¶
func (t *TxPool) Add(tx *types.Transaction) error
Add adds a new transaction to the pool
func (*TxPool) Pending ¶
func (t *TxPool) Pending() []*types.Transaction
Click to show internal directories.
Click to hide internal directories.