Show / Hide Table of Contents

    Interface IDeltaTransactionRetriever

    The service in charge of finding the transactions that should be included in a ledger update (aka Delta) for a given cycle.

    Namespace: Catalyst.Abstractions.Consensus.Deltas
    Assembly: Catalyst.Abstractions.dll
    Syntax
    public interface IDeltaTransactionRetriever

    Properties

    | Improve this Doc View Source

    TransactionComparer

    A comparer used to order transactions, notably in the mempool, by descending order of priority. In Catalyst network, all delta producers need to agree on the set of transactions that should be included in the next ledger update. This interface should be used to order transactions and decide whether they should be included or not.

    Declaration
    ITransactionComparer TransactionComparer { get; }
    Property Value
    Type Description
    ITransactionComparer

    Methods

    | Improve this Doc View Source

    GetMempoolTransactionsByPriority(Int32)

    Use this method to retrieve the top transactions in order of priority. The priority is the order in which transactions should be included in the next candidate delta, and relies on the implementation of the TransactionComparer

    Declaration
    IList<TransactionBroadcast> GetMempoolTransactionsByPriority(int maxCount = 2147483647)
    Parameters
    Type Name Description
    System.Int32 maxCount

    The maximum number of transactions to be returned by the method.

    Returns
    Type Description
    System.Collections.Generic.IList<TransactionBroadcast>

    The top transactions in order of

    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network