Pages:
Author

Topic: [1500 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool - page 34. (Read 2591916 times)

legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
2 to the power of 256 - 1 in my Excel yields 1.16e+77 and yes it does look like some arbitrary number...
Excel doesn't have bignum support. Python does.

Code:
>>> 2**256-1
115792089237316195423570985008687907853269984665640564039457584007913129639935L
>>> hex(_)
'0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffL'
Which has nothing to do with the question or answer Tongue

The aim on a normal pool is to get around 18 shares per minute, to ensure variance isn't too high, and of course you aren't submitting too many shares.

Back in the dark ages when we mined with GPUs or FPGAs it would take around 20 or more seconds to find a 1 diff share, but as mining got faster, finding 1 diff shares got faster, of course.
At some point most pools realised that you had to mine higher difficulty shares, otherwise you were sending way too many share, too quickly, to the pool.

So if we say 18 shares per minute, then 3.33.. seconds per share, then you can work out how to convert a hash rate to 18 shares per minute as so:

A 1 diff share averages 2^32 hashes per share (and 2^32 is roughly 4.3 billion)
Thus a 4.3GHs miner gets approximately 1 share per second at 1 diff
Thus a 1.3GHs miner gets approximately 1 share per 3.33.. seconds at 1 diff

So to get one share per 3.33.. seconds with an XHs miner, you need to divide it's hash rate by 2^32*0.3 (i.e. 1.3GHs) = multiply it by 7.76*10^-10  to get the difficulty it should mine at.
e.g. a 13THs miner = 13*10^12 * 7.76*10^-10 = ~10,089 Diff

So ... I guess that number is some vague relation to 7.76*10^-10 ... you'd have to check the code, I hate python so I'm not gonna work that part out Smiley
newbie
Activity: 6
Merit: 0
is the windows version of the new fork going to be released anytime soon?

If I am running the old 16.0 version of p2pool, am I still going to be part of any blocks that are discovered by the new fork? If so why then is the calculation of the rewards different on each separated network?

It would appear beneficial to the cause of p2pool miners if we combine the hashing power between both networks just so we can actually get closer to finding a block, since the sub 2ph hashing power is not enough to get a block anytime soon with today's difficulty in the bitcoin network. I have some hashing power going to other pools for now until we can address this issue, hopepfully sooner than later because I like the benefits of using p2pool over other mining pools which you basically make dust with if your hashing power is much less compared to what else is out there.
hero member
Activity: 818
Merit: 1006
2 to the power of 256 - 1 in my Excel yields 1.16e+77 and yes it does look like some arbitrary number...
Excel doesn't have bignum support. Python does.

Code:
>>> 2**256-1
115792089237316195423570985008687907853269984665640564039457584007913129639935L
>>> hex(_)
'0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffL'
newbie
Activity: 23
Merit: 0
My question is what does the 0.0000016 represent?
It represents an arbitrary number that some dude thought worked well for making the statistics graphs nice and smooth. It does not affect revenue at all unless you set the difficulty low enough that it overloads your poolserver's CPU or network connection with processing an excessive number of pseudoshares. I think it's better to not touch the pseudoshare difficulty at all, as p2pool's default values are generally reasonable.

I think I found the answer in the code...

Code:
if desired_pseudoshare_target is None:
            target = 2**256-1
            local_hash_rate = self._estimate_local_hash_rate()

2 to the power of 256 - 1 in my Excel yields 1.16e+77 and yes it does look like some arbitrary number...
full member
Activity: 175
Merit: 100
newbie
Activity: 27
Merit: 0
Hello

I've been using p2pool for a couple of months now using forrestv's version. Everything worked perfectly. Recently I tried to switch to jtoomim's 1mb segWit fork. However I haven't been able to make it work. I run the p2pool node on the same system as my bitcoin node. I use bitcoin-core version 0.14.2. I've run this system with forrestv's version for months, without any issues.

To get jtoomim's fork I deleted the p2pool directory from the forrestv version, and subsequently I used the command "git clone https://github.com/jtoomim/p2pool.git p2pool_jtoomim_1mb_segwit". Next I used in the folder p2pool_jtoomim_1mb_segwit the command "make".

To start p2pool I use the following command: "screen -d -m -S btcp2pool_jtoomim_1mb_segwit ~/p2pool_jtoomim_1mb_segwit/run_p2pool.py".

I get the following output:

2017-08-09 13:02:23.239586 p2pool (version 15.0-5-g6f55d05)
2017-08-09 13:02:23.239691
2017-08-09 13:02:23.239779 Testing bitcoind RPC connection to 'http://127.0.0.1:8332/' with username 'bitcoinrpc'...
2017-08-09 13:02:23.704666     ...success!
2017-08-09 13:02:23.704780     Current block hash: 101631b2ef7bd157c712553100f7e3ca23fd87561339640
2017-08-09 13:02:23.704829     Current block height: 479797
2017-08-09 13:02:23.704865
2017-08-09 13:02:23.704918 Testing bitcoind P2P connection to '127.0.0.1:8333'...
2017-08-09 13:02:23.707403     ...success!
2017-08-09 13:02:23.707479
2017-08-09 13:02:23.707539 Determining payout address...
2017-08-09 13:02:23.707674     Loaded cached address: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2017-08-09 13:02:23.711848     ...success! Payout address: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2017-08-09 13:02:23.711919
2017-08-09 13:02:23.712004 Loading shares...
2017-08-09 13:02:23.712177     ...done loading 0 shares (0 verified)!
2017-08-09 13:02:23.712248
2017-08-09 13:02:23.712294 Initializing work...
2017-08-09 13:02:24.336359     ...success!
2017-08-09 13:02:24.336479
2017-08-09 13:02:24.336545 Joining p2pool network using port 9333...
Unhandled Error
Traceback (most recent call last):
Failure: twisted.internet.error.DNSLookupError: DNS lookup failed: address 'vps.forre.st' not found: [Errno -2] Name or service not known.

2017-08-09 13:02:24.618120     ...success!
2017-08-09 13:02:24.618252
2017-08-09 13:02:24.618807 Listening for workers on '' port 9332...
2017-08-09 13:02:24.705814     ...success!
2017-08-09 13:02:24.705986
2017-08-09 13:02:24.706078 Started successfully!
2017-08-09 13:02:24.706151 Go to http://127.0.0.1:9332/ to view graphs and statistics!
2017-08-09 13:02:24.706233 Donating 1.0% of work towards P2Pool's development. Thank you!
2017-08-09 13:02:24.706301 You can increase this amount with --give-author argument! (or decrease it, if you must)
2017-08-09 13:02:24.706358

2017-08-09 13:02:27.706779 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming)
2017-08-09 13:02:27.706959  Local: 0H/s in last 0.0 seconds Local dead on arrival: Huh Expected time to share: Huh
2017-08-09 13:02:42.783897 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming)
2017-08-09 13:02:42.784038  Local: 0H/s in last 0.0 seconds Local dead on arrival: Huh Expected time to share: Huh
2017-08-09 13:02:57.785560 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming)

