-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathindex.html
256 lines (229 loc) · 12.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
<!DOCTYPE html>
<html>
<head lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta charset="UTF-8">
<meta name="description" content="">
<meta name="author" content="Peter Ryszkiewicz">
<link rel="icon" type="image/x-icon" href="https://assets-cdn.github.com/favicon.ico">
<title>IOTA Transaction Spammer</title>
<script type="text/javascript" src="deps/jquery.min.js"></script>
<script type="text/javascript" src="deps/bootstrap.min.js"></script>
<script type="text/javascript" src="deps/angular.min.js"></script>
<script type="text/javascript" src="deps/iota.transactionSpammer.js/src/lib/iota.js"></script>
<script type="text/javascript" src="deps/iota.transactionSpammer.js/src/lib/curl.min.js"></script>
<script type="text/javascript" src="deps/iota.transactionSpammer.js/src/lib/EventEmitter.min.js"></script>
<script type="text/javascript" src="deps/iota.transactionSpammer.js/src/transactionSpammer.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<link href="./css/bootstrap.min.css" rel="stylesheet">
<link href="./css/jumbotron-narrow.css" rel="stylesheet">
<link href="./css/main.css" rel="stylesheet">
</head>
<body>
<div class="container" ng-app="transactionSpammerApp">
<div class="header clearfix">
<nav>
<ul class="nav nav-pills pull-right">
<li class="nav-item">
<a class="nav-link" href="javascript:void(0)" onclick="toggleNightMode()">Night Mode</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://github.com/pRizz/iota-transaction-spammer-webapp">Source</a>
</li>
<li class="nav-item">
<a class="nav-link" href="javascript:void(0)" onclick="$('#settingsModal').modal('show')">Settings</a>
</li>
<li id="projectsDropdown" class="dropdown">
<a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Projects <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="https://prizziota.com/">Home</a></li>
<li class="divider"></li>
<h6 class="dropdown-header">IOTA Tools</h6>
<li><a href="https://prizziota.com/IOTA-Address-Utilities/index.html">IOTA Address Utilities</a></li>
<li><a href="https://prizziota.com/iota-buy-strategy/index.html">IOTA Buy Strategy</a></li>
<li><a href="https://prizziota.com/iota-seed-encryptor-decryptor/index.html">IOTA Seed Encryptor/Decryptor</a></li>
<li><a href="https://prizziota.com/iota-transaction-spammer-webapp/index.html">IOTA Transaction Spammer</a></li>
<li><a href="https://prizziota.com/My-IOTA-Balance/index.html">My IOTA Balance</a></li>
<li class="divider"></li>
<h6 class="dropdown-header">Third Party IOTA Tools</h6>
<li><a href="https://prizziota.com/IOTA-Reattacher/index.html">IOTA Reattacher</a></li>
<li class="divider"></li>
<h6 class="dropdown-header">Monero Tools</h6>
<li><a href="https://prizziota.com/Monero-Donator/index.html">Monero Donator</a></li>
<li class="divider"></li>
<h6 class="dropdown-header">General Tools</h6>
<li><a href="https://prizziota.com/Easy-File-Encryptor-Decryptor/index.html">Easy File Encryptor/Decryptor</a></li>
</ul>
</li>
</ul>
</nav>
<h3 class="text-muted">IOTA Transaction Spammer <img class="spinning-logo" src="iotaLogo.png"></h3>
</div>
<div>
<button id="startSpammingButton" type="button" class="btn btn-primary btn-lg btn-block">
Start Spamming
</button>
<div> </div>
</div>
<div class="progress">
<div id="progressBar" class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div>
</div>
<div class="row marketing">
<div class="col-md-4 text-center">
<h2 id="transactionCount">0</h2>
<h4>Transactions added to the tangle</h4>
</div>
<div class="col-md-4 text-center">
<h2 id="approvalCount">0</h2>
<h4>Approved transactions</h4>
</div>
<div class="col-md-4 text-center">
<h2 id="averageApprovalDuration">0</h2>
<h4>Average approval duration (seconds)</h4>
</div>
</div>
<div class="row marketing">
<div class="col-md-4 text-center">
<h2 id="transactionsPerMinuteCount">0</h2>
<h4>Transactions added to the tangle per minute</h4>
</div>
<div class="col-md-4 text-center">
<h2 id="approvalsPerMinuteCount">0</h2>
<h4>Approved transactions per minute</h4>
</div>
<div class="col-md-4 text-center">
<h2 id="timeSpentSpamming">0</h2>
<h4>Time Spent Spamming</h4>
</div>
</div>
<div class="row marketing">
<div class="col-md-12">
<div class="panel panel-primary" style="text-align: center">
<div class="panel-heading text-center">
<h2>Event Log</h2>
</div>
<pre class="panel-body text-left" id="eventLogContent">
</pre>
</div>
</div>
</div>
<div class="row marketing text-center">
<div class="col-md-8 col-md-offset-2">
<h1>Why spam the network with transactions?</h1>
<h2>
It speeds up confirmations!
</h2>
<h2>
IOTA is a cryptocurrency whose transaction confirmations are based on subsequent transactions that get added to the tangle. So the more transactions that get added to the tangle, the faster previous transactions get confirmed.
</h2>
<h2>
There are other bottlenecks in play that may limit confirmation time, like network quality, bandwidth, and node reliability.
</h2>
</div>
</div>
<div class="row marketing text-center">
<div class="col-md-8 col-md-offset-2">
<h1>How does this work?</h1>
<h2>
This webapp combines two libraries from the IOTA foundation to work: <a href="https://github.com/iotaledger/iota.lib.js">iota.lib.js</a> for interacting with IOTA nodes and <a href="https://github.com/iotaledger/curl.lib.js">curl.lib.js</a> for doing the PoW (Proof of Work) in your web browser.
</h2>
</div>
</div>
<div class="row marketing text-center">
<div class="col-md-8 col-md-offset-2">
<h1>Could spamming be bad?</h1>
<h2>
This tool was made with the intention of strengthening the IOTA network. IOTA is still very early in its development and will need to handle traffic orders of magnitude higher than the people spamming the network today, in order to succeed as a cryptocurrency in the future. This spamming acts as a test for the network that can be utilized to further improve the code, fix bugs and performance issues. In this sense, spamming this early on in this project is a very good thing.
</h2>
<h2>Here is a quote about the matter <a href="https://blog.iota.org/simple-bug-simple-fix-network-resilience-verified-162161acae77">from David Sønstebø</a>, founder of IOTA:</h2>
<blockquote class="blockquote">
...in general IOTA encourage spam as it improves the network’s throughput. Participants ... attempted to spam the network ... which ultimately just gave us a lot of free research data and validation of how the IOTA ledger absorbs such spam attacks organically.
</blockquote>
</div>
</div>
<div class="row marketing text-center">
<div class="col-md-8 col-md-offset-2">
<h1>About the Author</h1>
<h2>
This project was originally created by Peter Ryszkiewicz (<a href="https://github.com/pRizz">pRizz@GitHub</a>), software engineer in Chicago, IL.
</h2>
</div>
</div>
<div class="row marketing text-center">
<div class="col-md-8 col-md-offset-2">
<h1>About the Project</h1>
<h2>
This project is hosted on GitHub at <a href="https://github.com/pRizz/iota-transaction-spammer-webapp">https://github.com/pRizz/iota-transaction-spammer-webapp</a> under the MIT license.
</h2>
</div>
</div>
<div class="row marketing text-center">
<div class="col-md-8 col-md-offset-2">
<pre>
MIT License
Copyright (c) 2017 Peter Ryszkiewicz
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
</pre>
</div>
</div>
<footer class="footer">
<p><a href="https://github.com/pRizz/iota-transaction-spammer-webapp">Fork this on GitHub!</a></p>
<p><a href="https://github.com/pRizz/iota-transaction-spammer-webapp/releases">Download this webapp</a></p>
<p>If you want to support me or my projects, please consider donating some of your CPU time at my <a href="https://prizziota.com/Monero-Donator/index.html">Monero Donator</a></p>
<p>Thank you!</p>
<p>© Peter Ryszkiewicz 2017</p>
</footer>
<div class="modal fade" id="settingsModal" role="dialog" ng-controller="settingsController">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Settings</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="form-check">
<label class="form-check-label">
<input id="loadBalanceCheckbox" class="form-check-input" type="checkbox" value="">
Load Balancing. The spammer will change nodes after every transaction.
</label>
</div>
<h3>
Select a host
</h3>
<select id="hostSelection" ng-model="selectedHost" ng-options="host for host in hostList">
</select> <!-- TODO, make this dropdown use Bootstrap's css -->
<h1> </h1>
<h3>
Custom Host
</h3>
<div>The spammer will lock onto this host if provided.</div>
<input id="customHost" class="form-control" ng-model="customHost" type="text" placeholder="Custom host">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div> <!-- /container -->
</body>
</html>