wallet-core: only pay with coins of offered denominations
This commit is contained in:
parent
fd752f3171
commit
e4679fba51
@ -960,6 +960,10 @@ export async function selectCandidates(
|
|||||||
denomAvail.denomPubHash,
|
denomAvail.denomPubHash,
|
||||||
]);
|
]);
|
||||||
checkDbInvariant(!!denom);
|
checkDbInvariant(!!denom);
|
||||||
|
if (!denom.isOffered) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
// FIXME: validation status and isOffered!
|
||||||
denoms.push({
|
denoms.push({
|
||||||
...DenominationRecord.toDenomInfo(denom),
|
...DenominationRecord.toDenomInfo(denom),
|
||||||
numAvailable: denomAvail.freshCoinCount ?? 0,
|
numAvailable: denomAvail.freshCoinCount ?? 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user