2017-08-09 12:58:01.356016 Incoming connection to peer 71.0.29.168:40692 established. p2pool version: 1600 '16.0-27-g18367de'
2017-08-09 12:58:01.678196 Lost peer 71.0.29.168:40692 - Connection to the other side was lost in a non-clean fashion.
in handle_share_hashes:
Traceback (most recent call last):
Failure: twisted.internet.error.ConnectionLost: Connection to the other side was lost in a non-clean fashion.

The time descrepancy in the last output block is because I copied it from the output of a different attempt, but I get the same error in all the attempts I do.

There are a couple of things I noticed:
1) No shares are loaded.
2) My node isn't able to connect to other nodes in the network. Sometimes I get one connection, but the connection is immediately terminated. From the output I think I can deduce that the node it connects to is p2pool version: 1600 '16.0-27-g18367de', which isn't a jtoomim fork but a forrestv fork. Is this correct? This is strange in my opinion. The fact that my node doesn't find any other nodes is also strange.
3) I get the error "Failure: twisted.internet.error.DNSLookupError: DNS lookup failed: address 'vps.forre.st' not found: [Errno -2] Name or service not known". I've read on a forum that this is caused by vps.forre.st being offline. The sollution that was suggested is to add "-n p2pool.org" when starting p2pool: so the command I use is "screen -d -m -S btcp2pool_jtoomim_1mb_segwit ~/p2pool_jtoomim_1mb_segwit/run_p2pool.py -n p2pool.org". However this hasn't changed anything. I keep on getting the same output and errors.

I've also tested the forrestv version again and this version works again perfectly. I don't get any error messages.

