go build
./evil-tools [spammer,accounts] [[script-flag-set]]The evil-tools app has three applications:
- spammer - to spam the network with transactions, nested conflicts, etc.
- accounts - to create, convert and destroy accounts.
- info - to print details about the network, accounts, delegations, etc. List of all possible flags can be found in configuration.md
To run the evil spammer tool on a network different than the local docker network, remember to provide:
--tool.nodeURLs- the list of URLs of the nodes in the network--tool.faucetURL- the URL of the faucet in the network--tool.blockIssuerPrivateKey- the private key of the existing block issuer account, best some account created in the genesis. Spammer will mostly use mana from this account to pay for the issuance.--tools.accountID- the corresponding account ID of the existing block issuer account.
Optionally you can provide separate private key and accountID for faucet requests,
to make sure that funds requesting will not be interrupted by congestion caused by the spammer.
If not provided spammer will use --tool.blockIssuerPrivateKey and --tools.AccountID.
faucet requesting does not require mana, but the spammer is dividing an output from the single faucet request up to many more,
to speed up the process, so mana is needed to pay for the split transactions.
--tools.faucetRequestsBlockIssuerPrivateKey- the private key of the existing block issuer account. It will be used for the faucet funds creation.--tools.faucetRequestsAccountID- the corresponding account ID of the existing block issuer account for the faucet funds splitting.
Usage for spammer tool:
./evil-tools spammer [FLAGS]
Possible spam scenarios:
blk, tx, peace, bb, ds, conflict-circle, guava ,orange, mango, pear, lemon, banana, kiwi
Usage for accounts tool:
./evil-tools accounts [COMMAND] [FLAGS]
Possible commands:
create, convert, destroy, allot
Possible
Spam with scenario tx
./evil-tools spammer --spammer.type tx --spammer.rate 10 --spammer.duration 100sInfinite spam is enabled when no duration flag is provided.
./evil-tools spammer --spammer.type tx --spammer.rate 10You can provide urls for clients and the faucet, each client should run the inx-indexer:
./evil-tools spammer --tool.nodeURLs "http://localhost:8050" --tool.faucetURL "http://localhost:8088" --spammer.type tx --spammer.rate 10Enable deep spam:
./evil-tools spammer --spammer.type tx --spammer.rate 10 --spammer.duration 100s --spammer.deepSpamEnabledSpam with the account created by the evil-tools app:
./evil-tools spammer --spammer.type tx --spammer.rate 10 --spammer.duration 100s --spammer.accountAlias ACreate implicit account with alias A:
./evil-tools accounts create --accounts.create.alias A --accounts.create.implicitCreate account with genesis account paying for creation transaction:
./evil-tools accounts create --accounts.create.alias ADelegate 1000 tokens (requested from the Faucet) and store it under alias A:
./evil-tools accounts delegate --accounts.delegate.fromAlias A --accounts.delegate.amount 100000Allot at least amount of mana to the account with alias A:
./evil-tools accounts allot --accounts.allot.alias A --accounts.allot.amount 100000Claim all rewards under alias A:
./evil-tools accounts claim --accounts.claim.alias AList all accounts stored in the wallet.dat file of the evil-tools app:
./evil-tools info accountsList all delegations done with the evil-tools app to be claimed:
./evil-tools info delegationsRequest validators endpoint:
./evil-tools info validatorsRequest committee endpoint:
./evil-tools info committeeList rewards endpoint responses for all delegations done by the app:
./evil-tools info rewardssingle-tx
peace
bb- blow ball structure
ds
conflict-circle
guava
orange
mango
pear
lemon
banana
kiwi










