Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -675,10 +675,16 @@ export class MultichainAccountService {
toGroupIndex: number;
entropySource: EntropySourceId;
}): Promise<MultichainAccountGroup<Bip44Account<KeyringAccount>>[]> {
return await this.#getWallet(entropySource).createMultichainAccountGroups(
console.log(`[DEBUGG] Creating multichain account groups from ${fromGroupIndex} to ${toGroupIndex} for entropy source: ${entropySource}`);
const start = performance.now();
const result = await this.#getWallet(entropySource).createMultichainAccountGroups(
{ from: fromGroupIndex, to: toGroupIndex },
{ waitForAllProvidersToFinishCreatingAccounts: false },
);
const end = performance.now();=\
console.log(`[DEBUGG] Time taken to create multichain account groups: ${end - start}ms`);
console.log(`[DEBUGG] Result: ${result.length} groups created`);
Comment thread
gantunesr marked this conversation as resolved.
Outdated
return result;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,12 @@ export abstract class SnapAccountProvider extends BaseBip44AccountProvider {
if (options.type === `${AccountCreationType.Bip44DeriveIndexRange}`) {
if (batched) {
// Batch account creations.
console.log(`[DEBUGG] Batching account creations with options: ${JSON.stringify(options)} for provider: ${this.getName()}`);
const start = performance.now();
snapAccounts = await createAccountsV2(options);
const end = performance.now();
console.log(`[DEBUGG] Time taken to create accounts: ${end - start}ms`);
console.log(`[DEBUGG] Result: ${snapAccounts.length} accounts created`);
} else {
const { range } = options;

Expand Down Expand Up @@ -439,6 +444,7 @@ export abstract class SnapAccountProvider extends BaseBip44AccountProvider {
async createAccounts(
options: CreateAccountOptions,
): Promise<Bip44Account<KeyringAccount>[]> {
console.log(`[DEBUGG] Creating accounts with options: ${JSON.stringify(options)}`);
assertCreateAccountOptionIsSupported(options, [
`${AccountCreationType.Bip44DeriveIndex}`,
`${AccountCreationType.Bip44DeriveIndexRange}`,
Expand Down
Loading