-also check for revoked

This commit is contained in:
Florian Dold 2022-09-19 12:21:00 +02:00
parent e4679fba51
commit f1f332e0a6
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 3 additions and 1 deletions

View File

@ -293,6 +293,8 @@ export interface DenominationRecord {
* Was this denomination still offered by the exchange the last time
* we checked?
* Only false when the exchange redacts a previously published denomination.
*
* FIXME: Consider rolling this and isRevoked into some bitfield?
*/
isOffered: boolean;

View File

@ -960,7 +960,7 @@ export async function selectCandidates(
denomAvail.denomPubHash,
]);
checkDbInvariant(!!denom);
if (!denom.isOffered) {
if (denom.isRevoked || !denom.isOffered) {
continue;
}
// FIXME: validation status and isOffered!