Differentiate BlockHeader from Block

This commit is contained in:
Luke Parker
2024-08-20 16:51:58 -04:00
parent 2b47feafed
commit 951872b026
5 changed files with 53 additions and 48 deletions

View File

@@ -60,12 +60,7 @@ impl<D: Db, S: ScannerFeed> ContinuallyRan for ScanForOutputsTask<D, S> {
continue;
}
for output in self
.feed
.scan_for_outputs(&block, key.key.0)
.await
.map_err(|e| format!("failed to scan block {b}: {e:?}"))?
{
for output in block.scan_for_outputs(key.key.0) {
assert_eq!(output.key(), key.key.0);
// TODO: Check for dust
outputs.push(output);