Skip to content

Commit

Permalink
chore: remove gaia account look up
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Jan 15, 2025
1 parent aebd822 commit 59945c5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 38 deletions.
29 changes: 0 additions & 29 deletions src/app/common/account-restoration/legacy-gaia-config-lookup.ts

This file was deleted.

7 changes: 0 additions & 7 deletions src/app/store/software-keys/software-key.actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { defaultWalletKeyId } from '@shared/utils';
import { identifyUser } from '@shared/utils/analytics';

import { recurseAccountsForActivity } from '@app/common/account-restoration/account-restore';
import { checkForLegacyGaiaConfigWithKnownGeneratedAccountIndex } from '@app/common/account-restoration/legacy-gaia-config-lookup';
import { mnemonicToRootNode } from '@app/common/keychain/keychain';
import { queryClient } from '@app/common/persistence';
import { AppThunk } from '@app/store';
Expand Down Expand Up @@ -47,9 +46,6 @@ function setWalletEncryptionPassword(args: {

await initalizeWalletSession(encryptionKey);

const legacyAccountActivityLookup =
await checkForLegacyGaiaConfigWithKnownGeneratedAccountIndex(secretKey);

async function doesStacksAddressHaveBalance(address: string) {
const controller = new AbortController();
const resp = await stxClient.getAccountBalance(address, controller.signal);
Expand Down Expand Up @@ -95,7 +91,6 @@ function setWalletEncryptionPassword(args: {
return hasStxBalance || hasNames || hasBtcBalance;
},
}).then(recursiveActivityIndex => {
if (recursiveActivityIndex <= legacyAccountActivityLookup) return;
logger.info('Found account activity at higher index', { recursiveActivityIndex });
dispatch(stxChainSlice.actions.restoreAccountIndex(recursiveActivityIndex));
});
Expand All @@ -111,8 +106,6 @@ function setWalletEncryptionPassword(args: {
encryptedSecretKey,
})
);
if (legacyAccountActivityLookup !== 0)
dispatch(stxChainSlice.actions.restoreAccountIndex(legacyAccountActivityLookup));
};
}

Expand Down
2 changes: 0 additions & 2 deletions src/shared/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export const gaiaUrl = 'https://hub.blockstack.org';

export const ZERO_INDEX = 0;

export const GITHUB_ORG = 'leather-io';
Expand Down

0 comments on commit 59945c5

Please sign in to comment.