Near-complete version of the tree algorithm in the transaction-chaining scheduler

This commit is contained in:
Luke Parker
2024-09-03 19:33:38 -04:00
parent 0601d47789
commit 8ff019265f
3 changed files with 138 additions and 46 deletions

View File

@@ -35,6 +35,11 @@ pub trait TransactionPlanner<S: ScannerFeed, A>: 'static + Send + Sync {
/// The type representing a signable transaction.
type SignableTransaction: SignableTransaction;
/// The maximum amount of inputs allowed in a transaction.
const MAX_INPUTS: usize;
/// The maximum amount of outputs allowed in a transaction, including the change output.
const MAX_OUTPUTS: usize;
/// Obtain the fee rate to pay.
///
/// This must be constant to the finalized block referenced by this block number and the coin.