iota-tangle-io / iota-spamalot.go Goto Github PK
View Code? Open in Web Editor NEWNetwork spammer for IOTA written in Go
License: MIT License
Network spammer for IOTA written in Go
License: MIT License
We need to a way to know whether the spammer is currently running. I suggest a IsRunning() bool
or Running() bool
method.
In order to let the coordinator know the state of the spammer, we need some data from it.
Metrics()
which returns following things:
Transactions()
:
SpammingErrors()
:
The idea is that the coordinator has enough data to conclude a health property of a slave.
From @cwarner818 on January 26, 2018 16:0
Proxy commands to allow spamming only when node is idle, as well as pull metrics like # of connected clients, # of transactions sent, etc
I think we are currently doing too much in the package. It shouldn't run an endless loop, or spit out metric information to the user. Those are jobs for main packages. Spamalot should just handle generating spam transactions and collecting metrics and sending the transaction, but not all at once in an endless loop. We should have discrete steps for each of these and leave it to the main program to implement the loop.
Would be nice for knowing current network CTPS, as well as just generally faster reacting numbers.
From @luca-moser on January 26, 2018 18:50
As the the coordinator's job is to handle the entire configuration for its connected slaves (and their spammers), a set of commands has to be defined which a slave obeys to.
Commands indicating the desired action by the coordinator are handled as byte constants. A command has usually a payload with the argument data.
Note: In the entire setup, the coordinator is able to delegate commands directly to a spammer.
commands (byte constants):
single spammer:
CREATE_SP
; creates a new spammerREAD_SP
; re-polls data about a spammer's current stateUPDATE_SP
; stops the spammer and restarts it with a given configurationDELETE_SP
; removes a given spammer by idRESTART_SP
; restarts a spammer by given idgroup:
STOP_SPS
: stops all spammersRESTART_SPS
; restarts all spammersDELETE_SPS
: deletes all spammersA payload can be a spammer's configuration for example, consisting of depth, mwm...parameters.
Copied from original issue: iota-tangle-io/spamalot-project#3
From @luca-moser on January 26, 2018 18:49
Parameters which can be set for the spammers:
http://iota-tangle.io:14265
)The configuration is sent down to the slave through the chosen transport.
Copied from original issue: iota-tangle-io/spamalot-project#2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.