Skip to content

Commit

Permalink
fix: prevent rescan blockchain failure on old wallets
Browse files Browse the repository at this point in the history
* only rescan transactions for masternode key usage on upgrade
  • Loading branch information
HashEngineering committed Dec 21, 2023
1 parent 42846fa commit d029737
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ buildscript {
kotlin_version = '1.8.22'
coroutinesVersion = '1.6.4'
ok_http_version = '4.9.1'
dashjVersion = '20.0.1-SNAPSHOT'
dashjVersion = '20.0.2'
hiltVersion = '2.45'
hiltWorkVersion = '1.0.0'
workRuntimeVersion='2.7.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ private void maybeUpgradeWallet(final Wallet wallet) {
WalletExtension extension = extensions.get(AuthenticationGroupExtension.EXTENSION_ID);
if (extension != null) {
// reset will rescan existing transactions and rebuild the authentication usage info
((AuthenticationGroupExtension) extension).reset();
((AuthenticationGroupExtension) extension).rescanWallet();
}

// Maybe upgrade wallet to secure chain
Expand Down

0 comments on commit d029737

Please sign in to comment.