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 SourceTransactionComparer
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 SourceGetMempoolTransactionsByPriority(Int32)
Use this method to retrieve the top
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 |