Can anyone tell me what I'm doing wrong? It's probably something stupid, but I don't see my error.

Thank you in advance.
legendary
Activity: 1308
Merit: 1011
Can you verify that your set-up procedure works fine with https://github.com/p2pool/p2pool master?
Yes, that's the way it worked http://crypto.office-on-the.net:12125/static/

Can you try running 1mb_segwit using an existing share chain on an altcoin?
That's exactly what I did. This can be seen from the previous log:
Code:
2017-08-06 13:45:55.994236 Loading shares...
2017-08-06 13:45:57.582201     1000
2017-08-06 13:45:58.598017     2000
2017-08-06 13:45:59.447829     3000
...
It seems to me that somewhere in the code 1mb_segwit does not take into account that POW_FUNK can differ from POW_FUNC = data.hash256
hero member
Activity: 818
Merit: 1006
sawa, those hash > target errors are weird, and I have no good idea what could be causing them. It seems as though the PoW function that p2pool is using to verify the hashes is not the same as the PoW function that the miners are using when solving the shares. I don't know why that would be the case.

The error at the beginning is something that I've never seen before, and is likely related to starting up a new chain. It does not seem to be closely connected to any code that I touched. There's a chance that it could be causing the hash > target errors, but I'm not sure how exactly.

Can you verify that your set-up procedure works fine with https://github.com/p2pool/p2pool master?

Can you try running 1mb_segwit using an existing share chain on an altcoin?
hero member
Activity: 818
Merit: 1006
My question is what does the 0.0000016 represent?
It represents an arbitrary number that some dude thought worked well for making the statistics graphs nice and smooth. It does not affect revenue at all unless you set the difficulty low enough that it overloads your poolserver's CPU or network connection with processing an excessive number of pseudoshares. I think it's better to not touch the pseudoshare difficulty at all, as p2pool's default values are generally reasonable.
sr. member
Activity: 351
Merit: 410
Quick question about Pseudo Share settings for you miner when using P2Pool.

Everything I have read says to set your Pseudo Share using ADDRESS+SETTING. In the calculation for SETTING I see where you use the (miner speed * 0.0000016).

My question is what does the 0.0000016 represent?  I can't find any information regarding this calculation anywhere...

I've never seen that formula before, nor have I read anywhere that it's a must to manually set a pseudoshare difficulty level (unless you're renting from NiceHash, which requires a minimum pseudoshare difficulty level of 65,536.

There isn't much, if any, of a performance advantage in manually setting a pseudoshare difficulty level. It's usually best to simply leave it to P2Pool to set the pseudoshare difficulty level for you.
newbie
Activity: 23
Merit: 0
Quick question about Pseudo Share settings for you miner when using P2Pool.

Everything I have read says to set your Pseudo Share using ADDRESS+SETTING. In the calculation for SETTING I see where you use the (miner speed * 0.0000016).

My question is what does the 0.0000016 represent?  I can't find any information regarding this calculation anywhere...
sr. member
Activity: 351
Merit: 410
so can you tell me if i got this right: if i now use this version: https://github.com/jtoomim/p2pool/commits/1mb_segwit and mine on my own node, the following 3 conditions are fulfilled:

1) i join the network with 1.4 PHash visible here: http://p2pool.org/stats/
2) it is not possible to create orpahn blocks,as every node will signal segwit support
3) it will be possible to mine blocks in around three weeks, when there are normal tx as well as segwit tx in the bitcoin network. ( and get fees from both )

1. Yes.

2. Only if the Bitcoin full node that your P2Pool node is connected to is itself signaling for BIP141 (i.e., setting segwit's BIP9 versionbit of bit 1), and if you haven't explicitly configured your P2Pool node to signal differently. The P2Pool code, by default, will use whatever signaling that is included in the block template that is provided by the Bitcoin full node that it is connected to. If you are running Bitcoin Core 0.13.1 or later, Bitcoin Knots 0.13.1 or later, btc1's segwit2x client, or the UASF client, you would be signaling for BIP141.

3. In theory, yes. However, jtoomim's 1mb_segwit code has not yet been fully tested to see if it can actually mine segwit blocks.

Sorry this took so long. I haven't fully tested this to make sure it works on testnet and can make segwit blocks, but if people can help review it and maybe help test it, that would be nice.

https://github.com/jtoomim/p2pool/commits/1mb_segwit

Segwit compatibility stuff starts with the July 19th commits.

...
sr. member
Activity: 373
Merit: 250
so can you tell me if i got this right: if i now use this version: https://github.com/jtoomim/p2pool/commits/1mb_segwit and mine on my own node, the following 3 conditions are fulfilled:

1) i join the network with 1.4 PHash visible here: http://p2pool.org/stats/
2) it is not possible to create orpahn blocks,as every node will signal segwit support
3) it will be possible to mine blocks in around three weeks, when there are normal tx as well as segwit tx in the bitcoin network. ( and get fees from both )
legendary
Activity: 1308
Merit: 1011
You're using the wrong branch. The 1mb_segwit branch has the altcoin and empty sharechain fixes. The 1mb_hardforked branch does not.

