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 flood script #35

Merged
merged 1 commit into from Apr 16, 2024
Merged

feat: add flood script #35

merged 1 commit into from Apr 16, 2024

Conversation

hstove
Copy link
Collaborator

@hstove hstove commented Mar 22, 2024

This adds a new TS script, flood.ts. It is not added to the docker-compose setup. The contract works by:

  • Using ENV var NUM_FLOODERS to determine how many random accounts to generate
  • At bootup, it deploys a contract (flood.clar) and transfers STX to the "flooder" accounts
  • During each loop, it makes N (TX_PER_FLOOD) transactions from each flooder. At the moment, this tx is just a semi-heavy contract call to flood.clar with chained nonces.

Run with npm run flood in the stacking dir, while the regtest-env is running.

@hstove
Copy link
Collaborator Author

hstove commented Apr 16, 2024

Merging this - I've just tested it again and it works well!

@hstove hstove merged commit 9d8f758 into feat/signer Apr 16, 2024
2 of 3 checks passed
@hstove hstove deleted the feat/flood branch April 16, 2024 17:28
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.

None yet

1 participant