Coder Social home page Coder Social logo

wizstats's Introduction

Development of Pool Web Statistics

Note: Code is a mess! Bare with me...

If anyone has any issues or suggestions, please see my git repository at https://github.com/wizkid057/wizstats

Please realize that this software relies *heavily* on the Eligius Bitcoin Mining Pool's internal structure.  While with a decent amount of effort and technical skill these stats could be adapted to work with another pool, it is not an out of the box thing.  I note this here because there have been several requests for assistance in setting these up for other pools.  Perhaps in the future I will make that easier. :)

Much to come!

-wizkid057
Donations/Tips appreciated: 1StatsQytc7UEZ9sHJ9BGX2csmkj8XZr2

wizstats's People

Contributors

airbreather avatar bitcoindaddy avatar fidian avatar hello71 avatar linusu avatar luke-jr avatar nixnax avatar philihp avatar selbyk avatar wizkid057 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wizstats's Issues

Enhancement Average GHs per pay period

I would like to see my average hashing rate for a given pay period, and the length of the pay period so that I can better understand my pay per GHs.
Also more decimal places on the Balance graph would be great too.

Visualization of Shelved Shares in the share log

Hi all,
I think that the most confusing thing for the new visitor is the nature of pool's rewarding system based on shelved shares.
It would be nice to have a diagram representing the shelved shares storage where the position of the user's shares would be depict.
So one could know how much block must be found now to achieve maximum reward (i.e. how deep are my shares in the stack).
If the diagram is too difficult, at least the list of how much of my shares (probably in BTC units) are now in last 0-25 BTC, 25-50, 50-75, ... of the shelved shares queue.
I think it would do the rewarding algorithm much more clear for any miner.
Cheers

cross site scripting in mystats.php

GET /~wizkid057/newstats/mystats.php?storecookie=on&u=1'%22()%26%25<acx><ScRiPt%20>prompt(133713)</ScRiPt> HTTP/1.1

This script does not properly filter metacharacters from user input which could allow malicious users to inject JavaScript, VBScript, ActiveX, HTML or Flash into a vulnerable web application to fool a user in order to gather data from them.

Payment time states it's EPOCH

Recently after the last block matured I noticed that the latest payment was stated for 1970-01-01.

It seems that the date scheduled for payment has forced it's self to epoch.

Is Eligius not meant for my miner?

I'm using BFL's Little Single with BFGminer 3.6.0
Problem is my speed is as follows:
24.23/23.01/18.72
Given that the third has more to do with the pool, I was wondering if this pool is known to not maximize the hash rate for this asic.

Any thoughts?

Spurious payout message

For some time now, my stat page has been reading as follows:
"Estimated Position in Payout Queue
Approximately 0.00000000 BTC remaining to enter payout queue. Maintaining your 3 hour hashrate average, this will take at least another a few seconds at current network difficulty of 47,427,554,950.65."
...and it has not changed in over a week.
Is this a symptom of slow mining with low power and a numeric precision limit sort of thing, possibly?

Stats look crappy in Internet Explorer

Can't seem to get Internet Explorer to follow styling that Chrome and Firefox easy conform to. Unless someone else wants to fix this, I'm no longer even testing in Internet Explorer.

SMPP shares halved in value

I have been mining for about a year on eligius and I had a bunch of old unpaid shares ( http://eligius.st/~wizkid057/newstats/userstats.php/1LS6JBSyWKp3RdzAWdNHhdCGCGNEcK1Wwa ). If I understand this fix correctly, then I do not approve of changing the value of the old shares.

I have no easy way of being sure, but I'm fairly sure most of my old smpp shares were from before the block halving. The payment per share back then was what made eligius a fair pool. Unless I'm misstaken, now you are renegotiating our agreement for the price of my work. You are doing this after I have already done it. This imo is bad for both the pool and me, since it shows the pool cannot be trusted to uphold its end of the bargain.

Also I don't really understand the reasoning behind the fix. Doesn't the shares get paid in a kind of reverse chronological order? This means we would have to be extremly lucky to get all those blocks needed to pay back all the old shares. On the other hand if we somehow do get that lucky, isn't that luck compensating for the bad luck we had previously?

I do realize that in a manner of speaking we would have to be twice as lucky now as pre halving, but by not applying this fix everyone would get what they were promised, even if it most likely will take infinitely long. This at the price of new shares only being paid as much as on most other pools. The only part they lose out on is a small part of the extra "bonus" from when we are very lucky.

Link to post in bitcointalk forum announcing the change:
https://bitcointalk.org/index.php?topic=23768.msg1501533#msg1501533

I don't seem to have posting privileges on the bitcointalk forum so I'm posting here instead. Seems like a good place anyway.

support per worker difficulty settings

I have three antminer s3's and only one can overclock to achieve the blanket difficulty of 512GH/s .. the other two would be better served at the 256GH/s difficulty level .. I'm sure there are other similar scenarios; I could mine to a different address and have a per address difficulty level setting as a start, if eligius can do such, ...

This is clearly a feature request and not a bug report.... ;-)

