Merge pull request #588 from keerifox/patch-4

Fix infinite load of account balances on V25.0+ nodes
This commit is contained in:
Joohansson (Json) 2023-06-01 22:56:04 +02:00 committed by GitHub
commit db769391da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -758,7 +758,7 @@ export class WalletService {
walletAccount.balanceFiat = this.util.nano.rawToMnano(walletAccount.balance).times(fiatPrice).toNumber();
const walletAccountFrontier = frontiers.frontiers[accountID];
const walletAccountFrontier = frontiers.frontiers?.[accountID];
const walletAccountFrontierIsValidHash = this.util.nano.isValidHash(walletAccountFrontier);
walletAccount.frontier = (