Bitcoin Forum
December 10, 2016, 08:47:26 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: « 1 ... 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 [235] 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 ... 744 »
  Print  
Author Topic: [1500 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool  (Read 2034849 times)
wtogami
Sr. Member
****
Offline Offline

Activity: 263



View Profile
March 20, 2013, 09:34:23 PM
 #4681

submitblock is relatively new in bitcoind.  In litecoind it's done with getblocktemplate, passing the first argument (mode) as submit, and the second argument (data) as the hex data of the full block.

That means there really is a compatibility problem between latest p2pool (11.2, possibly earlier) and any version of litecoind. Maybe users should be adviced not to update to latest p2pool with litecoin. If everyone updates... litecoin p2pool stops getting any blocks :-(

P2Pool also submits blocks over the P2P connection, so even if everyone upgraded, there wouldn't be any problem.

I'll either fix this in P2Pool or submit a pull request to the Litecoin project to add submitblock.

Litecoin has plans for 0.8.1, it looks like it will be a few months as coblee wants to be extra cautious.  He wants to wait past May 15th to be certain the BTC hard-fork goes smoothly.

Meanwhile there are a lot of p2pool litecoin miners who are currently failing to submit blocks.  Perhaps this is a good time to push 11.3 and make it incompatible with the previous version to ensure the broken miners are no longer leaching shares?

Edit: It seems I was wrong.  gmaxwell reminded me that p2pool has parallel block submissions, so as long as other nodes have working block submissions this isn't broken enough to require a protocol version bump and sharechain fork.  Until everyone upgrades p2pool, it seems that block submission will be delayed and we have a slightly higher chance of block orphans.

If you appreciate my work please consider making a small donation.
BTC:  1LkYiL3RaouKXTUhGcE84XLece31JjnLc3      LTC:  LYtrtYZsVSn5ymhPepcJMo4HnBeeXXVKW9
GPG: AEC1884398647C47413C1C3FB1179EB7347DC10D
1481402846
Hero Member
*
Offline Offline

Posts: 1481402846

View Profile Personal Message (Offline)

Ignore
1481402846
Reply with quote  #2

1481402846
Report to moderator
1481402846
Hero Member
*
Offline Offline

Posts: 1481402846

View Profile Personal Message (Offline)

Ignore
1481402846
Reply with quote  #2

1481402846
Report to moderator
1481402846
Hero Member
*
Offline Offline

Posts: 1481402846

View Profile Personal Message (Offline)

Ignore
1481402846
Reply with quote  #2

1481402846
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481402846
Hero Member
*
Offline Offline

Posts: 1481402846

View Profile Personal Message (Offline)

Ignore
1481402846
Reply with quote  #2

1481402846
Report to moderator
PatMan
Hero Member
*****
Offline Offline

Activity: 924


Watch out for the "Neg-Rep-Dogie-Police".....


View Profile WWW
March 20, 2013, 10:16:01 PM
 #4682

What on earth has happened here?

160% 7 day "L**k"?!!!  Shocked

Has someone been tinkering?...... Cheesy Wink

Peace.

"When one person is deluded it is called insanity - when many people are deluded it is called religion" - Robert M. Pirsig.  I don't want your coins, I want change.
Amazon UK BTC payment service - https://bitcointalk.org/index.php?topic=301229.0 - with FREE delivery!
http://www.ae911truth.org/ - http://rethink911.org/ - http://rememberbuilding7.org/
wtogami
Sr. Member
****
Offline Offline

Activity: 263



View Profile
March 20, 2013, 10:24:15 PM
 #4683

p2pool stratum for ltc uses difficulty based on btc difficulty. Unfortunately the defacto standard as used by many pools using ltc stratum now set difficulty according to the base ltc difficulty (65536 times larger) meaning p2pool is at odds with what everyone else is doing and thus is asking for way too low difficulties making cgminer submit shares of much lower difficulty than p2pool is expecting. As there is a precedent with other pools setting the defacto standard prior to p2pool, unfortunately the onus is on p2pool to come in line with the rest.

https://github.com/coblee/litecoin/commit/923b6643c902590f4817e3c4111649082353b1b8#L12L31
Quote
-static CBigNum bnProofOfWorkLimit(~uint256(0) >> 32);
+static CBigNum bnProofOfWorkLimit(~uint256(0) >> 20); // Litecoin: starting difficulty is 1 / 2^12

This is another difference between bitcoin and litecoin.  Is this also taken into account by p2pool/cgminer?

If you appreciate my work please consider making a small donation.
BTC:  1LkYiL3RaouKXTUhGcE84XLece31JjnLc3      LTC:  LYtrtYZsVSn5ymhPepcJMo4HnBeeXXVKW9
GPG: AEC1884398647C47413C1C3FB1179EB7347DC10D
gyverlb
Hero Member
*****
Offline Offline

Activity: 896



View Profile
March 20, 2013, 10:36:40 PM
 #4684

p2pool stratum for ltc uses difficulty based on btc difficulty. Unfortunately the defacto standard as used by many pools using ltc stratum now set difficulty according to the base ltc difficulty (65536 times larger) meaning p2pool is at odds with what everyone else is doing and thus is asking for way too low difficulties making cgminer submit shares of much lower difficulty than p2pool is expecting. As there is a precedent with other pools setting the defacto standard prior to p2pool, unfortunately the onus is on p2pool to come in line with the rest.

https://github.com/coblee/litecoin/commit/923b6643c902590f4817e3c4111649082353b1b8#L12L31
Quote
-static CBigNum bnProofOfWorkLimit(~uint256(0) >> 32);
+static CBigNum bnProofOfWorkLimit(~uint256(0) >> 20); // Litecoin: starting difficulty is 1 / 2^12

This is another difference between bitcoin and litecoin.  Is this also taken into account by p2pool/cgminer?
Nope: it seems p2pool should be patched as patching cgminer would break all other litecoin/stratum pools.

I've stumbled upon this bug and posted a message in #cgminer shortly before ckolivas posted this. I've documented it in the FAQ of this guide too in case someone looks in the forum for the information (I couldn't and found the information on IRC).

P2pool tuning guide
Trade BTC for €/$ at bitcoin.de (referral), it's cheaper and faster (acts as escrow and lets the buyers do bank transfers).
Tip: 17bdPfKXXvr7zETKRkPG14dEjfgBt5k2dd
Luke-Jr
Legendary
*
Offline Offline

Activity: 2100



View Profile
March 21, 2013, 12:20:01 AM
 #4685

p2pool stratum for ltc uses difficulty based on btc difficulty. Unfortunately the defacto standard as used by many pools using ltc stratum now set difficulty according to the base ltc difficulty (65536 times larger) meaning p2pool is at odds with what everyone else is doing and thus is asking for way too low difficulties making cgminer submit shares of much lower difficulty than p2pool is expecting. As there is a precedent with other pools setting the defacto standard prior to p2pool, unfortunately the onus is on p2pool to come in line with the rest.
This is really a bug in litecoin pools and *gminer. p2pool handles it more sanely. The protocol/miner only cares about algorithm, not network.
The original bug is in stratum, for specifying a network-related variable unit for difficulty, instead of the actual target.
But as long as stratum is specifying target as a fuzzy bdiff, pools using litecoin-diff instead are merely violating the spec.

jgarzik
Legendary
*
Offline Offline

Activity: 1470


View Profile
March 21, 2013, 02:07:32 AM
 #4686

Yeah we could point out how YOU put botnet support into the bitcoind client (yes it is there) buy adding a STUPID 32bit nonce range that wasn't in the BIP

Read the code closely.  bitcoind's block processing behavior is the same as it always was.  getblocktemplate returns a static value for "noncerange":

Code:
    result.push_back(Pair("noncerange", "00000000ffffffff"));

and never examines the value.

noncerange was always silly in my opinion -- which is why it does not change bitcoind's behavior one bit.


Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
kano
Legendary
*
Offline Offline

Activity: 1932


Linux since 1997 RedHat 4


View Profile
March 21, 2013, 03:18:05 AM
 #4687

Yeah we could point out how YOU put botnet support into the bitcoind client (yes it is there) buy adding a STUPID 32bit nonce range that wasn't in the BIP

Read the code closely.  bitcoind's block processing behavior is the same as it always was.  getblocktemplate returns a static value for "noncerange":

Code:
    result.push_back(Pair("noncerange", "00000000ffffffff"));

and never examines the value.

noncerange was always silly in my opinion -- which is why it does not change bitcoind's behavior one bit.

It is not in the BIP he implemented ... go read it.

Pool: https://kano.is BTC: 1KanoiBupPiZfkwqB7rfLXAzPnoTshAVmb
CKPool and CGMiner developer, IRC FreeNode #ckpool and #cgminer kanoi
Help keep Bitcoin secure by mining on pools with Stratum, the best protocol to mine Bitcoins with ASIC hardware
jgarzik
Legendary
*
Offline Offline

Activity: 1470


View Profile
March 21, 2013, 04:50:46 AM
 #4688

It is not in the BIP he implemented ... go read it.

Not relevant to evaluating your claim of "[luke-jr] put botnet support into the bitcoind client"

That statement is not just characteristically hyperbolic... it is simply false, as the source code demonstrates.


Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
kano
Legendary
*
Offline Offline

Activity: 1932


Linux since 1997 RedHat 4


View Profile
March 21, 2013, 05:25:17 AM
 #4689

It is not in the BIP he implemented ... go read it.

Not relevant to evaluating your claim of "[luke-jr] put botnet support into the bitcoind client"

That statement is not just characteristically hyperbolic... it is simply false, as the source code demonstrates.

Logic fail.
Implement a new interface, and include an old option that isn't required or even in the implementation spec.
Yeah I know it's a bit beyond a BTC dev to understand ...

Pool: https://kano.is BTC: 1KanoiBupPiZfkwqB7rfLXAzPnoTshAVmb
CKPool and CGMiner developer, IRC FreeNode #ckpool and #cgminer kanoi
Help keep Bitcoin secure by mining on pools with Stratum, the best protocol to mine Bitcoins with ASIC hardware
eleuthria
Legendary
*
Offline Offline

Activity: 1750


BTC Guild Owner


View Profile WWW
March 21, 2013, 08:48:55 PM
 #4690

Just a note for p2pool miners (and possibly a required hard fork for p2pool software versions):  Version 2 blocks (height-in-coinbase) will likely hit supermajority next week which will make any attempt to submit a Version1 block be orphaned by the rest of the network.  Deepbit has switched, BTC Guild has finally patched the getwork pools, and Ozcoin is closing getwork entirely.  After ~1 week, the 1,000 block window used to evaluate 95% supermajority has a good chance of triggering, and once it is triggered it will never turn off.

This change to v2 blocks is also a good chance to upgrade to bitcoind 0.8.1 if you haven't done so already.

R.I.P. BTC Guild, 2011 - 2015.
BTC Guild Forum Thread
gyverlb
Hero Member
*****
Offline Offline

Activity: 896



View Profile
March 21, 2013, 09:09:03 PM
 #4691

This change to v2 blocks is also a good chance to upgrade to bitcoind 0.8.1 if you haven't done so already.
Note that you only need 0.7.0 or later to generate v2 blocks. Upgrading to 0.8.1 from any 0.7.x is still advisable for P2Pool miners (for efficiency reasons).

P2pool tuning guide
Trade BTC for €/$ at bitcoin.de (referral), it's cheaper and faster (acts as escrow and lets the buyers do bank transfers).
Tip: 17bdPfKXXvr7zETKRkPG14dEjfgBt5k2dd
mdude77
Legendary
*
Offline Offline

Activity: 1358


View Profile
March 22, 2013, 12:37:16 AM
 #4692

Now that p2pool seems to have recovered, I'm trying to use it again.  I found whenever cgminer 2.11.x tries to connect, I get this error from p2pool.  2.10.5 doesn't do it.  With my machine with one GPU, cgminer is able to mine.  With the machine with 4 GPUs, cgminer hangs and then crashes.  This is on win7 x64.  What gives?

Code:
2013-03-21 20:20:56.830000 > Squelched JSON error:
2013-03-21 20:20:56.830000 > Traceback (most recent call last):
2013-03-21 20:20:56.830000 >   File "c:\python27\lib\site-packages\twisted\proto
cols\basic.py", line 455, in dataReceived
2013-03-21 20:20:56.830000 >     self.lineReceived(line)
2013-03-21 20:20:56.830000 >   File "C:\mining\p2pool\p2pool\util\jsonrpc.py", l
ine 164, in lineReceived
2013-03-21 20:20:56.830000 >     _handle(line, self, response_handler=self._matc
her.got_response).addCallback(lambda line2: self.sendLine(line2) if line2 is not
 None else None)
2013-03-21 20:20:56.830000 >   File "c:\python27\lib\site-packages\twisted\inter
net\defer.py", line 1187, in unwindGenerator
2013-03-21 20:20:56.830000 >     return _inlineCallbacks(None, gen, Deferred())
2013-03-21 20:20:56.830000 >   File "c:\python27\lib\site-packages\twisted\inter
net\defer.py", line 1045, in _inlineCallbacks
2013-03-21 20:20:56.830000 >     result = g.send(result)
2013-03-21 20:20:56.840000 > --- <exception caught here> ---
2013-03-21 20:20:56.840000 >   File "C:\mining\p2pool\p2pool\util\jsonrpc.py", l
ine 85, in _handle
2013-03-21 20:20:56.840000 >     result = yield method_meth(*list(preargs) + lis
t(params))
2013-03-21 20:20:56.840000 > exceptions.TypeError: rpc_subscribe() takes exactly
 1 argument (2 given)
2013-03-21 20:20:56.840000 > Squelched JSON error:
2013-03-21 20:20:56.840000 > Traceback (most recent call last):
2013-03-21 20:20:56.840000 >   File "c:\python27\lib\site-packages\twisted\proto
cols\basic.py", line 455, in dataReceived
2013-03-21 20:20:56.840000 >     self.lineReceived(line)
2013-03-21 20:20:56.850000 >   File "C:\mining\p2pool\p2pool\util\jsonrpc.py", l
ine 164, in lineReceived
2013-03-21 20:20:56.850000 >     _handle(line, self, response_handler=self._matc
her.got_response).addCallback(lambda line2: self.sendLine(line2) if line2 is not
 None else None)
2013-03-21 20:20:56.850000 >   File "c:\python27\lib\site-packages\twisted\inter
net\defer.py", line 1187, in unwindGenerator
2013-03-21 20:20:56.850000 >     return _inlineCallbacks(None, gen, Deferred())
2013-03-21 20:20:56.850000 >   File "c:\python27\lib\site-packages\twisted\inter
net\defer.py", line 1045, in _inlineCallbacks
2013-03-21 20:20:56.850000 >     result = g.send(result)
2013-03-21 20:20:56.850000 > --- <exception caught here> ---
2013-03-21 20:20:56.850000 >   File "C:\mining\p2pool\p2pool\util\jsonrpc.py", l
ine 85, in _handle
2013-03-21 20:20:56.850000 >     result = yield method_meth(*list(preargs) + lis
t(params))
2013-03-21 20:20:56.860000 > exceptions.TypeError: rpc_subscribe() takes exactly
 1 argument (2 given)

M

MMinerMonitor author, monitor/auto/schedule reboots/alerts/remote/MobileMiner for Ants and Spondoolies! Latest (5.2). MPoolMonitor author, monitor stats/workers for most pools, global BTC stats (current/nxt diff/USD val/hashrate/calc)! Latest (v4.2) 
Buyer beware of Bitmain hardware and services.
gyverlb
Hero Member
*****
Offline Offline

Activity: 896



View Profile
March 22, 2013, 02:02:38 AM
 #4693

Now that p2pool seems to have recovered, I'm trying to use it again.  I found whenever cgminer 2.11.x tries to connect, I get this error from p2pool.  2.10.5 doesn't do it.  With my machine with one GPU, cgminer is able to mine.  With the machine with 4 GPUs, cgminer hangs and then crashes.  This is on win7 x64.  What gives?

If it's cgminer crashing and not P2Pool the cgminer thread would be a better place to find a solution. I've seen the kind of stacktrace you got with connectivity problems.

P2pool tuning guide
Trade BTC for €/$ at bitcoin.de (referral), it's cheaper and faster (acts as escrow and lets the buyers do bank transfers).
Tip: 17bdPfKXXvr7zETKRkPG14dEjfgBt5k2dd
mdude77
Legendary
*
Offline Offline

Activity: 1358


View Profile
March 22, 2013, 02:52:44 AM
 #4694

Now that p2pool seems to have recovered, I'm trying to use it again.  I found whenever cgminer 2.11.x tries to connect, I get this error from p2pool.  2.10.5 doesn't do it.  With my machine with one GPU, cgminer is able to mine.  With the machine with 4 GPUs, cgminer hangs and then crashes.  This is on win7 x64.  What gives?

If it's cgminer crashing and not P2Pool the cgminer thread would be a better place to find a solution. I've seen the kind of stacktrace you got with connectivity problems.

p2pool gives the error when cgminer tries to connect.

I know the cgminer guys read here, maybe they'll pipe up.

M

MMinerMonitor author, monitor/auto/schedule reboots/alerts/remote/MobileMiner for Ants and Spondoolies! Latest (5.2). MPoolMonitor author, monitor stats/workers for most pools, global BTC stats (current/nxt diff/USD val/hashrate/calc)! Latest (v4.2) 
Buyer beware of Bitmain hardware and services.
mdude77
Legendary
*
Offline Offline

Activity: 1358


View Profile
March 22, 2013, 03:31:48 AM
 #4695

Now that p2pool seems to have recovered, I'm trying to use it again.  I found whenever cgminer 2.11.x tries to connect, I get this error from p2pool.  2.10.5 doesn't do it.  With my machine with one GPU, cgminer is able to mine.  With the machine with 4 GPUs, cgminer hangs and then crashes.  This is on win7 x64.  What gives?

If it's cgminer crashing and not P2Pool the cgminer thread would be a better place to find a solution. I've seen the kind of stacktrace you got with connectivity problems.

p2pool gives the error when cgminer tries to connect.

I know the cgminer guys read here, maybe they'll pipe up.

M

Also, while 2.10.5 works, it isn't working right.  On the 4xgpu box, it sits there for a good 30 seconds just showing the version before it starts.  Then it starts on LP instead of stratum.  I get this when using the windows .exe build for 11.2, as well as directly with python with latest source git.  My 1 gpu rig connects right up immediately with stratum.

M

MMinerMonitor author, monitor/auto/schedule reboots/alerts/remote/MobileMiner for Ants and Spondoolies! Latest (5.2). MPoolMonitor author, monitor stats/workers for most pools, global BTC stats (current/nxt diff/USD val/hashrate/calc)! Latest (v4.2) 
Buyer beware of Bitmain hardware and services.
forrestv
Hero Member
*****
Offline Offline

Activity: 510


View Profile
March 22, 2013, 05:40:46 AM
 #4696

I just pushed a commit that should fix the traceback. All it does is ignore the extra argument cgminer provides to mining.subscribe (which is cgminer's version).

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
wtogami
Sr. Member
****
Offline Offline

Activity: 263



View Profile
March 22, 2013, 08:45:43 AM
 #4697

News for p2pool LTC users.

https://bitcointalk.org/index.php?topic=153232.0
See gwyverlb's excellent writeup to get the most out of p2pool.

https://github.com/forrestv/p2pool/commit/d2e2257e959812186f0c78384decb37d8181c4d4
All p2pool LTC users should upgrade to the latest p2pool git for this important fix that should help speed up our found blocks and reduce the risk of block orphans.

https://github.com/forrestv/p2pool/pull/86
This should fix the flood of "hash > target" errors that bogs down p2pool.  Hopefully forrestv pulls soon so you can upgrade everything with a single pull.

If you have problems with repetitive tracebacks in stratum.py while mining LTC, try upgrading to cgminer-2.11.2+.  They fixed some kind of corruption bug.  You were losing some work!

If you appreciate my work please consider making a small donation.
BTC:  1LkYiL3RaouKXTUhGcE84XLece31JjnLc3      LTC:  LYtrtYZsVSn5ymhPepcJMo4HnBeeXXVKW9
GPG: AEC1884398647C47413C1C3FB1179EB7347DC10D
aspirez
Jr. Member
*
Offline Offline

Activity: 42


View Profile
March 22, 2013, 10:13:34 AM
 #4698

I am testing p2pool now and have a few questions. My machine makes 30-35 MH/s with bfgminer. The output of the bfgminer says that accepted shares are around 30, but the stats page says: Accepted shares:0, and at the p2pool console i see: Exprected time to share: 21h . What does this mean? Would i receive a payment for these 30 shares or i have to mine more ~21 hours to receive payment?
mdude77
Legendary
*
Offline Offline

Activity: 1358


View Profile
March 22, 2013, 10:42:00 AM
 #4699

I am testing p2pool now and have a few questions. My machine makes 30-35 MH/s with bfgminer. The output of the bfgminer says that accepted shares are around 30, but the stats page says: Accepted shares:0, and at the p2pool console i see: Exprected time to share: 21h . What does this mean? Would i receive a payment for these 30 shares or i have to mine more ~21 hours to receive payment?

Shares submitted is not chain shares found.  At 35mh/s, it will take a long time to find a share.. and that share won't get you very much BTC.  It'll be very little BTC in fact.  Right now you're spending more money on electricity than you will recoup from BTC.

M

MMinerMonitor author, monitor/auto/schedule reboots/alerts/remote/MobileMiner for Ants and Spondoolies! Latest (5.2). MPoolMonitor author, monitor stats/workers for most pools, global BTC stats (current/nxt diff/USD val/hashrate/calc)! Latest (v4.2) 
Buyer beware of Bitmain hardware and services.
rav3n_pl
Legendary
*
Offline Offline

Activity: 1320


Don`t panic! Organize!


View Profile
March 22, 2013, 11:08:53 AM
 #4700

I am testing p2pool now and have a few questions. My machine makes 30-35 MH/s with bfgminer. The output of the bfgminer says that accepted shares are around 30, but the stats page says: Accepted shares:0, and at the p2pool console i see: Exprected time to share: 21h . What does this mean? Would i receive a payment for these 30 shares or i have to mine more ~21 hours to receive payment?
Miner reporting sd=1 hasres. To get payout in p2pool you need sd=500 or more share (read pool log for current share diff).
On 35MH you can not get even single share for all day of mining... all depends on luck. It says 21Hrs = you can get share in 12hrs or in 30hrs... too big variance too little hash power.
Try mine TRC instead of BTC.

1Rav3nkMayCijuhzcYemMiPYsvcaiwHni  Bitcoin stuff on my OneDrive
My RPC CoinControl for any coin https://bitcointalk.org/index.php?topic=929954
My SatoshDice bot https://bitcointalk.org/index.php?topic=897685
Pages: « 1 ... 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 [235] 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 ... 744 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!