mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
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:
@@ -40,7 +40,11 @@ impl primitives::Block for Block {
|
||||
self.0.block.hash()
|
||||
}
|
||||
|
||||
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> {
|
||||
let mut scanner = GuaranteedScanner::new(view_pair(key));
|
||||
scanner.register_subaddress(EXTERNAL_SUBADDRESS);
|
||||
scanner.register_subaddress(BRANCH_SUBADDRESS);
|
||||
|
||||
Reference in New Issue
Block a user