3, 12 hour hashrate averages on userstats is positioned incorrectly.

Take the following example: http://i.imgur.com/bb6Ds5U.png

The positioning of where the lines end for the 3 & 12 hour average hashrates is incorrect in my opinion. These lines should be ending at the far right side of the graph.

The way it is depicted currently you must interpret it as "My hashrate at this point + 3 / 12 hrs into the future". Personally I find this extremely counter intuitive and it would make more sense if if the point positioning were adjusted so that they would always end at the far right so it would be understood as "My average hashrate for the past 3 hours at this point in time is."

If I want to know what my average 12 hour hashrate right now is, I have to actually at a point 12 hours in the past - that doesn't really make sense to me.

Position in Payout Queue Reads Constant 0.0000

Estimated Position in Payout Queue
Approximately 0.00000000 BTC remaining to enter payout queue. Maintaining your 3 hour hashrate average, this will take at least another a few seconds at current network difficulty of

Reads this constantly regardless of whether a block is solved and not sure if the payout is working at all.

When you go to view the payout queue, it is totally empty?

Something wrong. It appears a file was changed as the payout queue link is in a different place to where it was earlier today.

I made a simple javascript library

Hi Wizkid,

Thanks for providing a great service, I wrote up a quick javascript library for accessing your public api. It has good error handling, follows javascript callback best practices and doesn't depend on anything other than plain javascript.

https://gist.github.com/LinusU/7446896

Maybe we could distribute it in some good way to let more users get quickly started with building cool apps that uses your data? I wrote this since I wanted a quick html-file that just displayed my current hash-rate.

Thanks for your time!

A quick example of how the api works:

var u = prompt('What is you username?');

api.gethashrate({ username: u }, function (err, data) {
  if (err) {
    alert('Something went wrong!\n\n(' + err.message + ')');
  } else {
    alert('Your average hashing rate is: ' + data.av256.pretty);
  }
});

Round Time missing leading zero in minutes field

When the round time is showing a time with the minutes = zero, the leading zero is missing from the display, for example:

Round Time: 5:0:55 (five hours, zero minutes, 55 seconds), when it should be:
Round Time: 5:00:55

If the minutes are greater than zero, the problem does not occur:
Round Time: 5:02:30

Minimum payout not working

Set at 5BTC, pays out at 0.05BTC. Email me for details (eg. address). My emails should be visible on github, but reply here if it's not.

Warning: pg_exec(): Query failed: ERROR: column "current_query" does not exist LINE 1: ...ect count(*) as check from pg_stat_activity where current_qu... ^ in instant_livedata.php on line 126

Warning: pg_exec(): Query failed: ERROR: column "current_query" does not exist LINE 1: ...ect count(*) as check from pg_stat_activity where current_qu... ^ in instant_livedata.php on line 126

this is because current_query changed from postgresql 9.2, now i use postgresql 9.3, this appeared.

https://wiki.postgresql.org/wiki/What's_new_in_PostgreSQL_9.2

pg_stat_activity and pg_stat_replication's definitions have changed

The view pg_stat_activity has changed. It's not backward compatible, but let's see what this new definition brings us:

current_query disappears and is replaced by two columns:
state: is the session running a query, waiting
query: what is the last run (or still running if stat is "active") query

NA

Wrong forum... Please delete or close.

Separation of stats by worker

Hi! I have a suggestion for a feature.
Currently, if I make all my workers work for my Eligius account, the stats give me an aggregated hashrate. There is no wahy of knowing if a given device has stopped producing shares. It would be greak if we could have stats per device.

Of course, I know that the server has no idea how to tell which worker sent a given share. My idea would be to use the password field from the login. Sice this field serves no purpuse here, I could identify each of my devices with a different login passoword, and the stats would be given separetaly for each.

Thanks, and great work!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.