Documentation ¶
Index ¶
- type TxData
- type TxMap
- type TxPool
- func (t *TxPool) AddEVMTransaction(id types.MessageID, v any, sig *sign.Transaction, evmTxHash string) types.TxHash
- func (t *TxPool) AddTransaction(id types.MessageID, v any, sig *sign.Transaction) types.TxHash
- func (t *TxPool) CopyTransactions(ctx context.Context) *TxPool
- func (t *TxPool) ForID(id types.MessageID) []TxData
- func (t *TxPool) GetAmountOfTxs() int
- func (t *TxPool) GetEVMTxs() []TxData
- func (t *TxPool) Transactions() TxMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TxPool ¶
type TxPool struct {
// contains filtered or unexported fields
}
func (*TxPool) AddEVMTransaction ¶
func (*TxPool) AddTransaction ¶
func (*TxPool) CopyTransactions ¶
CopyTransactions returns a copy of the TxPool, and resets the state to 0 values.
func (*TxPool) GetAmountOfTxs ¶
func (*TxPool) GetEVMTxs ¶
GetEVMTxs gets all the txs in the queue that originated from the EVM. NOTE: this is called ONLY in the copied tx queue in world.doTick, so we do not need to use the mutex here.
func (*TxPool) Transactions ¶
Click to show internal directories.
Click to hide internal directories.