Bitcoin Forum
May 06, 2024, 04:23:55 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 183 184 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 ... 814 »
  Print  
Author Topic: [1500 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool  (Read 2591635 times)
spiccioli
Legendary
*
Offline Offline

Activity: 1378
Merit: 1003

nec sine labore


View Profile
March 15, 2013, 04:15:20 PM
 #4641

Right. The question is, is tuning the block sizes causing a problem with p2pool? Is that the "bug"?

No, tuning the block size changes the number of transactions that will be included in your block when you find one.

spiccioli
1714969435
Hero Member
*
Offline Offline

Posts: 1714969435

View Profile Personal Message (Offline)

Ignore
1714969435
Reply with quote  #2

1714969435
Report to moderator
1714969435
Hero Member
*
Offline Offline

Posts: 1714969435

View Profile Personal Message (Offline)

Ignore
1714969435
Reply with quote  #2

1714969435
Report to moderator
1714969435
Hero Member
*
Offline Offline

Posts: 1714969435

View Profile Personal Message (Offline)

Ignore
1714969435
Reply with quote  #2

1714969435
Report to moderator
The Bitcoin network protocol was designed to be extremely flexible. It can be used to create timed transactions, escrow transactions, multi-signature transactions, etc. The current features of the client only hint at what will be possible in the future.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714969435
Hero Member
*
Offline Offline

Posts: 1714969435

View Profile Personal Message (Offline)

Ignore
1714969435
Reply with quote  #2

1714969435
Report to moderator
1714969435
Hero Member
*
Offline Offline

Posts: 1714969435

View Profile Personal Message (Offline)

Ignore
1714969435
Reply with quote  #2

1714969435
Report to moderator
1714969435
Hero Member
*
Offline Offline

Posts: 1714969435

View Profile Personal Message (Offline)

Ignore
1714969435
Reply with quote  #2

1714969435
Report to moderator
gyverlb
Hero Member
*****
Offline Offline

Activity: 896
Merit: 1000



View Profile
March 15, 2013, 05:06:23 PM
 #4642

Right. The question is, is tuning the block sizes causing a problem with p2pool? Is that the "bug"?
Adding that to the my mining on P2Pool FAQ.

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
Nite69
Sr. Member
****
Offline Offline

Activity: 477
Merit: 500


View Profile
March 16, 2013, 12:24:00 AM
 #4643

Is this correct place to send error logs? Anyway, here it is (Litecoin mining, Ubuntu linux 64 bit, Python 2.7.3, p2pool 11.2, cgminer):

Did I just miss a block reward?
 
Code:
2013-03-16 02:18:51.330217 New work for worker! Difficulty: 0.000033 Share difficulty: 0.186782 Total block value: 50.100000 LTC including 1 transactions
2013-03-16 02:18:51.562563 P2Pool: 17311 shares in chain (9289 verified/17315 total) Peers: 6 (0 incoming)
2013-03-16 02:18:51.562757  Local: 141kH/s in last 10.0 minutes Local dead on arrival: ~2.0% (1-4%) Expected time to share: 1.6 hours
2013-03-16 02:18:51.562855  Shares: 1 (0 orphan, 0 dead) Stale rate: ~0.0% (0-80%) Efficiency: ~112.8% (23-113%) Current payout: 0.0000 LTC
2013-03-16 02:18:51.562963  Pool: 90046kH/s Stale rate: 11.3% Expected time to block: 1.1 hours
2013-03-16 02:18:52.372069 > Error submitting block: (will retry)
2013-03-16 02:18:52.372251 > Traceback (most recent call last):
2013-03-16 02:18:52.372354 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
2013-03-16 02:18:52.372532 >     current.result = callback(current.result, *args, **kw)
2013-03-16 02:18:52.372627 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult
2013-03-16 02:18:52.372719 >     _inlineCallbacks(r, g, deferred)
2013-03-16 02:18:52.372812 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 02:18:52.372905 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 02:18:52.372997 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 02:18:52.373091 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 02:18:52.373181 > --- <exception caught here> ---
2013-03-16 02:18:52.373272 >   File "/home/hko/src/p2pool.11.2/p2pool-11.2/p2pool/util/deferral.py", line 41, in f
2013-03-16 02:18:52.373364 >     result = yield func(*args, **kwargs)
2013-03-16 02:18:52.373455 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 02:18:52.373546 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 02:18:52.373637 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 02:18:52.373728 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 02:18:52.373821 >   File "/home/hko/src/p2pool.11.2/p2pool-11.2/p2pool/bitcoin/helper.py", line 73, in submit_block_rpc
2013-03-16 02:18:52.373914 >     result = yield bitcoind.rpc_submitblock(bitcoin_data.block_type.pack(block).encode('hex'))
2013-03-16 02:18:52.374007 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 02:18:52.374098 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 02:18:52.374189 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 02:18:52.374281 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 02:18:52.374372 >   File "/home/hko/src/p2pool.11.2/p2pool-11.2/p2pool/util/jsonrpc.py", line 133, in _http_do
2013-03-16 02:18:52.374465 >     raise Error_for_code(resp['error']['code'])(resp['error']['message'], resp['error'].get('data', None))
2013-03-16 02:18:52.374580 > p2pool.util.jsonrpc.NarrowError: -32601 Method not found
2013-03-16 02:18:52.802962 Worker LeYwScvLCNV2HtcdbhttYRyiA68PkxeRSS submitted share with hash > target:
2013-03-16 02:18:52.803177     Hash:   f51d2f8766822d2f278eaf0b3badc9576675eafe01cbbce35f6ee092aef3
2013-03-16 02:18:52.803300     Target: 74e9e08aa9e2f00000000000000000000000000000000000000000000000

Code:
2013-03-16 02:19:02.274273 Worker LeYwScvLCNV2HtcdbhttYRyiA68PkxeRSS submitted share with hash > target:
2013-03-16 02:19:02.274453     Hash:   e28dda0362f98155c7dad450cca48e9a4853d52ef7fadbec38306283c0cc
2013-03-16 02:19:02.274572     Target: 6d7acd59ed19840000000000000000000000000000000000000000000000
2013-03-16 02:19:02.382025 > Unhandled error in Deferred:
2013-03-16 02:19:02.382513 > Unhandled Error
2013-03-16 02:19:02.382629 > Traceback (most recent call last):
2013-03-16 02:19:02.382729 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 391, in errback
2013-03-16 02:19:02.382823 >     self._startRunCallbacks(fail)
2013-03-16 02:19:02.382916 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 458, in _startRunCallbacks
2013-03-16 02:19:02.383006 >     self._runCallbacks()
2013-03-16 02:19:02.383098 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
2013-03-16 02:19:02.383189 >     current.result = callback(current.result, *args, **kw)
2013-03-16 02:19:02.383280 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult
2013-03-16 02:19:02.383389 >     _inlineCallbacks(r, g, deferred)
2013-03-16 02:19:02.383482 > --- <exception caught here> ---
2013-03-16 02:19:02.383574 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 02:19:02.383666 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 02:19:02.383758 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 02:19:02.383852 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 02:19:02.383943 >   File "/home/hko/src/p2pool.11.2/p2pool-11.2/p2pool/util/deferral.py", line 41, in f
2013-03-16 02:19:02.384034 >     result = yield func(*args, **kwargs)
2013-03-16 02:19:02.384125 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 02:19:02.384216 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 02:19:02.384307 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 02:19:02.384454 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 02:19:02.384555 >   File "/home/hko/src/p2pool.11.2/p2pool-11.2/p2pool/bitcoin/helper.py", line 73, in submit_block_rpc
2013-03-16 02:19:02.384648 >     result = yield bitcoind.rpc_submitblock(bitcoin_data.block_type.pack(block).encode('hex'))
2013-03-16 02:19:02.384740 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 02:19:02.384831 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 02:19:02.384922 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 02:19:02.385039 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 02:19:02.385132 >   File "/home/hko/src/p2pool.11.2/p2pool-11.2/p2pool/util/jsonrpc.py", line 133, in _http_do
2013-03-16 02:19:02.385225 >     raise Error_for_code(resp['error']['code'])(resp['error']['message'], resp['error'].get('data', None))
2013-03-16 02:19:02.385320 > p2pool.util.jsonrpc.NarrowError: -32601 Method not found
2013-03-16 02:19:03.362130 Worker LeYwScvLCNV2HtcdbhttYRyiA68PkxeRSS submitted share with hash > target:
2013-03-16 02:19:03.362454     Hash:   9d57649c0e0d6c613e5c98d8045ef2dbd4d1415f6a20369c3123d8ba7569
2013-03-16 02:19:03.362590     Target: 6d7acd59ed19840000000000000000000000000000000000000000000000

Sync: ShiSKnx4W6zrp69YEFQyWk5TkpnfKLA8wx
Bitcoin: 17gNvfoD2FDqTfESUxNEmTukGbGVAiJhXp
Litecoin: LhbDew4s9wbV8xeNkrdFcLK5u78APSGLrR
AuroraCoin: AXVoGgYtSVkPv96JLL7CiwcyVvPxXHXRK9
rav3n_pl
Legendary
*
Offline Offline

Activity: 1361
Merit: 1003


Don`t panic! Organize!


View Profile WWW
March 16, 2013, 05:44:23 AM
 #4644

If this "method not found" error is just after you start node - ignore it.
If it shows up after few hrs of minig - something is wrong.
Try this git tree: https://github.com/litecoin-project/litecoin/tree/0.6.3


1Rav3nkMayCijuhzcYemMiPYsvcaiwHni  Bitcoin stuff on my OneDrive
My RPC CoinControl for any coin https://bitcointalk.org/index.php?topic=929954
Some stuff on https://github.com/Rav3nPL/
Nite69
Sr. Member
****
Offline Offline

Activity: 477
Merit: 500


View Profile
March 16, 2013, 06:02:19 AM
Last edit: March 16, 2013, 06:13:06 AM by Nite69
 #4645

After I start p2pool one error, this one (not the same) every now and then. During last night, there has been a lot of them ('new errors' end the ones that come after retry).
Also, 7 found blocks @ 150Khz during 0.300 days (;.D), so if it is when submitting blocks, it does not fail all.


Counted 11 group of errors on the log, so most likely i have not missed real blocks. On my hash rate it is too much and 7 found is somewhere in the correct scale.

The error that comes at the start, has been there also once during the night.

Sync: ShiSKnx4W6zrp69YEFQyWk5TkpnfKLA8wx
Bitcoin: 17gNvfoD2FDqTfESUxNEmTukGbGVAiJhXp
Litecoin: LhbDew4s9wbV8xeNkrdFcLK5u78APSGLrR
AuroraCoin: AXVoGgYtSVkPv96JLL7CiwcyVvPxXHXRK9
Nite69
Sr. Member
****
Offline Offline

Activity: 477
Merit: 500


View Profile
March 16, 2013, 06:42:10 AM
Last edit: March 16, 2013, 07:55:57 AM by Nite69
 #4646

If this "method not found" error is just after you start node - ignore it.
If it shows up after few hrs of minig - something is wrong.
Try this git tree: https://github.com/litecoin-project/litecoin/tree/0.6.3



Well, I'm already running litecoin wallet from latest git. Is there specific version of p2pool for litecoin mining?

Anyway, now running latest git p2pool, version is Version: 11.2-2-g77e7e2a. Seems to log a lot more..

If you want to test it, try http://p2pool.cave.dy.fi:9327 As usual, your receiving wallet address as username with any password. This is just testing, so I cannot guarantee any uptime, have your backup pool ready.

Fee is 0.4 + 0.4 to authors

xxxx      28798 21.9  1.8 366732 155228 pts/5   Sl   08:36   1:14 python run_p2pool.py --net litecoin -f 0.4 --give-author 0.4

Edit: gave it a second thought and closedit. Do not know enought about this to open it widely on the net.

Sync: ShiSKnx4W6zrp69YEFQyWk5TkpnfKLA8wx
Bitcoin: 17gNvfoD2FDqTfESUxNEmTukGbGVAiJhXp
Litecoin: LhbDew4s9wbV8xeNkrdFcLK5u78APSGLrR
AuroraCoin: AXVoGgYtSVkPv96JLL7CiwcyVvPxXHXRK9
Nite69
Sr. Member
****
Offline Offline

Activity: 477
Merit: 500


View Profile
March 16, 2013, 07:01:19 AM
 #4647

Anyway, now running latest git p2pool, version is Version: 11.2-2-g77e7e2a. Seems to log a lot more..

Almost immediately:
grep -C 20 excep p2pool.log

Code:
2013-03-16 09:00:19.980302 Worker LeYwScvLCNV2HtcdbhttYRyiA68PkxeRSS submitted share with hash > target:
2013-03-16 09:00:19.980361     Hash:   691fba69db768b4dc92b90b5e6b7448a3f02dc59b6fb38499109b9fd96bc
2013-03-16 09:00:19.980473     Target: 60820325fdce4c0000000000000000000000000000000000000000000000
2013-03-16 09:00:22.420152 Worker LeYwScvLCNV2HtcdbhttYRyiA68PkxeRSS submitted share with hash > target:
2013-03-16 09:00:22.420423     Hash:   eaaff71caa97c74ea6d063c563021f68abb496ea931c31f93573238c1f82
2013-03-16 09:00:22.420559     Target: 60820325fdce4c0000000000000000000000000000000000000000000000
2013-03-16 09:00:22.976285 P2Pool: 17325 shares in chain (12480 verified/17329 total) Peers: 6 (0 incoming)
2013-03-16 09:00:22.976498  Local: 162kH/s in last 10.0 minutes Local dead on arrival: ~2.7% (1-5%) Expected time to share: 1.4 hours
2013-03-16 09:00:22.976597  Shares: 1 (1 orphan, 0 dead) Stale rate: ~100.0% (20-100%) Efficiency: ~0.0% (0-94%) Current payout: 0.0000 LTC
2013-03-16 09:00:22.976705  Pool: 96990kH/s Stale rate: 15.5% Expected time to block: 1.0 hours
2013-03-16 09:00:23.333739 > Error submitting block: (will retry)
2013-03-16 09:00:23.333921 > Traceback (most recent call last):
2013-03-16 09:00:23.334026 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
2013-03-16 09:00:23.334122 >     current.result = callback(current.result, *args, **kw)
2013-03-16 09:00:23.334215 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult
2013-03-16 09:00:23.334306 >     _inlineCallbacks(r, g, deferred)
2013-03-16 09:00:23.334396 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 09:00:23.334487 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 09:00:23.334579 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 09:00:23.334672 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 09:00:23.334762 > --- <exception caught here> ---
2013-03-16 09:00:23.334853 >   File "/home/hko/src/p2pool/p2pool/util/deferral.py", line 41, in f
2013-03-16 09:00:23.334943 >     result = yield func(*args, **kwargs)
2013-03-16 09:00:23.335033 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 09:00:23.335122 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 09:00:23.335212 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 09:00:23.335304 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 09:00:23.335394 >   File "/home/hko/src/p2pool/p2pool/bitcoin/helper.py", line 73, in submit_block_rpc
2013-03-16 09:00:23.335485 >     result = yield bitcoind.rpc_submitblock(bitcoin_data.block_type.pack(block).encode('hex'))
2013-03-16 09:00:23.335598 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 09:00:23.335690 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 09:00:23.335781 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 09:00:23.335873 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 09:00:23.335964 >   File "/home/hko/src/p2pool/p2pool/util/jsonrpc.py", line 133, in _http_do
2013-03-16 09:00:23.336055 >     raise Error_for_code(resp['error']['code'])(resp['error']['message'], resp['error'].get('data', None))
2013-03-16 09:00:23.336146 > p2pool.util.jsonrpc.NarrowError: -32601 Method not found
2013-03-16 09:00:23.439910 Worker LeYwScvLCNV2HtcdbhttYRyiA68PkxeRSS submitted share with hash > target:
2013-03-16 09:00:23.440137     Hash:   ae062f7ebd37721cfb1eaa911a1143d167ff6623b766a2bdafe53f06a2af
2013-03-16 09:00:23.440264     Target: 60820325fdce4c0000000000000000000000000000000000000000000000
2013-03-16 09:00:23.643866 Worker LeYwScvLCNV2HtcdbhttYRyiA68PkxeRSS submitted share with hash > target:
2013-03-16 09:00:23.644088     Hash:   9f6bf74d89b73085d539dad3a1a02b1143d9cf9f4aa59f62fefcfab1a289

Sync: ShiSKnx4W6zrp69YEFQyWk5TkpnfKLA8wx
Bitcoin: 17gNvfoD2FDqTfESUxNEmTukGbGVAiJhXp
Litecoin: LhbDew4s9wbV8xeNkrdFcLK5u78APSGLrR
AuroraCoin: AXVoGgYtSVkPv96JLL7CiwcyVvPxXHXRK9
rav3n_pl
Legendary
*
Offline Offline

Activity: 1361
Merit: 1003


Don`t panic! Organize!


View Profile WWW
March 16, 2013, 07:19:32 AM
 #4648

litecoin 0.6.3 is NOT a main tree branch.
Try download and compile it, I have no errors on it.

1Rav3nkMayCijuhzcYemMiPYsvcaiwHni  Bitcoin stuff on my OneDrive
My RPC CoinControl for any coin https://bitcointalk.org/index.php?topic=929954
Some stuff on https://github.com/Rav3nPL/
Nite69
Sr. Member
****
Offline Offline

Activity: 477
Merit: 500


View Profile
March 16, 2013, 07:35:45 AM
 #4649

litecoin 0.6.3 is NOT a main tree branch.
Try download and compile it, I have no errors on it.

Ok, now running, but it says version is "v0.6.1-670-g7fd4c83-beta"

Edit: And soon (now officialp2pool 11.2). Looks like some incompatibility with python libraries?:
Code:
2013-03-16 09:39:02.500650 P2Pool: 17813 shares in chain (11935 verified/17817 total) Peers: 6 (0 incoming)
2013-03-16 09:39:02.500874  Local: 9010H/s in last 1.1 minutes Local dead on arrival: ~1.2% (0-5%) Expected time to share: 1.1 days
2013-03-16 09:39:02.500990  Shares: 0 (0 orphan, 0 dead) Stale rate: ??? Efficiency: ??? Current payout: 0.0000 LTC
2013-03-16 09:39:02.501111  Pool: 105MH/s Stale rate: 16.5% Expected time to block: 57.0 minutes
2013-03-16 09:39:04.373335 > Error submitting block: (will retry)
2013-03-16 09:39:04.373541 > Traceback (most recent call last):
2013-03-16 09:39:04.373660 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
2013-03-16 09:39:04.373767 >     current.result = callback(current.result, *args, **kw)
2013-03-16 09:39:04.373871 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult
2013-03-16 09:39:04.374002 >     _inlineCallbacks(r, g, deferred)
2013-03-16 09:39:04.374106 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 09:39:04.374208 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 09:39:04.374310 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 09:39:04.374414 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 09:39:04.374528 > --- <exception caught here> ---
2013-03-16 09:39:04.374628 >   File "/home/hko/src/p2pool.11.2/p2pool-11.2/p2pool/util/deferral.py", line 41, in f
2013-03-16 09:39:04.374726 >     result = yield func(*args, **kwargs)
2013-03-16 09:39:04.374825 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 09:39:04.374925 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 09:39:04.375024 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 09:39:04.375124 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 09:39:04.375223 >   File "/home/hko/src/p2pool.11.2/p2pool-11.2/p2pool/bitcoin/helper.py", line 73, in submit_block_rpc
2013-03-16 09:39:04.375324 >     result = yield bitcoind.rpc_submitblock(bitcoin_data.block_type.pack(block).encode('hex'))
2013-03-16 09:39:04.375423 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 09:39:04.375523 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 09:39:04.375621 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 09:39:04.375720 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 09:39:04.375818 >   File "/home/hko/src/p2pool.11.2/p2pool-11.2/p2pool/util/jsonrpc.py", line 133, in _http_do
2013-03-16 09:39:04.375917 >     raise Error_for_code(resp['error']['code'])(resp['error']['message'], resp['error'].get('data', None))
2013-03-16 09:39:04.376017 > p2pool.util.jsonrpc.NarrowError: -32601 Method not found

Sync: ShiSKnx4W6zrp69YEFQyWk5TkpnfKLA8wx
Bitcoin: 17gNvfoD2FDqTfESUxNEmTukGbGVAiJhXp
Litecoin: LhbDew4s9wbV8xeNkrdFcLK5u78APSGLrR
AuroraCoin: AXVoGgYtSVkPv96JLL7CiwcyVvPxXHXRK9
rav3n_pl
Legendary
*
Offline Offline

Activity: 1361
Merit: 1003


Don`t panic! Organize!


View Profile WWW
March 16, 2013, 08:36:23 AM
 #4650

Code:
2013-03-16 09:39:04.373335 > Error submitting block: (will retry)
...
2013-03-16 09:39:04.375917 >     raise Error_for_code(resp['error']['code'])(resp['error']['message'], resp['error'].get('data', None))
2013-03-16 09:39:04.376017 > p2pool.util.jsonrpc.NarrowError: -32601 Method not found
It clearly says, that daemon is not accepting submitted block (function is not known).
See debug.log form litecoind and log for p2pool in same time.
https://github.com/litecoin-project/litecoin/issues/23

1Rav3nkMayCijuhzcYemMiPYsvcaiwHni  Bitcoin stuff on my OneDrive
My RPC CoinControl for any coin https://bitcointalk.org/index.php?topic=929954
Some stuff on https://github.com/Rav3nPL/
Nite69
Sr. Member
****
Offline Offline

Activity: 477
Merit: 500


View Profile
March 16, 2013, 09:11:13 AM
Last edit: March 16, 2013, 11:42:08 AM by Nite69
 #4651

Gotcha. but no hint on the litecoin debug log. Doi i have the correct litecoin version, ie is the version displayed in litecoin wrong?:
Code:
ThreadRPCServer method=submitblock
CreateNewBlock(): total size 1225
ThreadRPCServer method=getblock
getheaders 315427 to e9a6aa3cc3b3e18ba8cf
Flushed 10151 addresses to peers.dat  137ms
ThreadRPCServer method=submitblock
IRC got join
getheaders 315427 to e9a6aa3cc3b3e18ba8cf
ThreadRPCServer method=submitblock
CTxMemPool::accept() : accepted db4adf77ae (poolsz 3)
received getdata for: tx db4adf77ae346e8cdacf
ThreadRPCServer method=submitblock
IRC got join
CreateNewBlock(): total size 1417
getheaders 315427 to e9a6aa3cc3b3e18ba8cf
ThreadRPCServer method=submitblock

in p2pool:
Code:
2013-03-16 11:09:35.479095 P2Pool: 17330 shares in chain (12475 verified/17334 total) Peers: 7 (0 incoming)
2013-03-16 11:09:35.480450  Local: 135kH/s in last 8.8 minutes Local dead on arrival: ~4.7% (3-7%) Expected time to share: 1.7 hours
2013-03-16 11:09:35.480508  Shares: 0 (0 orphan, 0 dead) Stale rate: ??? Efficiency: ??? Current payout: 0.0000 LTC
2013-03-16 11:09:35.480560  Pool: 108MH/s Stale rate: 16.3% Expected time to block: 55.7 minutes
2013-03-16 11:09:35.596987 > Error submitting block: (will retry)
2013-03-16 11:09:35.597195 > Traceback (most recent call last):
2013-03-16 11:09:35.597310 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
2013-03-16 11:09:35.597415 >     current.result = callback(current.result, *args, **kw)
2013-03-16 11:09:35.597514 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult
2013-03-16 11:09:35.597634 >     _inlineCallbacks(r, g, deferred)
2013-03-16 11:09:35.597734 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 11:09:35.597834 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 11:09:35.597936 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 11:09:35.598038 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 11:09:35.598135 > --- <exception caught here> ---

also this

Code:
2013-03-16 11:09:44.513278  Local: 134kH/s in last 8.9 minutes Local dead on arrival: ~4.7% (3-7%) Expected time to share: 1.8 hours
2013-03-16 11:09:44.513396  Shares: 0 (0 orphan, 0 dead) Stale rate: ??? Efficiency: ??? Current payout: 0.0000 LTC
2013-03-16 11:09:44.513516  Pool: 107MH/s Stale rate: 16.3% Expected time to block: 55.9 minutes
2013-03-16 11:09:45.610197 > Unhandled error in Deferred:
2013-03-16 11:09:45.610717 > Unhandled Error
2013-03-16 11:09:45.610842 > Traceback (most recent call last):
2013-03-16 11:09:45.610952 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 391, in errback
2013-03-16 11:09:45.611056 >     self._startRunCallbacks(fail)
2013-03-16 11:09:45.611157 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 458, in _startRunCallbacks
2013-03-16 1


And immediately after it, i got a litecoin transfer to my wallet?

btw, timestamps on litecoin log would be nice..

Update: Yep, it happens every time p2pool finds a block. Happened with last two block 11.07 and 13.05 (UTC+2). BUT there is one more, and at that time p2pool did not solev a block. It happened at
Code:
2013-03-16 12:37:14.524647 > Error submitting block: (will retry)
Does that mean one p2pool solved block did not find it's way to litecoin blockchain?

Here is the block id (interesting.. that block might be worth a look):
Code:
2013-03-16 12:35:54.430120 GOT BLOCK FROM PEER! Passing to bitcoind! 1f88206f bitcoin: http://explorer.litecoin.net/block/47fc954d89fd61b218bc422d98213f1cd4cb7bfa5417b53f2f46bdce1f88206f


wow, while writing this, pool solves one. And again the problem. litecoin-qt log:

Code:
ThreadRPCServer method=submitblock
getheaders 315489 to c1901e4695a2e124a8f0
ThreadRPCServer method=submitblock
Flushed 10066 addresses to peers.dat  90ms
ThreadRPCServer method=submitblock
getheaders 315489 to c1901e4695a2e124a8f0
CTxMemPool::accept() : accepted a68e5470e8 (poolsz 1)
received getdata for: tx a68e5470e8d954882258
ThreadRPCServer method=submitblock
CTxMemPool::accept() : accepted 14e3f38dca (poolsz 2)
received getdata for: tx 14e3f38dcadbe43dc280
CreateNewBlock(): total size 2431
getheaders 315489 to c1901e4695a2e124a8f0
IRC got join
ThreadRPCServer method=submitblock
IRC got join
ThreadRPCServer method=submitblock
getheaders 315489 to c1901e4695a2e124a8f0
ThreadRPCServer method=submitblock
getheaders 315489 to c1901e4695a2e124a8f0
ThreadRPCServer method=submitblock
ThreadRPCServer method=submitblock
getheaders 315489 to c1901e4695a2e124a8f0
getheaders 315489 to c1901e4695a2e124a8f0


update: so there was a non-p2pool block on the p2pool network. One of these is not p2pool blocks.
Code:
xxx@xxxx:~/src/p2pool.11.2/p2pool-11.2$ grep "GOT BLOCK FROM PEER" p2pool.log 
2013-03-16 11:08:05.433362 GOT BLOCK FROM PEER! Passing to bitcoind! aa006de6 bitcoin: http://explorer.litecoin.net/block/e9a6aa3cc3b3e18ba8cf43b4130ad5e5ee68169495deb62055157fa8aa006de6
2013-03-16 12:35:54.430120 GOT BLOCK FROM PEER! Passing to bitcoind! 1f88206f bitcoin: http://explorer.litecoin.net/block/47fc954d89fd61b218bc422d98213f1cd4cb7bfa5417b53f2f46bdce1f88206f
2013-03-16 13:05:59.656533 GOT BLOCK FROM PEER! Passing to bitcoind! 2ffe6ef9 bitcoin: http://explorer.litecoin.net/block/5297ae65f3807e6d184a8e8615121958ea8bb3a94d8d2f28decc8d672ffe6ef9
2013-03-16 13:26:35.128236 GOT BLOCK FROM PEER! Passing to bitcoind! 84cdf982 bitcoin: http://explorer.litecoin.net/block/5e91c97156381c3f7b52e26729947a82ff6afcb0c7fd86cba11141da84cdf982

Sync: ShiSKnx4W6zrp69YEFQyWk5TkpnfKLA8wx
Bitcoin: 17gNvfoD2FDqTfESUxNEmTukGbGVAiJhXp
Litecoin: LhbDew4s9wbV8xeNkrdFcLK5u78APSGLrR
AuroraCoin: AXVoGgYtSVkPv96JLL7CiwcyVvPxXHXRK9
twmz
Hero Member
*****
Offline Offline

Activity: 737
Merit: 500



View Profile
March 16, 2013, 02:10:50 PM
 #4652

As I mentioned in a previous post, http://p2pool.info is a web app that is hosted in the cloud, but it depends on bitcoind and p2pool servers running in the basement of my home.  That means when I have power or internet disruptions at home, the site stops being accurate.

I have been working on making the web app independent of my home's servers and I'm nearly done.  It now finds blocks exclusively by using the blockchain.info APIs instead of a bitcoind server in my house.  The last part of my work is to make it not depend on the p2pool server in my house either... 

There is an old thread here that lists public p2pool servers, but it is so old that I don't trust it.  Does anyone still run a public p2pool server that they intend to keep around?  Ideally, I'd like a list of 3+ of them so that p2pool.info wouldn't be dependent on any p2pool server.  All that p2pool.info uses the p2pool API for is to get the pool hashrate, user list, and payout list once every 5 minutes, so the traffic to your server would be very light and largely insignificant.

If you have a server that you'd be willing to let p2pool.info use, please let me know here or via PM.

Was I helpful?  1TwmzX1wBxNF2qtAJRhdKmi2WyLZ5VHRs
WoT, GPG

Bitrated user: ewal.
Nite69
Sr. Member
****
Offline Offline

Activity: 477
Merit: 500


View Profile
March 16, 2013, 07:45:00 PM
 #4653

Hi!

How is this supposed to work? I do not understand how it could have been implemented. Also, it does not seem to work on litecoin p2pool.

  -f FEE_PERCENTAGE, --fee FEE_PERCENTAGE
                        charge workers mining to their own bitcoin address (by
                        setting their miner's username to a bitcoin address)
                        this percentage fee to mine on your p2pool instance.
                        Amount displayed at http://127.0.0.1:WORKER_PORT/fee
                        (default: 0)

Sync: ShiSKnx4W6zrp69YEFQyWk5TkpnfKLA8wx
Bitcoin: 17gNvfoD2FDqTfESUxNEmTukGbGVAiJhXp
Litecoin: LhbDew4s9wbV8xeNkrdFcLK5u78APSGLrR
AuroraCoin: AXVoGgYtSVkPv96JLL7CiwcyVvPxXHXRK9
twmz
Hero Member
*****
Offline Offline

Activity: 737
Merit: 500



View Profile
March 16, 2013, 07:49:02 PM
 #4654

Hi!

How is this supposed to work? I do not understand how it could have been implemented. Also, it does not seem to work on litecoin p2pool.

  -f FEE_PERCENTAGE, --fee FEE_PERCENTAGE
                        charge workers mining to their own bitcoin address (by
                        setting their miner's username to a bitcoin address)
                        this percentage fee to mine on your p2pool instance.
                        Amount displayed at http://127.0.0.1:WORKER_PORT/fee
                        (default: 0)


if you set the fee percentage to 1%, then 1% of shares (randomly) will be allocated to the address specified on the command line (with -a) instead of to the address passed in by the miner as the username.

Was I helpful?  1TwmzX1wBxNF2qtAJRhdKmi2WyLZ5VHRs
WoT, GPG

Bitrated user: ewal.
Nite69
Sr. Member
****
Offline Offline

Activity: 477
Merit: 500


View Profile
March 16, 2013, 07:58:49 PM
 #4655

Hi!

How is this supposed to work? I do not understand how it could have been implemented. Also, it does not seem to work on litecoin p2pool.

  -f FEE_PERCENTAGE, --fee FEE_PERCENTAGE
                        charge workers mining to their own bitcoin address (by
                        setting their miner's username to a bitcoin address)
                        this percentage fee to mine on your p2pool instance.
                        Amount displayed at http://127.0.0.1:WORKER_PORT/fee
                        (default: 0)


if you set the fee percentage to 1%, then 1% of shares (randomly) will be allocated to the address specified on the command line (with -a) instead of to the address passed in by the miner as the username.

Yes, of course, ty anyway. Found it on the code:
Code:
        if random.uniform(0, 100) < self.worker_fee:
            pubkey_hash = self.my_pubkey_hash

Sync: ShiSKnx4W6zrp69YEFQyWk5TkpnfKLA8wx
Bitcoin: 17gNvfoD2FDqTfESUxNEmTukGbGVAiJhXp
Litecoin: LhbDew4s9wbV8xeNkrdFcLK5u78APSGLrR
AuroraCoin: AXVoGgYtSVkPv96JLL7CiwcyVvPxXHXRK9
Nite69
Sr. Member
****
Offline Offline

Activity: 477
Merit: 500


View Profile
March 17, 2013, 06:22:17 AM
 #4656

Code:
2013-03-16 09:39:04.373335 > Error submitting block: (will retry)
...
2013-03-16 09:39:04.375917 >     raise Error_for_code(resp['error']['code'])(resp['error']['message'], resp['error'].get('data', None))
2013-03-16 09:39:04.376017 > p2pool.util.jsonrpc.NarrowError: -32601 Method not found
It clearly says, that daemon is not accepting submitted block (function is not known).
See debug.log form litecoind and log for p2pool in same time.
https://github.com/litecoin-project/litecoin/issues/23


Debugged this a little more. Well, there is not submitblock rpc method on the litecoin! :-( This means it is not working anywhere. But then how the blocks get into litecoin block chain?!
bitcoinrp.cpp @ bitcoin
Code:
    { "settxfee",               &settxfee,               false,  false },
    { "getblocktemplate",       &getblocktemplate,       true,   false },
    { "submitblock",            &submitblock,            false,  false },
    { "listsinceblock",         &listsinceblock,         false,  false },
    { "dumpprivkey",            &dumpprivkey,            false,  false },
    { "importprivkey",          &importprivkey,          false,  false },

bitcoinrp.cpp @ litecoin

Code:
    { "getblocktemplate",       &getblocktemplate,       true },
    { "listsinceblock",         &listsinceblock,         false },
    { "dumpprivkey",            &dumpprivkey,            false },
    { "importprivkey",          &importprivkey,          false },

Sync: ShiSKnx4W6zrp69YEFQyWk5TkpnfKLA8wx
Bitcoin: 17gNvfoD2FDqTfESUxNEmTukGbGVAiJhXp
Litecoin: LhbDew4s9wbV8xeNkrdFcLK5u78APSGLrR
AuroraCoin: AXVoGgYtSVkPv96JLL7CiwcyVvPxXHXRK9
eleuthria
Legendary
*
Offline Offline

Activity: 1750
Merit: 1007



View Profile
March 17, 2013, 07:06:44 AM
 #4657

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.

RIP BTC Guild, April 2011 - June 2015
Nite69
Sr. Member
****
Offline Offline

Activity: 477
Merit: 500


View Profile
March 17, 2013, 08:18:24 AM
 #4658

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 :-(

Sync: ShiSKnx4W6zrp69YEFQyWk5TkpnfKLA8wx
Bitcoin: 17gNvfoD2FDqTfESUxNEmTukGbGVAiJhXp
Litecoin: LhbDew4s9wbV8xeNkrdFcLK5u78APSGLrR
AuroraCoin: AXVoGgYtSVkPv96JLL7CiwcyVvPxXHXRK9
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
March 17, 2013, 02:13:24 PM
 #4659

this happens sometimes, start litecoind first and then start ltcp2pool, that should fix it.

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
Nite69
Sr. Member
****
Offline Offline

Activity: 477
Merit: 500


View Profile
March 17, 2013, 07:50:27 PM
 #4660

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.

Thank you, fixed it by changing one line in source:
helper.py, line 73:
was
Code:
        #result = yield bitcoind.rpc_submitblock(bitcoin_data.block_type.pack(block).encode('hex'))
Fix:
Code:
	result = yield bitcoind.rpc_getblocktemplate(dict(mode='submit', data=bitcoin_data.block_type.pack(block).encode('hex')))

Of course, I don't know if this works on bitcoin p2pool any more. Someone into this make this and add correct checks (litecoind/bitcoind (terracoin/ppc?!) mode, other end version etc..)

Seriously, the rpc interface should give a version number so the client could choose correct method to use.. Current one this is a mess and very difficult to do (litecoind/bitcoind) version independent code :-(

Testing is a bit slow, allways need to wait for p2poop to find a block...

Sync: ShiSKnx4W6zrp69YEFQyWk5TkpnfKLA8wx
Bitcoin: 17gNvfoD2FDqTfESUxNEmTukGbGVAiJhXp
Litecoin: LhbDew4s9wbV8xeNkrdFcLK5u78APSGLrR
AuroraCoin: AXVoGgYtSVkPv96JLL7CiwcyVvPxXHXRK9
Pages: « 1 ... 183 184 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 ... 814 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!