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,
|
||||
]);
|
||||
checkDbInvariant(!!denom);
|
||||
if (!denom.isOffered) {
|
||||
continue;
|
||||
}
|
||||
// FIXME: validation status and isOffered!
|
||||
denoms.push({
|
||||
...DenominationRecord.toDenomInfo(denom),
|
||||
numAvailable: denomAvail.freshCoinCount ?? 0,
|
||||
|
Loading…
Reference in New Issue
Block a user