txreorderer

package
v0.2.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TxQueue            *queue.Queue
	TxBatchQueue       *queue.Queue
	MaxTxCountPerBatch uint32
	BatchTimeout       time.Duration
	Logger             *logger.SugarLogger
}

Config holds the configuration information need to start the transaction reorderer

type TxReorderer

type TxReorderer struct {
	// contains filtered or unexported fields
}

TxReorderer holds queue and other components needed to reorder transactions before creating a next batch of transactions to be included in the block

func New

func New(conf *Config) *TxReorderer

New creates a transaction reorderer

func (*TxReorderer) Start

func (r *TxReorderer) Start()

Start starts the transactions batch creator

func (*TxReorderer) Stop

func (r *TxReorderer) Stop()

Stop stops the transaction reorderer

func (*TxReorderer) WaitTillStart

func (r *TxReorderer) WaitTillStart()

WaitTillStart waits till the transaction reorderer is started

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL