|
|
@ -96,9 +96,9 @@ public class DownloadReceiptsStep |
|
|
|
throw new IllegalStateException( |
|
|
|
throw new IllegalStateException( |
|
|
|
"Unexpectedly got receipts for block header already populated!"); |
|
|
|
"Unexpectedly got receipts for block header already populated!"); |
|
|
|
})); |
|
|
|
})); |
|
|
|
} |
|
|
|
|
|
|
|
// remove all the headers we found receipts for
|
|
|
|
// remove all the headers we found receipts for
|
|
|
|
headers.removeAll(getReceipts.keySet()); |
|
|
|
headers.removeAll(getReceipts.keySet()); |
|
|
|
|
|
|
|
} |
|
|
|
// repeat until all headers have receipts
|
|
|
|
// repeat until all headers have receipts
|
|
|
|
} while (!headers.isEmpty()); |
|
|
|
} while (!headers.isEmpty()); |
|
|
|
return CompletableFuture.completedFuture(getReceipts); |
|
|
|
return CompletableFuture.completedFuture(getReceipts); |
|
|
|