fix: ignore out of order attachments failing to resolve tx data (#935)

This commit is contained in:
Matthew Little
2021-12-21 20:32:11 +01:00
committed by GitHub
parent 71c1bb267d
commit 13b5225727

View File

@@ -4273,11 +4273,11 @@ export class PgDataStore
]
);
if (txQuery.rowCount === 0) {
throw new Error(
`Could not find tx index for subdomain entry: ${JSON.stringify(subdomain)}`
);
logger.warn(`Could not find tx index for subdomain entry: ${JSON.stringify(subdomain)}`);
txIndex = 0;
} else {
txIndex = txQuery.rows[0].tx_index;
}
txIndex = txQuery.rows[0].tx_index;
}
// preparing bns values for insertion
values.push(