-also check for revoked
This commit is contained in:
parent
e4679fba51
commit
f1f332e0a6
@ -293,6 +293,8 @@ export interface DenominationRecord {
|
|||||||
* Was this denomination still offered by the exchange the last time
|
* Was this denomination still offered by the exchange the last time
|
||||||
* we checked?
|
* we checked?
|
||||||
* Only false when the exchange redacts a previously published denomination.
|
* Only false when the exchange redacts a previously published denomination.
|
||||||
|
*
|
||||||
|
* FIXME: Consider rolling this and isRevoked into some bitfield?
|
||||||
*/
|
*/
|
||||||
isOffered: boolean;
|
isOffered: boolean;
|
||||||
|
|
||||||
|
@ -960,7 +960,7 @@ export async function selectCandidates(
|
|||||||
denomAvail.denomPubHash,
|
denomAvail.denomPubHash,
|
||||||
]);
|
]);
|
||||||
checkDbInvariant(!!denom);
|
checkDbInvariant(!!denom);
|
||||||
if (!denom.isOffered) {
|
if (denom.isRevoked || !denom.isOffered) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// FIXME: validation status and isOffered!
|
// FIXME: validation status and isOffered!
|
||||||
|
Loading…
Reference in New Issue
Block a user