Bitcoin Forum
December 10, 2016, 04:53:36 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: « 1 ... 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 284 ... 744 »
  Print  
Author Topic: [1500 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool  (Read 2034755 times)
Nite69
Hero Member
*****
Offline Offline

Activity: 477


View Profile
March 16, 2013, 06:02:19 AM
 #4661

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
1481388816
Hero Member
*
Offline Offline

Posts: 1481388816

View Profile Personal Message (Offline)

Ignore
1481388816
Reply with quote  #2

1481388816
Report to moderator
1481388816
Hero Member
*
Offline Offline

Posts: 1481388816

View Profile Personal Message (Offline)

Ignore
1481388816
Reply with quote  #2

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

Activity: 477


View Profile
March 16, 2013, 06:42:10 AM
 #4662

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
Hero Member
*****
Offline Offline

Activity: 477


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

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


Don`t panic! Organize!


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

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
My SatoshDice bot https://bitcointalk.org/index.php?topic=897685
Nite69
Hero Member
*****
Offline Offline

Activity: 477


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

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


Don`t panic! Organize!


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

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
My SatoshDice bot https://bitcointalk.org/index.php?topic=897685
Nite69
Hero Member
*****
Offline Offline

Activity: 477


View Profile
March 16, 2013, 09:11:13 AM
 #4667

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



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

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
Hero Member
*****
Offline Offline

Activity: 477


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

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



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

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
Hero Member
*****
Offline Offline

Activity: 477


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

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
Hero Member
*****
Offline Offline

Activity: 477


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

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


BTC Guild Owner


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

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.

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

Activity: 477


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

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


/dev/null


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

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

[GPG Public Key]  [Devcoin Builds]  [BBQCoin Builds]  [Multichain Blockexplorer]  [Multichain Blockexplorer - PoS Coins]  [Ufasoft Miner Linux Builds]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
Nite69
Hero Member
*****
Offline Offline

Activity: 477


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

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

Activity: 477


View Profile
March 17, 2013, 08:08:57 PM
 #4677

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

It happens *allways* on my system. Every single time p2pool finds a block.

The code looks like it tries to use some 'getmemorypool' method, and fallbacks to use 'submitblock' if it fails. Unfortunately, fallback uses 'submitblock', which also does not work in litecoin. You have to wait for the first found litecoin block on p2pool network to see the problem. Hopefully this problem is not on every 11.2 node.

I do not know why getmemorypool fails. Shouldn't it?

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

Activity: 510


View Profile
March 18, 2013, 02:17:10 AM
 #4678

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.

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2002


Ruu \o/


View Profile WWW
March 18, 2013, 10:55:39 PM
 #4679

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.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
Pooled mine at kano.is, solo mine at solo.ckpool.org
-ck
rav3n_pl
Legendary
*
Offline Offline

Activity: 1320


Don`t panic! Organize!


View Profile
March 19, 2013, 07:37:08 AM
 #4680

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...

Poll request send, for litecoin p2pool should use getblocktemplate instead of submitblock. Till they fix/update daemon code.

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 ... 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 284 ... 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!