Note: 1mb_segwit will work on the same sharechain as 1mb_hardforked and 1mb_lowmem. 1mb_segwit will vote for v33 shares, but until v33 happens it should be compatible with the other jtoomimnet branches. The v33 upgrade will be the same as the hardforks that forrestv has done in the past for upgrading p2pool to be compatible with bitcoin softforks (e.g. OP_CLTV).

I tested 1mb_segwit for 'ltc_scrypt' POW_FUNC

Code:
/usr/bin/pypy -O -E /opt/scrypt/p2pool-emd/run_p2pool.py --net emerald --address Ewwbnzi6sxwLL6XbtDoV2Sj9C8JUPQ1sks --give-author 0 --no-bugreport -w 12125 -f 1 --bitcoind-address 127.0.0.1 --bitcoind-p2p-port 12127 --bitcoind-rpc-port 12128 user pass
2017-08-06 13:45:55.953718 p2pool (version 15.0-56-gf79f584-dirty)
2017-08-06 13:45:55.953841
2017-08-06 13:45:55.953936 Testing bitcoind RPC connection to 'http://127.0.0.1:12128/' with username 'user'...
2017-08-06 13:45:55.971389     ...success!
2017-08-06 13:45:55.971572     Current block hash: 526bdb3d4f26a5e89f9c32276c34b076c97eaf871195ffa5e8ad707aae016c23
2017-08-06 13:45:55.971686     Current block height: 5693321
2017-08-06 13:45:55.971820
2017-08-06 13:45:55.971940 Testing bitcoind P2P connection to '127.0.0.1:12127'...
2017-08-06 13:45:55.993385     ...success!
2017-08-06 13:45:55.993583
2017-08-06 13:45:55.993736 Determining payout address...
2017-08-06 13:45:55.994010     ...success! Payout address: Ewwbnzi6sxwLL6XbtDoV2Sj9C8JUPQ1sks
2017-08-06 13:45:55.994112
2017-08-06 13:45:55.994236 Loading shares...
2017-08-06 13:45:57.582201     1000
2017-08-06 13:45:58.598017     2000
2017-08-06 13:45:59.447829     3000
2017-08-06 13:46:00.314925     4000
2017-08-06 13:46:01.230490     5000
2017-08-06 13:46:01.987326     6000
2017-08-06 13:46:02.760611     7000
2017-08-06 13:46:03.688368     8000
2017-08-06 13:46:04.437252     9000
2017-08-06 13:46:05.186910     10000
2017-08-06 13:46:06.182604     11000
2017-08-06 13:46:06.913339     12000
2017-08-06 13:46:07.649518     13000
2017-08-06 13:46:08.382123     14000
2017-08-06 13:46:09.446092     15000
2017-08-06 13:46:10.166873     16000
2017-08-06 13:46:10.904880     17000
2017-08-06 13:46:11.644394     18000
2017-08-06 13:46:12.380946     19000
2017-08-06 13:46:13.129931     20000
2017-08-06 13:46:14.362359     21000
2017-08-06 13:46:15.105757     22000
2017-08-06 13:46:15.861376     23000
2017-08-06 13:46:16.599423     24000
2017-08-06 13:46:17.352762     25000
2017-08-06 13:46:17.877206 Share loading took 21.883 seconds
2017-08-06 13:46:17.877367     ...done loading 25700 shares (25701 verified)!
2017-08-06 13:46:17.877429
2017-08-06 13:46:17.877493 Initializing work...
Error while processing Event callbacks:
Traceback (most recent call last):
  File "/opt/scrypt/p2pool-emd/p2pool/util/deferral.py", line 284, in _worker
    self.func(*self.args, **self.kwargs)
  File "/opt/scrypt/p2pool-emd/p2pool/node.py", line 330, in clean_tracker
    self.tracker.verified.remove(share_hash)
  File "/opt/scrypt/p2pool-emd/p2pool/util/forest.py", line 361, in remove
    Tracker.remove(self, item_hash)
  File "/opt/scrypt/p2pool-emd/p2pool/util/forest.py", line 330, in remove
    self.removed.happened(item)
