Summary
In importBatch(), the error check and the "already processed" check are in the wrong order. If a batch has both error and imported set, it gets skipped as "already done" rather than recognized as errored.
Current
async function importBatch(item: DiscoveredItem, retry: boolean = false) {
if (item.imported && item.processed) {
return;
}
if (item.error && !retry) {
return;
}
Fix
async function importBatch(item: DiscoveredItem) {
if (item.error) {
return;
}
if (item.imported && item.processed) {
return;
}
File
services/mediators/satoshi/src/satoshi-mediator.ts