Skip to content

Conversation

@Ansonhkg
Copy link
Collaborator

WHAT

pregen and fund a set number of wallets, then store them into the master private key pool file so that the artillery test could pick an available master key from the pool to run a test to prevent nonce issue.

// Check and top up wallets from pool
await MasterAccountManager.checkAndTopupWalletsFromPool({
publicClient,
masterAccount,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so, we're using the first available master account from L15 to fund all other master accounts from the file that need topping up?

}
}

export const checkAndTopupWalletsFromPool = async ({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have a check here that the master account we are using to disperse funds has enough funds to cover all the other master accounts that need to be topped up.

fs.writeFileSync('master-account-pool.json', JSON.stringify(masterAccountPool, null, 2));
};

export const generateAndFundWalletsFromPool = async ({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similar to above, are we missing a check here that the master account has enough funds to fund the newly generated master account wallets? or were you thinking of doing it optimistically / as much as possible.

@Ansonhkg Ansonhkg closed this Jul 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants