wallet-core: refresh properly after non-abort refunds
This commit is contained in:
parent
1e378e4499
commit
473cbc3908
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user