8000 add `spamoor run` subcommand by pk910 · Pull Request #83 · ethpandaops/spamoor · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

add spamoor run subcommand #83

New issue 8000

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

Merged
merged 2 commits into from
Jun 24, 2025
Merged

add spamoor run subcommand #83

merged 2 commits into from
Jun 24, 2025

Conversation

pk910
Copy link
Member
@pk910 pk910 commented Jun 24, 2025

Add spamoor run command for YAML-based multi-scenario execution

Summary

Adds a new spamoor run subcommand that executes multiple scenarios concurrently from YAML configuration files, providing a lightweight alternative to daemon mode.

Changes

Core Implementation

  • New spamoor run subcommand (cmd/spamoor/run.go)
    • Executes multiple scenarios from YAML configuration files
    • Supports spammer selection via --spammers flag (e.g., -s 0,2)
    • Reuses all base CLI flags (--rpchost, --privkey, etc.)
    • Lightweight execution without database or web interface

Daemon Refactoring

  • Extracted standalone functions in daemon/export_import.go
    • ResolveImportConfigs() - YAML parsing with include resolution
    • MergeConfiguration() - Configuration merging with defaults
    • readFromFile(), downloadFromURL() - File/URL handling
    • Maintains backward compatibility with existing daemon methods

Documentation Updates

  • Updated README.md with spamoor run section and examples
  • Enhanced docs/app-users.md with comprehensive run command documentation

Usage Examples

# Run all spammers from config
spamoor run config.yaml -h http://localhost:8545 -p 0x...

# Run specific spammers by index
spamoor run config.yaml -h http://localhost:8545 -p 0x... -s 0,2

# With multiple RPC endpoints
spamoor run config.yaml -p 0x... -h http://node1:8545 -h http://node2:8545

@pk910 pk910 merged commit b378342 into master Jun 24, 2025
4 checks passed
@pk910 pk910 deleted the pk910/spamoor-run branch June 25, 2025 21:11
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.

1 participant
0