Pass the latest active key to the Block's scan function

Effectively necessary for networks on which we utilize account abstraction in
order to know what key to associate the received coins with.
This commit is contained in:
Luke Parker
2024-09-19 01:00:31 -04:00
parent 118d81bc90
commit 673cf8fd47
9 changed files with 60 additions and 10 deletions

View File

@@ -43,7 +43,11 @@ pub trait Block: Send + Sync + Sized + Clone + Debug {
/// Scan all outputs within this block to find the outputs spendable by this key.
///
/// No assumption on the order of the returned outputs is made.
fn scan_for_outputs_unordered(&self, key: Self::Key) -> Vec<Self::Output>;
fn scan_for_outputs_unordered(
&self,
latest_active_key: Self::Key,
key: Self::Key,
) -> Vec<Self::Output>;
/// Check if this block resolved any Eventualities.
///