After a utxo rescan, the cached balance should be invalidated

This commit is contained in:
nicolas.dorier
2022-05-27 16:26:31 +09:00
committed by Kukks
parent a9e08dd587
commit 20d653798c
4 changed files with 9 additions and 7 deletions

View File

@@ -1158,6 +1158,7 @@ namespace BTCPayServer.Controllers
{
await explorer.ScanUTXOSetAsync(paymentMethod.AccountDerivation, vm.BatchSize, vm.GapLimit,
vm.StartingIndex);
_walletProvider.GetWallet(walletId.CryptoCode).InvalidateCache(paymentMethod.AccountDerivation);
}
catch (NBXplorerException ex) when (ex.Error.Code == "scanutxoset-in-progress")
{