--- ---
  File "/opt/scrypt/p2pool-emd/p2pool/util/variable.py", line 42, in happened
    func(*event)
  File "/opt/scrypt/p2pool-emd/p2pool/util/variable.py", line 19, in
    watch_id = self.watch(lambda *args: func(obj_ref(), *args))
  File "/opt/scrypt/p2pool-emd/p2pool/util/forest.py", line 15, in
    self.tracker.removed.watch_weakref(self, lambda self, item: self.forget_item(item.hash))
exceptions.AttributeError: 'NoneType' object has no attribute 'forget_item'

=== Cut the same errors ===

2017-08-06 13:46:19.305269     ...success!
2017-08-06 13:46:19.305451
2017-08-06 13:46:19.305524 Joining p2pool network using port 46858...
2017-08-06 13:46:19.320109     ...success!
2017-08-06 13:46:19.320245
2017-08-06 13:46:19.324959 Listening for workers on '' port 12125...
2017-08-06 13:46:20.732464     ...success!
2017-08-06 13:46:20.732607
2017-08-06 13:46:20.732715 Started successfully!
2017-08-06 13:46:20.732836 Go to http://127.0.0.1:12125/ to view graphs and statistics!
2017-08-06 13:46:20.732949 Donating 0.0% of work towards P2Pool's development. Please donate to encourage further development of P2Pool!
2017-08-06 13:46:20.733023
2017-08-06 13:46:20.828401 Peer 127.0.0.1:42234 says protocol version is 3300, client version 15.0-56-gf79f584-dirty
2017-08-06 13:46:20.828615 Peer 127.0.0.1:42234 misbehaving, will drop and ban. Reason: was connected to self
2017-08-06 13:46:20.828706 Bad peer banned: ('127.0.0.1', 42234)
2017-08-06 13:46:20.829542 Peer 127.0.0.1:46858 says protocol version is 3300, client version 15.0-56-gf79f584-dirty
2017-08-06 13:46:20.829665 Peer 0.0.0.0:46858 misbehaving, will drop and ban. Reason: was connected to self
2017-08-06 13:46:20.829779 Bad peer banned: (u'0.0.0.0', 46858)
2017-08-06 13:46:24.550886 Warning: Previous share's timestamp is 1019207 seconds old.
2017-08-06 13:46:24.551057 Make sure your system clock is accurate, and ensure that you're connected to decent peers.
2017-08-06 13:46:24.551142 If your clock is more than 300 seconds behind, it can result in orphaned shares.
2017-08-06 13:46:24.551223 (It's also possible that this share is just taking a long time to mine.)

=== Cut the same errors ===

2017-08-06 13:46:32.377668 Worker EpKjxiEMuxEQje4hB9f7tkZzxG2QP4TC2F submitted share with hash > target:
2017-08-06 13:46:32.377942     Hash:   b2648e10e08feb7ac8712d83e8a6b5cf7a76728de6c638e19bf723bb3923f9f
2017-08-06 13:46:32.378118     Target: 145b892ce5d6c97c00000000000000000000000000000000000000000000
=== Cut the same errors ===
2017-08-06 13:46:38.416586 Worker EpKjxiEMuxEQje4hB9f7tkZzxG2QP4TC2F submitted share with hash > target:
2017-08-06 13:46:38.417083     Hash:   1342a5a68d0bd4e707df41cc726d718cb5d81e0f16f096da22bde4befb197ead
2017-08-06 13:46:38.417122     Target: 145b892ce5d6c97c00000000000000000000000000000000000000000000
Error in DeferredResource handler:
Traceback (most recent call last):
  File "/opt/scrypt/p2pool-emd/p2pool/util/deferred_resource.py", line 24, in render
    defer.maybeDeferred(resource.Resource.render, self, request).addCallbacks(finish, finish_error)
  File "/usr/local/lib/pypy2.7/dist-packages/twisted/internet/defer.py", line 150, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/local/lib/pypy2.7/dist-packages/twisted/web/resource.py", line 250, in render
    return m(request)
  File "/usr/local/lib/pypy2.7/dist-packages/twisted/internet/defer.py", line 1532, in unwindGenerator
    return _inlineCallbacks(None, gen, Deferred())
--- ---
  File "/usr/local/lib/pypy2.7/dist-packages/twisted/internet/defer.py", line 1386, in _inlineCallbacks
    result = g.send(result)
  File "/opt/scrypt/p2pool-emd/p2pool/web.py", line 198, in render_GET
    res = yield self.func(*self.args)
  File "/opt/scrypt/p2pool-emd/p2pool/web.py", line 179, in get_local_stats
    warnings=p2pool_data.get_warnings(node.tracker, node.best_share_var.value, node.net, bitcoind_getinfo_var.value, node.bitcoind_work.value),
  File "/opt/scrypt/p2pool-emd/p2pool/data.py", line 723, in get_warnings
    if bitcoind_getinfo['errors'] != '':
exceptions.KeyError: 'errors'

2017-08-06 13:46:38.671323 Worker EwSjj3pdzF8qji9uqgqfcu5EjDorjf2h4s submitted share with hash > target:
2017-08-06 13:46:38.671412     Hash:   79d1a99c6c11888c6ca8ad834a4f3616959b34b14ab7385ed5e3d43e6593840
2017-08-06 13:46:38.671440     Target: 145b892ce5d6c97c00000000000000000000000000000000000000000000
=== Cut the same errors ===
2017-08-06 13:46:38.882973 Worker EpKjxiEMuxEQje4hB9f7tkZzxG2QP4TC2F submitted share with hash > target:
2017-08-06 13:46:38.883040     Hash:   13d915870608c1281b6fa897a865951abe9746d9452bac2a1a074dba3ac6be57
2017-08-06 13:46:38.883059     Target: 145b892ce5d6c97c00000000000000000000000000000000000000000000
=== Cut the same errors ===

Error in DeferredResource handler:
Traceback (most recent call last):
  File "/opt/scrypt/p2pool-emd/p2pool/util/deferred_resource.py", line 24, in render
    defer.maybeDeferred(resource.Resource.render, self, request).addCallbacks(finish, finish_error)
  File "/usr/local/lib/pypy2.7/dist-packages/twisted/internet/defer.py", line 150, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/local/lib/pypy2.7/dist-packages/twisted/web/resource.py", line 250, in render
    return m(request)
  File "/usr/local/lib/pypy2.7/dist-packages/twisted/internet/defer.py", line 1532, in unwindGenerator
    return _inlineCallbacks(None, gen, Deferred())
--- ---
  File "/usr/local/lib/pypy2.7/dist-packages/twisted/internet/defer.py", line 1386, in _inlineCallbacks
    result = g.send(result)
  File "/opt/scrypt/p2pool-emd/p2pool/web.py", line 198, in render_GET
    res = yield self.func(*self.args)
  File "/opt/scrypt/p2pool-emd/p2pool/web.py", line 179, in get_local_stats
    warnings=p2pool_data.get_warnings(node.tracker, node.best_share_var.value, node.net, bitcoind_getinfo_var.value, node.bitcoind_work.value),
  File "/opt/scrypt/p2pool-emd/p2pool/data.py", line 723, in get_warnings
    if bitcoind_getinfo['errors'] != '':
exceptions.KeyError: 'errors'

2017-08-06 13:46:39.792308 Worker EpKjxiEMuxEQje4hB9f7tkZzxG2QP4TC2F submitted share with hash > target:
2017-08-06 13:46:39.792373     Hash:   110ccbd08d89ec03fa0722e857610912b77fe1feb593c3d29651a34f2589bafd
2017-08-06 13:46:39.792401     Target: 145b892ce5d6c97c00000000000000000000000000000000000000000000
=== Cut the same errors ===
2017-08-06 13:46:41.182417 Worker EqRdrDBLpKCr2JZUZ4roTwNXT8QJQFiAFe submitted share with hash > target:
2017-08-06 13:46:41.182504     Hash:   6f4d4a028b2b11573a7fe92c37a45736c99765c43fce7de9081ebb99659fdf
2017-08-06 13:46:41.182532     Target: 145b892ce5d6c97c00000000000000000000000000000000000000000000
... and so on.
All workers submitted share with hash
sr. member
Activity: 351
Merit: 410
Actually I am mining my own node. It appears to have been knocked off when the switch happened and took me a minute to get it back on line.
This leads to the question: If I am running my own node, with 6 outbound connections and 0 inbound connections, am I still connected and part of the pool or am I on my own now?

As long as your P2Pool node has at least one connection to another node, inbound or outbound, you are connected to the P2Pool network and your node remains a part of the pool.

And as long as the P2Pool network is online and active (i.e., there are other active P2Pool nodes on the network), your accepted shares are safe even though your own node has lost its copy of the sharechain. The other active P2Pool nodes have your accepted shares in their copies of the sharechain. That is, unless through some catastrophic failure the entire P2Pool network loses your accepted shares or loses all copies of the sharechain, which is next to impossible under normal circumstances.
hero member
Activity: 818
Merit: 1006
You're using the wrong branch. The 1mb_segwit branch has the altcoin and empty sharechain fixes. The 1mb_hardforked branch does not.

Note: 1mb_segwit will work on the same sharechain as 1mb_hardforked and 1mb_lowmem. 1mb_segwit will vote for v33 shares, but until v33 happens it should be compatible with the other jtoomimnet branches. The v33 upgrade will be the same as the hardforks that forrestv has done in the past for upgrading p2pool to be compatible with bitcoin softforks (e.g. OP_CLTV).
legendary
Activity: 1308
Merit: 1011
sawa, I added some changes in the 1mb_segwit branch that I hope will address the altcoin issues. Can you try with that? The 1mb_segwit branch's commits are a superset of the lowmem branch.
This does not work.
Code:
git clone https://github.com/jtoomim/p2pool p2pool-emd
cd p2pool-emd
git checkout 1mb_hardforked
Run and get an error
Code:
Unhandled Error
Traceback (most recent call last):
  File "/opt/scrypt/p2pool-emd/p2pool/main.py", line 669, in run
    reactor.run()
  File "/usr/local/lib/pypy2.7/dist-packages/twisted/internet/base.py", line 1243, in run
    self.mainLoop()
  File "/usr/local/lib/pypy2.7/dist-packages/twisted/internet/base.py", line 1252, in mainLoop
    self.runUntilCurrent()
  File "/usr/local/lib/pypy2.7/dist-packages/twisted/internet/base.py", line 878, in runUntilCurrent
    call.func(*call.args, **call.kw)
--- ---
  File "/opt/scrypt/p2pool-emd/p2pool/bitcoin/stratum.py", line 38, in _send_work
    x, got_response = self.wb.get_work(*self.wb.preprocess_request('' if self.username is None else self.username))
  File "/opt/scrypt/p2pool-emd/p2pool/bitcoin/worker_interface.py", line 129, in get_work
    x, handler = self._inner.get_work(*args)
  File "/opt/scrypt/p2pool-emd/p2pool/work.py", line 334, in get_work
    base_subsidy=self.node.net.PARENT.SUBSIDY_FUNC(self.current_work.value['height']),
  File "/opt/scrypt/p2pool-emd/p2pool/data.py", line 202, in generate_transaction
    if desired_timestamp > previous_share.timestamp + 180:
exceptions.AttributeError: 'NoneType' object has no attribute 'timestamp'

This will not work even with bitcoin. I tried to make a solo pool.
 If I clear the sharechain, change the values of IDENTIFIER, PREFIX, make empty BOOTSTRAP_ADDRS
And change PERSIST = True in PERSIST = False
In this case, the worker can not connect to the pool
hero member
Activity: 818
Merit: 1006
sawa, I added some changes in the 1mb_segwit branch that I hope will address the altcoin issues. Can you try with that? The 1mb_segwit branch's commits are a superset of the lowmem branch.
legendary
Activity: 1308
Merit: 1011
jtoomim, hello. I'd like to try your https://github.com/jtoomim/p2pool/tree/lowmem branch for working with altcoins. But there's a problem - workers cannot connect, there's an empty sharechain. Can you please look what to do with it? I've already wrote about it here:
https://bitcointalksearch.org/topic/m.19772037
https://bitcointalksearch.org/topic/m.19786200
legendary
Activity: 1258
Merit: 1027
The p2pool code will refuse to mine if your node is not connected to any peers.

"6 outbound connections"
Pages:
Jump to: