wallet-core: refresh properly after non-abort refunds

This commit is contained in:
Florian Dold 2023-01-12 17:04:33 +01:00
parent 1e378e4499
commit 473cbc3908
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -2376,7 +2376,11 @@ async function acceptRefunds(
}
}
if (reason === RefundReason.AbortRefund) {
if (reason !== RefundReason.AbortRefund) {
// For abort-refunds, the refresh group has already been
// created before the refund was started.
// For other refunds, we need to create it after we know
// the amounts.
const refreshCoinsPubs = Object.values(refreshCoinsMap);
logger.info(`refreshCoinMap ${j2s(refreshCoinsMap)}`);
if (refreshCoinsPubs.length > 0) {