Closed karimodm closed 8 months ago
Example of planned script usage
./evil-spammergo \
accounts \
create --alias A --amount 1000 --noBIF true \ # noBIF - creates account that is not able to issue
create --alias B --amount 500 --implicit true \
convert --alias B \ # transition to account from implicit
allot --from A --to B --amount 100 \ # if no from then get mana from faucet output, from can be alias of existing account
update --alias B --bik hexkey --addmana 1000 --addtoken 1000 --expiryslot 15 \
destroy --alias A --expirySlot 15 \ # if no expiry then use soonest possible
...
delegate --amount 100 --to A --from B \# we dont keep track of non account outputs
stake --alias A --amount 100 --fixedcost 100 --startepoch 100 --endepoch 120 \ # if no startepoch start sonnest possible epoch, no endEPoch then stake infinitely,
or togheter with evil spammer functionality
./evil-spammergo accounts \
create --alias A --amount 1000 --noBIF true \ # noBIF - creates account that is not able to issue
create --alias B --amount 500 --implicit true \
# use created above accounts
./evil-spammer basic -spammer tx -rate 1 -duration 10s -account A
./evil-spammer basic -spammer tx -rate 1 -duration 10s -account B
TODO:
go run . accounts
wallet.dat
file storing the wallet statewallet.dat
file so we cango run . accounts --create A --amount 100000
go run . basic --spammer tx --rate 2 --duration 60s --issuer A
<- here we will use mana from accountAllotRequiredManaAndStoreRemainingManaInOutput
might be usefulBuildAndSwapToBlockBuilder
Evil spammer fixes:
RequestFreshBigFaucetWallet
and similar functionsFix issues regarding REST API:
BlockMetadata
endpoint and providing statuses does not work properly, need it for Awaiting ForConfirmation functionality of evil spammerslotIndex
toBlockIssuer
endpoint to point to specific slot we need the commitment for, so that respnce fromcongestion
endpoint always matches