hornyPo
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 111
Merit: 10
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 29, 2014, 09:56:24 PM |
|
Hi guys
Am new here keep getting this message try to mine
2014-Jun-29 22:37:37.523185 Connecting bbr.farm:5555.... 2014-Jun-29 22:37:38.550243 Connected bbr.farm:5555 OK 2014-Jun-29 22:37:40.311344 Getting scratchpad... 2014-Jun-29 22:39:48.388670 Failed to invoke http request to /json_rpc 2014-Jun-29 22:39:48.391670 Failed to get scratchpad. Disconnecting and retrying... 2014-Jun-29 22:39:48.394670 Connecting bbr.farm:5555.... 2014-Jun-29 22:39:49.415728 Connected bbr.farm:5555 OK 2014-Jun-29 22:39:50.826809 Getting scratchpad...
Any ideas?
Try here http://bbr.moneropool.net:5555 to mine http://bbr.extremepool.orgas i write here https://bitcointalk.org/index.php?topic=577267.msg7512614#msg7512614 it seams that my connection is slow and it will not help to mine with other pools to get the full scratchpad. I wonder how fast must be the connection when srcatchpad increase, and what will be the solution for this issue?
|
BBR: @hornypo
|
|
|
33zer0w0lf
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 29, 2014, 10:02:15 PM |
|
Hi guys
Am new here keep getting this message try to mine
2014-Jun-29 22:37:37.523185 Connecting bbr.farm:5555.... 2014-Jun-29 22:37:38.550243 Connected bbr.farm:5555 OK 2014-Jun-29 22:37:40.311344 Getting scratchpad... 2014-Jun-29 22:39:48.388670 Failed to invoke http request to /json_rpc 2014-Jun-29 22:39:48.391670 Failed to get scratchpad. Disconnecting and retrying... 2014-Jun-29 22:39:48.394670 Connecting bbr.farm:5555.... 2014-Jun-29 22:39:49.415728 Connected bbr.farm:5555 OK 2014-Jun-29 22:39:50.826809 Getting scratchpad...
Any ideas?
Try here http://bbr.moneropool.net:5555 to mine http://bbr.extremepool.orgas i write here https://bitcointalk.org/index.php?topic=577267.msg7512614#msg7512614 it seams that my connection is slow and it will not help to mine with other pools to get the full scratchpad. I wonder how fast must be the connection when srcatchpad increase, and what will be the solution for this issue? the solution is to have a stratum miner and completely get rid of simpleminer which uses http. the dev is working on it.
|
|
|
|
hornyPo
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 111
Merit: 10
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 29, 2014, 10:10:25 PM |
|
the solution is to have a stratum miner and completely get rid of simpleminer which uses http. the dev is working on it. Good to know. Especial when difficulty increase and solo get more harder.
|
BBR: @hornypo
|
|
|
jwinterm
Legendary
Offline
Activity: 3136
Merit: 1116
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 29, 2014, 10:31:52 PM |
|
is there any way to tell how much of the network hashrate is from cpu miners and how much is from secret nvidia gpu miners? I'd like to try and mine, but I'd at least like to know what I'm up against...am I bringing a knife to a gunfight, or a spoon?
|
|
|
|
33zer0w0lf
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 29, 2014, 10:55:36 PM |
|
is there any way to tell how much of the network hashrate is from cpu miners and how much is from secret nvidia gpu miners? I'd like to try and mine, but I'd at least like to know what I'm up against...am I bringing a knife to a gunfight, or a spoon?
That would be cool but I don't know that that is possible.
|
|
|
|
dga
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 29, 2014, 11:54:01 PM Last edit: June 30, 2014, 12:06:15 AM by dga |
|
is there any way to tell how much of the network hashrate is from cpu miners and how much is from secret nvidia gpu miners? I'd like to try and mine, but I'd at least like to know what I'm up against...am I bringing a knife to a gunfight, or a spoon?
That would be cool but I don't know that that is possible. I've tried to think of some ways to determine it, but unless a non-standard miner is doing something strange with the way it puts blocks in the chain, it's (hopefully) impossible. I say hopefully because otherwise, I think it would represent a weakness in the anonymity of cryptonote. If they're based on something like the FCN miner, though, you could look at the 'extra' field to see if, e.g., some weirdly huge proportion of the blocks seem to be being merge-mined. But that's a really long shot. But another perhaps more pragmatic way to view it (as I do) is: Is the math in your favor with the profitability of mining BBR vs any other coin? If so, mine BBR. If not, mine another coin and buy BBR. It doesn't really matter if someone else is mining more profitably on a coin than you are; the most important thing for you as a miner is maximizing your profitability and/or helping keep the network of a coin you support strong and decentralized. If you pool mine, my view is that profit should rule. But BBR is still probably best solo-mined if you have a few machines. I cloud mine when it's profitable, but I solo mine full time on 5x Intel Haswell-based machines at home, and I find a block every other day or so. The quick & dirty calculation: Blocks per day = Hash rate in mh/s * 86.4 / diff in billions. So 400kh/s machine: 0.4 * 86.4 / 300 = 0.115 blocks/day (a block every 8.6 days).
|
|
|
|
btc-mike
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 30, 2014, 12:51:16 AM |
|
The quick & dirty calculation: Blocks per day = Hash rate in mh/s * 86.4 / diff in billions.
So 400kh/s machine: 0.4 * 86.4 / 300 = 0.115 blocks/day (a block every 8.6 days).
Where does the 86.4 come from?
|
|
|
|
|
Zer0Sum
Legendary
Offline
Activity: 1588
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 30, 2014, 01:36:03 AM |
|
Hi,
Trying to get started with the Boolberry GUI wallet. However I'm running into the following error whenever I try to generate a new wallet: "The file name is not valid."
Any clues on how I can resolve this?
Tried looking it up, but couldn't find anything.
Steps taken: (1) Downloaded Full Windows Package (bbr-win64-v0.2.0.24(1ada156).zip) (2) Clicked on qt-boolb.exe. Waited for a connection, status = online with 8 connections (3) Clicked on generate new wallet (4) I type in a file name however when I click save I get the following error: - "The file name is not valid."
Thanks
What names have you tried? Where are you saving them? I was able to reproduce the error if i chose a name with no extension such as "wallet". Generation worked with an extension such as "wallet.bin". Thank you - it was the lack of the .bin extension that was the problem. I've been able to create wallets on other Cryptonote coins (e.g. Monero) without the .bin extensions, now wondering if this is likely to be an issue down the road? The command line version will accept "wallet" as extension. Also, I bet you could rename it and remove extension. The extension is probably only validated during creation. If there is an issue, it can be easily changed. I have no extension since I used command line. In general, things like ".bin" extensions need to be eliminated. Until crypto is basically idiot-proof like using a bank web site... It will be just a hobby for engineers and super-geeks and 20ish speculators... And, no, Bitcoin is not even close to achieving mainstream acceptance.
|
|
|
|
dga
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 30, 2014, 01:44:43 AM |
|
The quick & dirty calculation: Blocks per day = Hash rate in mh/s * 86.4 / diff in billions.
So 400kh/s machine: 0.4 * 86.4 / 300 = 0.115 blocks/day (a block every 8.6 days).
Where does the 86.4 come from? 86400 seconds in a day. Hashrate * seconds/day / diff I just factor out all of the millions and billions to keep it to easy-to-check numbers. The example above is actually: 400,000 * 86,400 / 300,000,000,000 but if you cancel out all of those zeros in an appropriate way, you get 0.4 * 86.4 / 300, and that's a lot easier to do in your head or on your phone calculator.
|
|
|
|
btc-mike
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 30, 2014, 01:46:29 AM |
|
I have no extension since I used command line. In general, things like ".bin" extensions need to be eliminated.
Until crypto is basically idiot-proof like using a bank web site... It will be just a hobby for engineers and super-geeks and 20ish speculators... And, no, Bitcoin is not even close to achieving mainstream acceptance.
I didn't think bin was a good one either. What do you suggest and why? No extension, .dat, other?
|
|
|
|
btc-mike
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 30, 2014, 01:47:38 AM |
|
The quick & dirty calculation: Blocks per day = Hash rate in mh/s * 86.4 / diff in billions.
So 400kh/s machine: 0.4 * 86.4 / 300 = 0.115 blocks/day (a block every 8.6 days).
Where does the 86.4 come from? 86400 seconds in a day. Hashrate * seconds/day / diff I just factor out all of the millions and billions to keep it to easy-to-check numbers. The example above is actually: 400,000 * 86,400 / 300,000,000,000 but if you cancel out all of those zeros in an appropriate way, you get 0.4 * 86.4 / 300, and that's a lot easier to do in your head or on your phone calculator. Thanks That was
|
|
|
|
crazy_rabbit
Legendary
Offline
Activity: 1204
Merit: 1002
RUM AND CARROTS: A PIRATE LIFE FOR ME
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 30, 2014, 08:45:03 AM |
|
Until crypto is basically idiot-proof like using a bank web site... It will be just a hobby for engineers and super-geeks and 20ish speculators... And, no, Bitcoin is not even close to achieving mainstream acceptance.
Well, feel free to come back when we've made it perfect for you and we are all millionaires. :-)
|
more or less retired.
|
|
|
crypto_zoidberg (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 30, 2014, 02:37:57 PM |
|
Good news! cpuminer-multi now can fetch scratchpad from server: [2014-06-30 18:30:53] > {"method": "login", "params": {"login": "1L1ZPC9XodC6g5BX8j8m3vcdkXPiZrVF7RcERWE879coQDWiztUbkkVZ86o43P27Udb3qxL4B41gbaGpvj3nS7DgFZauAZE", "pass": "x", "agent": "cpuminer-multi/0.1"}, "id": 1} [2014-06-30 18:30:53] < {"id":1,"jsonrpc":"2.0","error":null,"result":{"id":"572905570245347","job":{"blob":"","job_id":"","target":"","difficulty":"","prev_hi":{"block_id":"","height":0}},"status":"OK","addms":[]}} [2014-06-30 18:30:53] Auth id: 572905570245347 [2014-06-30 18:30:53] Requested work before work was received [2014-06-30 18:30:53] Getting full scratchpad.... [2014-06-30 18:30:53] > {"method": "getfullscratchpad", "params": {"id": "572905570245347", "agent": "cpuminer-multi/0.1"}, "id": 1} [2014-06-30 18:31:07] < {"id":1,"jsonrpc":"2.0","error":null,"result":{"status":"OK","hi":{"block_id":"5a3b1ee3838b08f46ef33ea1a12f90dcef262046d3bdb741939728fefd8d4994","height":31372},"scratchpad_hex":"d73243ee4f03f9d84a82a52ae5ed784053ebb0cf273586efe1f2c6209ff2bbf2d9c8cb207cdaed5532b... [2014-06-30 18:31:07] Getting full scratchpad received line [2014-06-30 18:31:07] Getting full scratchpad parsed line [2014-06-30 18:31:08] Fetched scratchpad size 10355872 bytes [2014-06-30 18:31:08] Fetched scratchpad size 10355872 bytes [2014-06-30 18:31:08] < {"jsonrpc":"2.0","method":"job","params":{"status":"OK","jd":{"blob":"01000000000000000009048cc3ccbbf6de2095ac436ad08dfa2a42654e866c40bb26bde37baacf300900d684c69d0501ef58fd3722b8cf3068814c5f60fa16b75a13282270c1ece90d7939627708d43a01","job_id":"289937465125694","target":"9bc42000","difficulty":"2000","prev_hi":{"block_id":"5a3b1ee3838b08f46ef33ea1a12f90dcef262046d3bdb741939728fefd8d4994","height":31372}},"addms":[{"addm":"5a3b1ee3838b08f46ef33ea1a12f90dcef262046d3bdb741939728fefd8d49943f45742759bdbd310f7948ceed7c4d157a34bb8ebeefc5f1085014bb5f3ba393903fa37ce730179349061ff0a0b515068a7988957ddc33696828decc23493641ce9bb8ca79797933367330c9f36be46febe2c77fdd7a8d59405ba7c7382a49e5060047a50b872b6f765f604fe095fc4bad00ad910e6f044677ea0717165d961725709474c3d963de3d00eece334de1061033d105d5cfa59ff0ba6858b36193b5ccf06522e75b6903a09ba73389c20a71fab4c6743c3dd6b06c14e931918ed42ea7e7230221706f02765173ddefba3c473bd192b346fc0f7c2b2dbb032efffeb54ba6f768d2d077be37cd585c81987ffd5e841bce7b0cb3ea10747f07b82e7c74aa84f46664343c864d867b8f819055f150648b9c68cdff63a5a866d5a4ebbd0e","hi":{"block_id":"09048cc3ccbbf6de2095ac436ad08dfa2a42654e866c40bb26bde37baacf3009","height":31373},"prev_id":"5a3b1ee3838b08f46ef33ea1a12f90dcef262046d3bdb741939728fefd8d4994"}]}} ...keep working on job sync...
|
|
|
|
SpeedDemon13
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 30, 2014, 04:24:38 PM |
|
Good news! cpuminer-multi now can fetch scratchpad from server: [2014-06-30 18:30:53] > {"method": "login", "params": {"login": "1L1ZPC9XodC6g5BX8j8m3vcdkXPiZrVF7RcERWE879coQDWiztUbkkVZ86o43P27Udb3qxL4B41gbaGpvj3nS7DgFZauAZE", "pass": "x", "agent": "cpuminer-multi/0.1"}, "id": 1} [2014-06-30 18:30:53] < {"id":1,"jsonrpc":"2.0","error":null,"result":{"id":"572905570245347","job":{"blob":"","job_id":"","target":"","difficulty":"","prev_hi":{"block_id":"","height":0}},"status":"OK","addms":[]}} [2014-06-30 18:30:53] Auth id: 572905570245347 [2014-06-30 18:30:53] Requested work before work was received [2014-06-30 18:30:53] Getting full scratchpad.... [2014-06-30 18:30:53] > {"method": "getfullscratchpad", "params": {"id": "572905570245347", "agent": "cpuminer-multi/0.1"}, "id": 1} [2014-06-30 18:31:07] < {"id":1,"jsonrpc":"2.0","error":null,"result":{"status":"OK","hi":{"block_id":"5a3b1ee3838b08f46ef33ea1a12f90dcef262046d3bdb741939728fefd8d4994","height":31372},"scratchpad_hex":"d73243ee4f03f9d84a82a52ae5ed784053ebb0cf273586efe1f2c6209ff2bbf2d9c8cb207cdaed5532b... [2014-06-30 18:31:07] Getting full scratchpad received line [2014-06-30 18:31:07] Getting full scratchpad parsed line [2014-06-30 18:31:08] Fetched scratchpad size 10355872 bytes [2014-06-30 18:31:08] Fetched scratchpad size 10355872 bytes [2014-06-30 18:31:08] < {"jsonrpc":"2.0","method":"job","params":{"status":"OK","jd":{"blob":"01000000000000000009048cc3ccbbf6de2095ac436ad08dfa2a42654e866c40bb26bde37baacf300900d684c69d0501ef58fd3722b8cf3068814c5f60fa16b75a13282270c1ece90d7939627708d43a01","job_id":"289937465125694","target":"9bc42000","difficulty":"2000","prev_hi":{"block_id":"5a3b1ee3838b08f46ef33ea1a12f90dcef262046d3bdb741939728fefd8d4994","height":31372}},"addms":[{"addm":"5a3b1ee3838b08f46ef33ea1a12f90dcef262046d3bdb741939728fefd8d49943f45742759bdbd310f7948ceed7c4d157a34bb8ebeefc5f1085014bb5f3ba393903fa37ce730179349061ff0a0b515068a7988957ddc33696828decc23493641ce9bb8ca79797933367330c9f36be46febe2c77fdd7a8d59405ba7c7382a49e5060047a50b872b6f765f604fe095fc4bad00ad910e6f044677ea0717165d961725709474c3d963de3d00eece334de1061033d105d5cfa59ff0ba6858b36193b5ccf06522e75b6903a09ba73389c20a71fab4c6743c3dd6b06c14e931918ed42ea7e7230221706f02765173ddefba3c473bd192b346fc0f7c2b2dbb032efffeb54ba6f768d2d077be37cd585c81987ffd5e841bce7b0cb3ea10747f07b82e7c74aa84f46664343c864d867b8f819055f150648b9c68cdff63a5a866d5a4ebbd0e","hi":{"block_id":"09048cc3ccbbf6de2095ac436ad08dfa2a42654e866c40bb26bde37baacf3009","height":31373},"prev_id":"5a3b1ee3838b08f46ef33ea1a12f90dcef262046d3bdb741939728fefd8d4994"}]}} ...keep working on job sync... Even once this is working properly and finally a gpu miner can be released, won't it be for Nvidia cards only? Isn't the guy that created the Nvidia miner has the majority of the network hash?
|
CRYPTSY exchange: https://www.cryptsy.com/users/register?refid=9017 BURST= BURST-TE3W-CFGH-7343-6VM6R BTC=1CNsqGUR9YJNrhydQZnUPbaDv6h4uaYCHv ETH=0x144bc9fe471d3c71d8e09d58060d78661b1d4f32 SHF=0x13a0a2cb0d55eca975cf2d97015f7d580ce52d85 EXP=0xd71921dca837e415a58ca0d6dd2223cc84e0ea2f SC=6bdf9d12a983fed6723abad91a39be4f95d227f9bdb0490de3b8e5d45357f63d564638b1bd71 CLAMS=xGVTdM9EJpNBCYAjHFVxuZGcqvoL22nP6f SOIL=0x8b5c989bc931c0769a50ecaf9ffe490c67cb5911
|
|
|
booletic
Newbie
Offline
Activity: 13
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 30, 2014, 05:09:35 PM |
|
Hi guys
Am new here keep getting this message try to mine
2014-Jun-29 22:37:37.523185 Connecting bbr.farm:5555.... 2014-Jun-29 22:37:38.550243 Connected bbr.farm:5555 OK 2014-Jun-29 22:37:40.311344 Getting scratchpad... 2014-Jun-29 22:39:48.388670 Failed to invoke http request to /json_rpc 2014-Jun-29 22:39:48.391670 Failed to get scratchpad. Disconnecting and retrying... 2014-Jun-29 22:39:48.394670 Connecting bbr.farm:5555.... 2014-Jun-29 22:39:49.415728 Connected bbr.farm:5555 OK 2014-Jun-29 22:39:50.826809 Getting scratchpad...
Any ideas?
Hi there, Please follow these steps: 1- Download http://boolberry.com/downloads.html2- Create a pool.bat file 3- Copy / Paste simpleminer.exe --pool-addr bbr.farm:5555 --login wallet_address --pass x --mining-threads n Change wallet_address, x "can be anything", n 2 for dual core n 4 for quad core Have fun mining with us ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif)
|
|
|
|
btc-mike
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 30, 2014, 06:54:15 PM |
|
Good news! cpuminer-multi now can fetch scratchpad from server: [2014-06-30 18:30:53] > {"method": "login", "params": {"login": "1L1ZPC9XodC6g5BX8j8m3vcdkXPiZrVF7RcERWE879coQDWiztUbkkVZ86o43P27Udb3qxL4B41gbaGpvj3nS7DgFZauAZE", "pass": "x", "agent": "cpuminer-multi/0.1"}, "id": 1} [2014-06-30 18:30:53] < {"id":1,"jsonrpc":"2.0","error":null,"result":{"id":"572905570245347","job":{"blob":"","job_id":"","target":"","difficulty":"","prev_hi":{"block_id":"","height":0}},"status":"OK","addms":[]}} [2014-06-30 18:30:53] Auth id: 572905570245347 [2014-06-30 18:30:53] Requested work before work was received [2014-06-30 18:30:53] Getting full scratchpad.... [2014-06-30 18:30:53] > {"method": "getfullscratchpad", "params": {"id": "572905570245347", "agent": "cpuminer-multi/0.1"}, "id": 1} [2014-06-30 18:31:07] < {"id":1,"jsonrpc":"2.0","error":null,"result":{"status":"OK","hi":{"block_id":"5a3b1ee3838b08f46ef33ea1a12f90dcef262046d3bdb741939728fefd8d4994","height":31372},"scratchpad_hex":"d73243ee4f03f9d84a82a52ae5ed784053ebb0cf273586efe1f2c6209ff2bbf2d9c8cb207cdaed5532b... [2014-06-30 18:31:07] Getting full scratchpad received line [2014-06-30 18:31:07] Getting full scratchpad parsed line [2014-06-30 18:31:08] Fetched scratchpad size 10355872 bytes [2014-06-30 18:31:08] Fetched scratchpad size 10355872 bytes [2014-06-30 18:31:08] < {"jsonrpc":"2.0","method":"job","params":{"status":"OK","jd":{"blob":"01000000000000000009048cc3ccbbf6de2095ac436ad08dfa2a42654e866c40bb26bde37baacf300900d684c69d0501ef58fd3722b8cf3068814c5f60fa16b75a13282270c1ece90d7939627708d43a01","job_id":"289937465125694","target":"9bc42000","difficulty":"2000","prev_hi":{"block_id":"5a3b1ee3838b08f46ef33ea1a12f90dcef262046d3bdb741939728fefd8d4994","height":31372}},"addms":[{"addm":"5a3b1ee3838b08f46ef33ea1a12f90dcef262046d3bdb741939728fefd8d49943f45742759bdbd310f7948ceed7c4d157a34bb8ebeefc5f1085014bb5f3ba393903fa37ce730179349061ff0a0b515068a7988957ddc33696828decc23493641ce9bb8ca79797933367330c9f36be46febe2c77fdd7a8d59405ba7c7382a49e5060047a50b872b6f765f604fe095fc4bad00ad910e6f044677ea0717165d961725709474c3d963de3d00eece334de1061033d105d5cfa59ff0ba6858b36193b5ccf06522e75b6903a09ba73389c20a71fab4c6743c3dd6b06c14e931918ed42ea7e7230221706f02765173ddefba3c473bd192b346fc0f7c2b2dbb032efffeb54ba6f768d2d077be37cd585c81987ffd5e841bce7b0cb3ea10747f07b82e7c74aa84f46664343c864d867b8f819055f150648b9c68cdff63a5a866d5a4ebbd0e","hi":{"block_id":"09048cc3ccbbf6de2095ac436ad08dfa2a42654e866c40bb26bde37baacf3009","height":31373},"prev_id":"5a3b1ee3838b08f46ef33ea1a12f90dcef262046d3bdb741939728fefd8d4994"}]}} ...keep working on job sync... Even once this is working properly and finally a gpu miner can be released, won't it be for Nvidia cards only? Isn't the guy that created the Nvidia miner has the majority of the network hash? Yes it will be Nvidia. Cbuchner1 has minority of network hash. Solo cloud miners (EC2) have majority of network hash.
|
|
|
|
|
|
dga
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 01, 2014, 01:44:01 AM |
|
Tiny Go bindings update - some small performance improvements, and a new demo program that's a reasonable basis for simple blockchain analytics (blockinfo/blockinfo.go) https://github.com/dave-andersen/gobbrAt this point, it could be used to write simple programs to calculate the block reward and difficulty and emit profitability, etc. I don't have exchange bindings for Poloniex or Mintpal, but if you had a favorite library to talk to them, it should be straightforward to build a mining profitability calculator. For example, to calculate the trailing 24h block reward, you might write something like (without error checking): d := gobbr.NewDaemon(DAEMON_ADDRESS)
height, _ := d.GetHeight()
reward := uint64(0) nonOrphans := 0
for i := (height-720); i < height; i++ { bh, _ := d.GetBlockHeaderByHeight(i) if !bh.OrphanStatus { nonOrphans++ reward += bh.Reward } } fmt.Printf("Average 24 hour reward: %.2f\n", float64(reward)/(nonOrphans * gobbr.Multiplier))
There is a more complete example of that code in https://github.com/dave-andersen/gobbr/blob/master/blockinfo/blockinfo.go(As a warning, it takes about 30 seconds to run - at least, while also mining on all cores). Probably still only of interest to me as I try to get it up to speed for some other hacking, but if anyone would like to use it or thinks it would be perfect for them if only it did one thing, please let me know. ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif)
|
|
|
|
|