Documentation ¶
Index ¶
- Constants
- type Batcher
- func (m *Batcher) PendingSnapshot() (*snapshot.Snapshot, error)
- func (m *Batcher) PendingTransactionCount(_ context.Context, account common.Address) *uint64
- func (m *Batcher) SendTransaction(_ context.Context, tx *types.Transaction) error
- func (m *Batcher) SubscribeNewTxsEvent(ch chan<- core.NewTxsEvent) event.Subscription
- type Forwarder
- func (b *Forwarder) PendingSnapshot() (*snapshot.Snapshot, error)
- func (b *Forwarder) PendingTransactionCount(ctx context.Context, account common.Address) *uint64
- func (b *Forwarder) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (b *Forwarder) SubscribeNewTxsEvent(ch chan<- core.NewTxsEvent) event.Subscription
- type TransactionBatcher
- type TxHeap
Constants ¶
View Source
const ( SKIP = iota ACCEPT REMOVE FULL )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batcher ¶
func NewStatefulBatcher ¶
func NewStatelessBatcher ¶
func (*Batcher) PendingTransactionCount ¶
func (*Batcher) SendTransaction ¶
SendTransaction takes a request signed transaction l2message from a client and puts it in a queue to be included in the next transaction batch
func (*Batcher) SubscribeNewTxsEvent ¶
func (m *Batcher) SubscribeNewTxsEvent(ch chan<- core.NewTxsEvent) event.Subscription
type Forwarder ¶
type Forwarder struct {
// contains filtered or unexported fields
}
func NewForwarder ¶
func (*Forwarder) PendingSnapshot ¶
func (*Forwarder) PendingTransactionCount ¶
Return nil if no pending transaction count is available
func (*Forwarder) SendTransaction ¶
func (*Forwarder) SubscribeNewTxsEvent ¶
func (b *Forwarder) SubscribeNewTxsEvent(ch chan<- core.NewTxsEvent) event.Subscription
type TransactionBatcher ¶
type TransactionBatcher interface { // Return nil if no pending transaction count is available PendingTransactionCount(ctx context.Context, account common.Address) *uint64 SendTransaction(ctx context.Context, tx *types.Transaction) error SubscribeNewTxsEvent(ch chan<- core.NewTxsEvent) event.Subscription // Return nil if no pending snapshot is available PendingSnapshot() (*snapshot.Snapshot, error) }
type TxHeap ¶
type TxHeap []*types.Transaction
An TxHeap is a min-heap of transactions sorted by nonce.
Click to show internal directories.
Click to hide internal directories.