Skip to content

Share Found in Last Hour #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 32 commits into
base: master
Choose a base branch
from
Open

Share Found in Last Hour #33

wants to merge 32 commits into from

Conversation

zaw9c1
Copy link

@zaw9c1 zaw9c1 commented Feb 10, 2014

I just found this string " "my_share_counts_in_last_hour": {"doa_stale_shares": 0, "stale_shares": 0, "orphan_stale_shares": 0, "shares": 0, "unstale_shares": 0}" in http://127.0.0.1:9171/local_stats

Which I found very useful tool to see how's your node is doing by the hour.

d3.select("#share_hour").text(n.my_share_counts_in_last_hour.unstale_shares);

Index.html

I just wondering if you would implant that on your front end?

blixnood added 2 commits January 21, 2014 01:58
@derubm
Copy link

derubm commented Feb 18, 2014

Hi, First of all thanks for your work :)

Now my request :
Is it possible to just show nod shares from the last 12 hours ? -
Including the adress in the overview who found it ? -
So people could control if they are still in the payroll easier...
Like :
Node shares:
Workeraddress (time) - b5e56edf - share dif -

@zaw9c1
Copy link
Author

zaw9c1 commented Feb 18, 2014

I think simple as changing the lookbehind value of line 116 of web.py from 3600 to 43200 will give you 12hr.

3200 sec in 1hr , 43200 sec in 12hr I'll give it a try on my node and see.

@zaw9c1
Copy link
Author

zaw9c1 commented Feb 19, 2014

open up web.py with notepad++ or other code editor.

Goto line line 120
add this below that statement.

my_unstale_count12hr = sum(1 for share in node.tracker.get_chain(node.best_share_var.value, lookbehind * 12 ) if share.hash in wb.my_share_hashes)

Than add

unstale_shares12hr=my_unstale_count12,

in this bracket

my_share_counts_in_last_hour=dict(

don't use indent, uses spaces. now you soulld have new json information show up in /local_stats

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants