Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- // Listen on events
- miner.on('found', function() { /* Hash found */ })
- miner.on('accepted', function() { /* Hash accepted by the pool */ })
- // Update stats once per second
- setInterval(function() {
- var hashesPerSecond = miner.getHashesPerSecond();
- var totalHashes = miner.getTotalHashes();
- var acceptedHashes = miner.getAcceptedHashes();
- // Output to HTML elements...
- }, 1000);
- </script>
Add Comment
Please, Sign In to add comment