Show Posts
|
Pages: [1]
|
2
|
Bitcoin / Mining software (miners) / Re: BTCMiner - Open Source Bitcoin Miner for ZTEX FPGA Boards, 200+ MH/s on LX150
|
on: February 08, 2012, 06:09:08 PM
|
That is the only place I have encountered it. Regarding disabling LP wouldn't that render BTCMiner incompatible with P2Pool?
Agreed. Simply ignoring this error is better. (If LP is so important they should implement it correctly ...) I apologize for being a bother and I would love to ignore it, but as it is it actually stops the miner completely which is why I suggested some handling. I will take a look at their LP implementation to see if I can spot the problem. I meant I will add a workaround so that is error is ignored by BTCMiner (and does not stop it). Ah, thanks so much! Level level of support and quality of your product is frankly astounding. Good work!
|
|
|
3
|
Bitcoin / Mining software (miners) / Re: BTCMiner - Open Source Bitcoin Miner for ZTEX FPGA Boards, 200+ MH/s on LX150
|
on: February 08, 2012, 05:34:50 PM
|
That is the only place I have encountered it. Regarding disabling LP wouldn't that render BTCMiner incompatible with P2Pool?
Agreed. Simply ignoring this error is better. (If LP is so important they should implement it correctly ...) I apologize for being a bother and I would love to ignore it, but as it is it actually stops the miner completely which is why I suggested some handling. I will take a look at their LP implementation to see if I can spot the problem.
|
|
|
5
|
Bitcoin / Mining software (miners) / Re: BTCMiner - Open Source Bitcoin Miner for ZTEX FPGA Boards, 200+ MH/s on LX150
|
on: February 08, 2012, 03:17:14 PM
|
Could you perhaps include some exception handling in the next stable release? Currently P2Pool will return a work request that is apparently too short as it triggers this exception (Slightly more details here: https://bitcointalk.org/index.php?topic=18313.msg728439#msg728439) public static void hexStrToData( String str, byte[] buf ) throws NumberFormatException { if ( str.length()<buf.length*2 ) throw new NumberFormatException("Invalid length of string"); for ( int i=0; i<buf.length; i++) { buf[i] = (byte) Integer.parseInt( str.substring(i*2,i*2+2), 16); } } This is is thrown all the way back out to the command line when it might be able to make another request or at least not crash the entire instance. As such I can't reliably leave BTCMiner pointed at P2Pool without a second instance pointed to a PPS pool waiting with && in bash.
|
|
|
6
|
Bitcoin / Pools / Re: [200GH/s] p2pool: Decentralized, DoS-resistant, Hop-Proof pool
|
on: February 06, 2012, 03:45:17 PM
|
first block at 2011-08-23 23:20:35, last block at 2012-02-06 02:55:57 total of 60 blocks in 166 Days 4 Hours 35 minutes 22 seconds 2.77 per day Just facts. So that some whiners stop emoing about luck and the definition of "average". Muahaha ... how did you even manage to unwrap your computer? How old are you? 6? Basic mathematics? Ever heard of it ...? Can we please cut out the personal attacks from these forums. This is the completely wrong community to troll and flame, all it can do is hurt our progress.
|
|
|
7
|
Bitcoin / Mining speculation / Re: What happens when the block reward halves to 25?
|
on: February 03, 2012, 03:24:59 PM
|
I fear that the block reward halving may actually occur on 12/12/12, the dreaded end of the Mayan calendar. What this means for humanity is unknown. I've buried a few hundred packages of ramen noodles (stuffed into my sleeping bag) in the back yard just in case. I sure hope these Mayans get their stuff together before then.
It's actually 12/21/12. We wouldn't want you devouring your ramen before you actually need to.
|
|
|
9
|
Bitcoin / Pools / Re: [150GH/s] p2pool: Decentralized, DoS-resistant, Hop-Proof pool
|
on: February 02, 2012, 10:32:09 PM
|
I am running the latest stable version of BTCMiner ( https://bitcointalk.org/index.php?topic=40047.0) pointed at P2Pool. After a few hours of running (I haven't been around when it fails) it throws an invalid length string exception and shuts down. After this happens whenever I try to restart the miner it seems to be ineffective and constantly reports that it detects a new block via long polling. To resolve it I have to kill and restart bitcoind, P2Pool, and BTCMiner. Is there anyone experiencing a similar error in their miners and odd P2Pool behavior? BTCMiner's exact exception would be helpful in determining the problem - can you pastebin it somewhere? I can't test it as I have no FPGA miner.. Here is the last segment of BTCMiner's output: ztex_ufm1_15d2-04A32E1A6F: f=204.00MHz, errorRate=0.00%, maxErrorRate=0.54%, hash rate: 204.0MH/s, submitted 0 new nonces, submitted hash rate 198.5MH/s New block detected by long polling New block detected by long polling ztex_ufm1_15d2-04A32E1A6F: f=204.00MHz, errorRate=0.00%, maxErrorRate=0.54%, hash rate: 204.0MH/s, submitted 4 new nonces, submitted hash rate 199.1MH/s New block detected by long polling New block detected by long polling New block detected by long polling New block detected by long polling ztex_ufm1_15d2-04A32E1A6F: f=204.00MHz, errorRate=0.23%, maxErrorRate=0.54%, hash rate: 203.5MH/s, submitted 0 new nonces, submitted hash rate 199.0MH/s New block detected by long polling Exception in thread "Thread-0" java.lang.NumberFormatException: Invalid length of string at BTCMiner.hexStrToData(BTCMiner.java:695) at NewBlockMonitor.run(BTCMiner.java:159) ztex_ufm1_15d2-04A32E1A6F: Error: Invalid length of string: Disabling device The new block detected message is pretty much constant at all times. Edit for relevant sections from the BTCMiner code: Line 159 BTCMiner.hexStrToData(BTCMiner.jsonParse(BTCMiner.bitcoinRequest(this, BTCMiner.longPollURL, BTCMiner.longPollUser, BTCMiner.longPollPassw, "getwork", ""), "data"), dataBuf);
Line 693-699 public static void hexStrToData( String str, byte[] buf ) throws NumberFormatException { if ( str.length()<buf.length*2 ) throw new NumberFormatException("Invalid length of string"); for ( int i=0; i<buf.length; i++) { buf[i] = (byte) Integer.parseInt( str.substring(i*2,i*2+2), 16); } }
JSON Parse method public static String jsonParse (String response, String parameter) throws ParserException { int lp = parameter.length(); int i = 0; while ( i+lp<response.length() && !parameter.equalsIgnoreCase(response.substring(i,i+lp)) ) i++; i+=lp; if ( i>=response.length() ) throw new ParserException( "jsonParse: Parameter `"+parameter+"' not found" ); while ( i<response.length() && response.charAt(i) != ':' ) i++; i+=1; while ( i<response.length() && (byte)response.charAt(i) <= 32 ) i++; if ( i>=response.length() ) throw new ParserException( "jsonParse: Value expected after `"+parameter+"'" ); int j=i; if ( i<response.length() && response.charAt(i)=='"' ) { i+=1; j=i; while ( j<response.length() && response.charAt(j) != '"' ) j++; if ( j>=response.length() ) throw new ParserException( "jsonParse: No closing `\"' found for value of paramter `"+parameter+"'" ); } else { while ( j<response.length() && response.charAt(j) != ',' && response.charAt(j) != /*{*/'}' ) j++; } return response.substring(i,j); }
Bitcoin request call public static String bitcoinRequest( MsgObj msgObj, String url, String user, String passw, String request, String params) throws MalformedURLException, IOException { bcid += 1; return httpGet( msgObj, url, user, passw, "{\"jsonrpc\":\"1.0\",\"id\":" + bcid + ",\"method\":\""+ request + "\",\"params\":["+ (params.equals("") ? "" : ("\""+params+"\"")) + "]}" ); }
The source is available here http://www.ztex.de/btcminer/ and I am running release 120126 It appears the getwork call to P2Pool is returning fewer bytes than expected.
|
|
|
10
|
Bitcoin / Pools / Re: [150GH/s] p2pool: Decentralized, DoS-resistant, Hop-Proof pool
|
on: February 02, 2012, 12:08:43 AM
|
I am running the latest stable version of BTCMiner ( https://bitcointalk.org/index.php?topic=40047.0) pointed at P2Pool. After a few hours of running (I haven't been around when it fails) it throws an invalid length string exception and shuts down. After this happens whenever I try to restart the miner it seems to be ineffective and constantly reports that it detects a new block via long polling. To resolve it I have to kill and restart bitcoind, P2Pool, and BTCMiner. Is there anyone experiencing a similar error in their miners and odd P2Pool behavior?
|
|
|
11
|
Bitcoin / Mining software (miners) / Re: BTCMiner - Open Source Bitcoin Miner for ZTEX FPGA Boards, 200+ MH/s on LX150
|
on: February 02, 2012, 12:06:23 AM
|
I am running the latest stable version pointed at P2Pool. After a few hours of running (I haven't been around when it fails) it throws an invalid length string exception and shuts down. After this happens whenever I try to restart the miner it seems to be ineffective and constantly clocks down without getting a share. I am assuming this is mostly a problem with P2Pool but I was wondering if anyone else has been experiencing this as well. To resolve it I have to kill and restart bitcoind, P2Pool, and BTCMiner.
|
|
|
14
|
Other / Beginners & Help / Re: Newbie restrictions
|
on: December 09, 2011, 05:26:15 PM
|
So I made 5 posts and waited overnight and I am still on the restrictions. Here's hoping this post unlocks me!
You have enough posts, but your online time is insufficient. Up at the top what does it say for: Total time logged in: X days, Y hours and Z minutes. Ah, my mistake. I misinterpreted that condition as meaning the account only needed to be 4 hours old. Thank you.
|
|
|
16
|
Other / Beginners & Help / Re: Silk Road
|
on: December 08, 2011, 07:39:05 PM
|
The site moved to a new onion address and is currently (at time of posting) logging this message: [Notice] Closing stream for '[scrubbed].onion': hidden service is unavailable (try again later)..
|
|
|
18
|
Other / Beginners & Help / Re: connect bitcoin through Tor software?
|
on: December 08, 2011, 07:29:25 PM
|
You can check to see if your proxy tunneling is successful by seeing if the Bitcoin client has made any connections to the network. Your screenshot shows that you do indeed have connections to the outside world. However, since you are running multiple proxies I'm not sure which one is actually being used. You can look at your Vidalia network map and you should see some connections to port 8333. If these connections do exist then congrats you are using TOR.
|
|
|
|