Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add scripts for random uploads and wallet generation #1884

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

joshuef
Copy link
Contributor

@joshuef joshuef commented Jun 14, 2024

Scripts to simplify wallet creation and random data upload


# Check for correct number of arguments
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <number_of_wallets> <amount_per_wallet>"
Copy link
Member

Choose a reason for hiding this comment

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

if it requires arguments to be passed in,
better give an example of usage in the comment (head of this file, or in the readme correspondently?)

# Initialize an array to store the wallet details
declare -a WALLETS

# Loop to create and fund wallets
Copy link
Member

@maqi maqi Jun 14, 2024

Choose a reason for hiding this comment

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

I think the whole flow can be optimized to:
1, backup the wallet with balance
2, repeated create 5 wallets, collecting their address
3, restore the wallet with balance, transfer fund to new wallets one by one

Not a big issue, as anyway script do the job

@maqi maqi enabled auto-merge June 14, 2024 11:28
@maqi maqi added this pull request to the merge queue Jun 14, 2024
Merged via the queue into maidsafe:main with commit d68f6f0 Jun 14, 2024
40 checks passed
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.

2 participants