-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
35 lines (35 loc) · 1021 Bytes
/
Copy pathindex.html
File metadata and controls
35 lines (35 loc) · 1021 Bytes
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
<!doctype HTML>
<html>
<head>
<title>Modified PBFT</title>
<script src="/socket.io/socket.io.js"></script>
<!-- // <script src="/jquery/dist/jquery.js"></script> -->
<script type="text/javascript" src="client.js"></script>
</head>
<body>
<div>
<h2>Create Nodes</h2>
<button onclick="addNode('client')">Client</button>
<button onclick="addNode('primary')">Primary</button>
<button onclick="addNode('replica')">Replica</button>
</div>
<div>
<h2>PBFT</h2>
<button onClick="request()">Request</button>
<button onClick="prePrepare()">Pre-Prepare</button>
<button onClick="prepare()">Prepare</button>
<button onClick="commit()">Commit</button>
<button onClick="reply()">Reply</button>
</div>
<div>
<h2>HBFT</h2>
<button onClick="request()">Request</button>
<button onClick="prePrepare()">Pre-Prepare</button>
<button onClick="commitReply()">Commit+Reply</button>
</div>
<div>
<h2>ABFT</h2>
<button onClick="abft()">ABFT</button>
</div>
</body>
</html>