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

@@ -277,6 +277,7 @@ pub trait Scheduler<S: ScannerFeed>: 'static + Send {
fn update(
&mut self,
txn: &mut impl DbTxn,
block: &BlockFor<S>,
active_keys: &[(KeyFor<S>, LifetimeStage)],
update: SchedulerUpdate<S>,
) -> HashMap<Vec<u8>, Vec<EventualityFor<S>>>;
@@ -316,6 +317,7 @@ pub trait Scheduler<S: ScannerFeed>: 'static + Send {
fn fulfill(
&mut self,
txn: &mut impl DbTxn,
block: &BlockFor<S>,
active_keys: &[(KeyFor<S>, LifetimeStage)],
payments: Vec<Payment<AddressFor<S>>>,
) -> HashMap<Vec<u8>, Vec<EventualityFor<S>>>;