Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Observability ¶
type TxBuffer ¶
type TxBuffer struct {
// contains filtered or unexported fields
}
TxBuffer is an in-memory data structure containing the set of unconfirmed transactions.
func New ¶
New creates a new instance of the TxBuffer. MaxSize specifies the total number of transactions the TxBuffer may contain.
func (*TxBuffer) Add ¶
Add adds the given transaction into the transaction buffer. Returns an error if the transaction is nil, is already present in the TxBuffer, or TxBuffer is full.
func (*TxBuffer) HashAlgorithm ¶
Click to show internal directories.
Click to hide internal directories.