Documentation
¶
Index ¶
- Constants
- Variables
- type Mempool
- func (mp *Mempool) DeleteTx(txHash []byte) error
- func (mp *Mempool) GetAllTransactions() []*types2.Transaction
- func (mp *Mempool) GetTransaction(hash []byte) (*types2.Transaction, error)
- func (mp *Mempool) GetTransactionsForNewBlock() []*types2.Transaction
- func (mp *Mempool) StoreTx(tx *types2.Transaction) error
Constants ¶
View Source
const ( DefaultTxTTL = 10 * time.Minute DefaultTxPrefix = "tx_" )
Variables ¶
View Source
var (
ErrTxNotFound = errors.New("tx isn't found in mempool")
)
Functions ¶
This section is empty.
Types ¶
type Mempool ¶
type Mempool struct {
// contains filtered or unexported fields
}
func NewMempool ¶
func (*Mempool) GetAllTransactions ¶
func (mp *Mempool) GetAllTransactions() []*types2.Transaction
func (*Mempool) GetTransaction ¶
func (mp *Mempool) GetTransaction(hash []byte) (*types2.Transaction, error)
func (*Mempool) GetTransactionsForNewBlock ¶
func (mp *Mempool) GetTransactionsForNewBlock() []*types2.Transaction
Click to show internal directories.
Click to hide internal directories.