Code Monkey home page Code Monkey logo

p2pool-vtc's Introduction

Requirements:

Generic:

  • Bitcoin >=0.11.1
  • Python >=2.6
  • Twisted >=10.0.0

Linux:

  • sudo apt-get install python-rrdtool python-pygame python-scipy python-twisted python-twisted-web python-pil

Windows:

Running P2Pool:

To use P2Pool, you must be running your own local bitcoind. For standard configurations, using P2Pool should be as simple as:

cd lyra2re-hash-python
git submodule init
git submodule update
sudo python setup.py install
cd ../
python run_p2pool.py --net vertcoin

Then run your miner program, connecting to 127.0.0.1 on port 9171 with any username and password.

If you are behind a NAT, you should enable TCP port forwarding on your router. Forward port 9346 to the host running P2Pool.

Run for additional options.

python run_p2pool.py --help

Donations towards further development:

1HNeqi3pJRNvXybNX4FKzZgYJsdTSqJTbk

Official wiki:

https://en.bitcoin.it/wiki/P2Pool

Alternate web frontend:

Notes for Litecoin:

Requirements:

In order to run P2Pool with the Litecoin network, you would need to build and install the ltc_scrypt module that includes the scrypt proof of work code that Litecoin uses for hashes.

Linux:

cd litecoin_scrypt
sudo python setup.py install

Windows (mingw):

In bash type this:

cd litecoin_scrypt
C:\Python27\python.exe setup.py build --compile=mingw32 install

Windows (Microsoft Visual C++)

  • Open visual studio console

In bash type this:

SET VS90COMNTOOLS=%VS110COMNTOOLS%	           # For visual c++ 2012
SET VS90COMNTOOLS=%VS100COMNTOOLS%             # For visual c++ 2010
cd litecoin_scrypt
C:\Python27\python.exe setup.py build --compile=mingw32 install

If you run into an error with unrecognized command line option '-mno-cygwin', see this: http://stackoverflow.com/questions/6034390/compiling-with-cython-and-mingw-produces-gcc-error-unrecognized-command-line-o

Running P2Pool:

Run P2Pool with the "--net litecoin" option. Run your miner program, connecting to 127.0.0.1 on port 9327. Forward port 9338 to the host running P2Pool.

Litecoin's use of ports 9333 and 9332 conflicts with P2Pool running on the Bitcoin network. To avoid problems, add these lines to litecoin.conf and restart litecoind:

rpcport=10332
port=10333

Sponsors:

Thanks to:

  • The Bitcoin Foundation for its generous support of P2Pool
  • The Litecoin Project for its generous donations to P2Pool

License:

Available here

p2pool-vtc's People

Contributors

coblee avatar cohibaa avatar d0gzpaw avatar drazisil avatar firrae avatar forrestv avatar gades avatar gertjaap avatar gmaxwell avatar goblin avatar grimd34th avatar harukama avatar iongchun avatar kevinxucs avatar kforg avatar krellan avatar m0glie avatar maaku avatar metalicjames avatar midnightmagic avatar rav3npl avatar roy7 avatar spencerr avatar tadasvaranavicius avatar thrasher- avatar tierradelfuego avatar veqtrus avatar vertiond avatar wtogami avatar zemrys avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

p2pool-vtc's Issues

GNU/Linux Debian 11 - run_p2pool.py - SyntaxError: invalid syntax

python3 run_p2pool.py --help
Traceback (most recent call last):
  File "/home/ceedii/p2pool-vtc-3.0.0/run_p2pool.py", line 3, in <module>
    from p2pool import main
  File "/home/ceedii/p2pool-vtc-3.0.0/p2pool/__init__.py", line 43
    except Exception, e:
                    ^
SyntaxError: invalid syntax

I'm getting that error when i try to execute run_p2pool.py

NoneType object is not iterable

Running standard vertcoin pool configs -

Error in DeferredResource handler:
Traceback (most recent call last):
File "/p2pool-vtc/p2pool/util/deferred_resource.py", line 24, in render
defer.maybeDeferred(resource.Resource.render, self, request).addCallbacks(finish, finish_error)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 150, in maybeDeferred
result = f(*args, **kw)
File "/usr/lib/python2.7/dist-packages/twisted/web/resource.py", line 250, in render
return m(request)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1274, in unwindGenerator
return _inlineCallbacks(None, gen, Deferred())
--- ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1128, in _inlineCallbacks
result = g.send(result)
File "/p2pool-vtc/p2pool/web.py", line 198, in render_GET
res = yield self.func(*self.args)
File "/p2pool-vtc/p2pool/web.py", line 342, in
new_root.putChild('share', WebInterface(lambda share_hash_str: get_share(share_hash_str)))
File "/p2pool-vtc/p2pool/web.py", line 331, in get_share
other_transaction_hashes=['%064x' % x for x in share.get_other_tx_hashes(node.tracker)],
exceptions.TypeError: 'NoneType' object is not iterable

Current payout to default address dropping off

Hi I'm new to Vertcoin mining - loving it so far. I spun up a P2Pool-VTC node, which was originally just for myself, then I thought why not open it up. It's gone from my own 290mh/s or so up to now nearly 1Gh/s due to (I assume) other local miners using my node.
I have also noticed the "Current payout to default address" dropping drammatically over the last 24 hours - is this just because there are many more people joining the network since the VTC price rose (and the difficulty with it)? If I look at the graphs of other miners on my node their payout rate hasn't done this like mine has, if anything it has improved. I did have one rig fail for a while (3 hours) and also I have stopped and restarted the node at least once to add the improved web front-end.
Is there any disadvantage to running your own node if other people add hash-rate above your own? Would I be better off closing the node and just mining on another one close to me with a good ping time?
My GPUs are all quite overclocked (4 x gtx1070 and 5 x GTX 1060) - could it be that they are returning bad shares?
Any advice about running a P2Pool node would be much appreciated.

memory error

i got every time this error with vtc second network. It runs some hours then i got this error

Unhandled Error
Traceback (most recent call last):
File "twisted\python\log.pyc", line 103, in callWithLogger

File "twisted\python\log.pyc", line 86, in callWithContext

File "twisted\python\context.pyc", line 122, in callWithContext

File "twisted\python\context.pyc", line 85, in callWithContext

--- ---
File "twisted\internet\selectreactor.pyc", line 149, in _doReadOrWrite

File "twisted\internet\tcp.pyc", line 201, in doRead

exceptions.MemoryError:

Unable to install and run on Debian 10

Not sure if this is a bug but since the P2Pool update for Verthash this doesn't work for me on Debian 10.

This step produces an error.
root@vtcp2pool:/usr/src/p2pool-vtc/lyra2re-hash-python# sudo python setup.py install
Traceback (most recent call last):
File "setup.py", line 1, in
from setuptools import setup, Extension

If I change 'from setuptools' to 'from distutils.core' in setup.py on line 1 this fixes that issue for me.

Then when trying to run P2pool there is another error:
root@vtcp2pool:/usr/src/p2pool-vtc# python run_p2pool.py --net vertcoin
Traceback (most recent call last):
File "run_p2pool.py", line 3, in
from p2pool import main
File "/usr/src/p2pool-vtc/p2pool/main.py", line 25, in
from . import networks, web, work
File "/usr/src/p2pool-vtc/p2pool/networks/init.py", line 4, in
for module_loader, name, ispkg in pkgutil.iter_modules(path))
File "/usr/src/p2pool-vtc/p2pool/networks/init.py", line 4, in
for module_loader, name, ispkg in pkgutil.iter_modules(path))
File "/usr/src/p2pool-vtc/p2pool/networks/bitcoin.py", line 1, in
from p2pool.bitcoin import networks
File "/usr/src/p2pool-vtc/p2pool/bitcoin/networks/init.py", line 4, in
for module_loader, name, ispkg in pkgutil.iter_modules(path))
File "/usr/src/p2pool-vtc/p2pool/bitcoin/networks/init.py", line 4, in
for module_loader, name, ispkg in pkgutil.iter_modules(path))
File "/usr/src/p2pool-vtc/p2pool/bitcoin/networks/vertcoin.py", line 10, in
import verthash
ImportError: No module named verthash

Coin daemon too old!

On Ubuntu with a full bitcoin node (bitcoind v0.15.1.0) I get:


2017-12-12 15:00:29.772991 p2pool (version a61a40f-dirty)
2017-12-12 15:00:29.855270
2017-12-12 15:00:29.855458 Testing bitcoind RPC connection to 'http://127.0.0.1:5888/' with username 'user'...
2017-12-12 15:00:30.221631 Coin daemon too old! Upgrade!
2017-12-12 15:00:31.226267 Coin daemon too old! Upgrade!
2017-12-12 15:00:32.251632 Coin daemon too old! Upgrade!
2017-12-12 15:00:33.267794 Coin daemon too old! Upgrade!
2017-12-12 15:00:34.272972 Coin daemon too old! Upgrade!

It's already the latest version for both, any ideas?

randomly Very high difficulty for slow miners on VTC p2pool

Hi, on the VTC p2pool releases, sometimes slower miners get a very high share difficulty assigned, resulting in a Time to Share 12h or more

I noticed that after i also set up a Monacoin p2pool, on that pool the share difficulty seems to scale very fluently to always 15Minutes Time to Share

On new network3

Seeing the following:

Dec 11 16:04:37 zeus python[16637]: Error while processing Event callbacks:
Dec 11 16:04:37 zeus python[16637]: Traceback (most recent call last):
Dec 11 16:04:37 zeus python[16637]:   File "/root/git/p2pool-vtc-n3/p2pool/p2p.py", line 309, in handle_shares
Dec 11 16:04:37 zeus python[16637]:     self.node.handle_shares(result, self)
Dec 11 16:04:37 zeus python[16637]:   File "/root/git/p2pool-vtc-n3/p2pool/node.py", line 48, in handle_shares
Dec 11 16:04:37 zeus python[16637]:     self.node.set_best_share()
Dec 11 16:04:37 zeus python[16637]:   File "/root/git/p2pool-vtc-n3/p2pool/node.py", line 297, in set_best_share
Dec 11 16:04:37 zeus python[16637]:     self.best_share_var.set(best)
Dec 11 16:04:37 zeus python[16637]:   File "/root/git/p2pool-vtc-n3/p2pool/util/variable.py", line 74, in set
Dec 11 16:04:37 zeus python[16637]:     self.changed.happened(value)
Dec 11 16:04:37 zeus python[16637]: --- <exception caught here> ---
Dec 11 16:04:37 zeus python[16637]:   File "/root/git/p2pool-vtc-n3/p2pool/util/variable.py", line 42, in happened
Dec 11 16:04:37 zeus python[16637]:     func(*event)
Dec 11 16:04:37 zeus python[16637]:   File "/root/git/p2pool-vtc-n3/p2pool/node.py", line 96, in broadcast_share
Dec 11 16:04:37 zeus python[16637]:     peer.sendShares([share for share in shares if share.peer_addr != peer.addr], self.node.tracker, self.node.known_txs_var.value, include_txs_with=[share_hash])
Dec 11 16:04:37 zeus python[16637]:   File "/root/git/p2pool-vtc-n3/p2pool/p2p.py", line 317, in sendShares
Dec 11 16:04:37 zeus python[16637]:     assert tx_hash in known_txs, 'tried to broadcast share without knowing all its new transactions'

Error in finding the payout address

When I start the p2pool, in linux, I get this:

Determining payout address...
Fatal error:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 568, in _startRunCallbacks
self._runCallbacks()
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 654, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1475, in gotResult
_inlineCallbacks(r, g, status)
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
result = g.send(result)
--- ---
File "p2pool-vtc-master/p2pool/main.py", line 153, in main
print ' ...success! Payout address:', bitcoin_data.pubkey_hash_to_address(my_pubkey_hash, net.PARENT, my_pubkey_hash_version)
File "p2pool-vtc-master/p2pool/bitcoin/data.py", line 330, in pubkey_hash_to_address
return segwit_addr.encode(net.HUMAN_READABLE_PART, 0, [int(x) for x in bytearray.fromhex(hex(pubkey_hash)[2:-1])])
exceptions.ValueError: non-hexadecimal number found in fromhex() arg at position 38

I have the wallet running and in sync.

redhat requirements for p2pool

Can a requirements list for redhat be included, specifically fedora.

python-scipy and python-pygame do not exist in the basic dnf repository the readline libs are included in patch

bchain.info redirect url typo

http://explorer.vtconline.org/address/xxx
--> HTTP 301 -->
https://explorer.vertcoin.org/address/xxx
--> HTTP 302 -->
https://bchain.info/VTC/address/xxx

The last address just shows the default page served at https://bchain.info/VTC, with a bug on the graph causing it not to render.

The correct url for bchain.info as i concluded should be https://bchain.info/VTC/addr/xxx

I didn't see any repo related to vtc explorer so i dropped this issue here, let me know if i need to move it elsewhere.

It became necessary to add 3rd network of VTC p2pool

Miners with powers of about 300 MH/s can no longer normally get shares.
There are already many miners with 200-300 MH/s in the second network.
Therefore I think that there is a need to create a third network for miners with hashrate of up to 100 MH/s.

Errors during setup

Hello. I'm having issues running the setup.py on Windows 10.

[...]
Installed c:\users\x\desktop\pypy2.7-v7.3.3-win32\site-packages\p2pool_vtc-3.0.0-py2.7.egg
Processing dependencies for p2pool-vtc==3.0.0
Searching for verthash
Reading https://pypi.org/simple/verthash/
Downloading https://files.pythonhosted.org/packages/43/9f/0b8e650c1da0310695fd6e1fe1e15c488e2c6328af41dae3fe84765d1212/verthash-0.0.1.tar.gz#sha256=a2e0df84789f6df166b05837e7bd800491b272b83a2faf2971df15ad542160fb
Best match: verthash 0.0.1
Processing verthash-0.0.1.tar.gz
Writing c:\users\x\appdata\local\temp\easy_install-vcxaq3\verthash-0.0.1\setup.cfg
Running verthash-0.0.1\setup.py -q bdist_egg --dist-dir c:\users\x\appdata\local\temp\easy_install-vcxaq3\verthash-0.0.1\egg-dist-tmp-lmquxy
h2.c
h2.c(31): error C2057: expected constant expression
h2.c(31): error C2466: cannot allocate an array of constant size 0
h2.c(31): error C2133: 'input_header': unknown size
h2.c(68): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\stdio.h(205): note: see declaration of 'fopen'
h2.c(89): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\stdio.h(2254): note: see declaration of 'sscanf'
error: Setup script exited with error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe' failed with exit status 2

Vertcoin.dat issue

I was having difficulty getting the run_p2pool.py script to run. It kept complaining about looking for the wallet.dat. My wallet is in the default .vertcoin directory. I could run p2pool from there, but then the web interface would break(Resource not available). I also tried using the --datadir flag, but that seems to only effect the pool data.

The script seem to only work when the wallet.dat file is in the same directory as the script. I was able to tweak the vertcoin.py and vertcoin_test.py to use a full path as a hack. But an option to specify the .dat file location would be nice. Or at the least have it look in the default ~/.vertcoin directory would be helpful.

I can work on creating a flag or make it look in the default .vertcoin directory is their a preffered method? Or did I just set something up wrong?

Watchdog timer firing regularly on vtc network2 using v0.3.0-rc1

currently running v0.3.0-rc1 and Seeing this occasionally in the log when running on network2. Interestingly I haven't seen this running the same version with network1:

2018-02-05 22:48:21.953037 > Watchdog timer went off at:
2018-02-05 22:48:21.953198 > File "run_p2pool.py", line 5, in
2018-02-05 22:48:21.953271 > main.run()
2018-02-05 22:48:21.953361 > File "/data/p2pool/p2pool-vtc-net2_a/p2pool/main.py", line 694, in run
2018-02-05 22:48:21.953432 > reactor.run()
2018-02-05 22:48:21.953505 > File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1192, in run
2018-02-05 22:48:21.953588 > self.mainLoop()
2018-02-05 22:48:21.953657 > File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1204, in mainLoop
2018-02-05 22:48:21.953733 > self.doIteration(t)
2018-02-05 22:48:21.953803 > File "/usr/lib/python2.7/dist-packages/twisted/internet/epollreactor.py", line 396, in doPoll
2018-02-05 22:48:21.953873 > log.callWithLogger(selectable, _drdw, selectable, fd, event)
2018-02-05 22:48:21.953941 > File "/usr/lib/python2.7/dist-packages/twisted/python/log.py", line 88, in callWithLogger
2018-02-05 22:48:21.954011 > return callWithContext({"system": lp}, func, *args, **kw)
2018-02-05 22:48:21.954080 > File "/usr/lib/python2.7/dist-packages/twisted/python/log.py", line 73, in callWithContext
2018-02-05 22:48:21.954180 > return context.call({ILogContext: newCtx}, func, *args, **kw)
2018-02-05 22:48:21.954249 > File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext
2018-02-05 22:48:21.954318 > return self.currentContext().callWithContext(ctx, func, *args, **kw)
2018-02-05 22:48:21.954387 > File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
2018-02-05 22:48:21.954455 > return func(*args,**kw)
2018-02-05 22:48:21.954523 > File "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 614, in _doReadOrWrite
2018-02-05 22:48:21.954592 > why = selectable.doRead()
2018-02-05 22:48:21.954661 > File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 214, in doRead
2018-02-05 22:48:21.954729 > return self._dataReceived(data)
2018-02-05 22:48:21.954797 > File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 220, in _dataReceived
2018-02-05 22:48:21.954907 > rval = self.protocol.dataReceived(data)
2018-02-05 22:48:21.954975 > File "/data/p2pool/p2pool-vtc-net2_a/p2pool/util/switchprotocol.py", line 11, in dataReceived
2018-02-05 22:48:21.955043 > self.p.dataReceived(data)
2018-02-05 22:48:21.955110 > File "/usr/lib/python2.7/dist-packages/twisted/protocols/basic.py", line 571, in dataReceived
2018-02-05 22:48:21.955178 > why = self.lineReceived(line)
2018-02-05 22:48:21.955245 > File "/usr/lib/python2.7/dist-packages/twisted/web/http.py", line 1656, in lineReceived
2018-02-05 22:48:21.955313 > self.allContentReceived()
2018-02-05 22:48:21.955381 > File "/usr/lib/python2.7/dist-packages/twisted/web/http.py", line 1731, in allContentReceived
2018-02-05 22:48:21.955449 > req.requestReceived(command, path, version)
2018-02-05 22:48:21.955541 > File "/usr/lib/python2.7/dist-packages/twisted/web/http.py", line 827, in requestReceived
2018-02-05 22:48:21.955609 > self.process()
2018-02-05 22:48:21.955677 > File "/usr/lib/python2.7/dist-packages/twisted/web/server.py", line 189, in process
2018-02-05 22:48:21.955745 > self.render(resrc)
2018-02-05 22:48:21.955812 > File "/usr/lib/python2.7/dist-packages/twisted/web/server.py", line 238, in render
2018-02-05 22:48:21.955883 > body = resrc.render(self)
2018-02-05 22:48:21.955951 > File "/data/p2pool/p2pool-vtc-net2_a/p2pool/util/deferred_resource.py", line 24, in render
2018-02-05 22:48:21.956019 > defer.maybeDeferred(resource.Resource.render, self, request).addCallbacks(finish, finish_error)
2018-02-05 22:48:21.956091 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 139, in maybeDeferred
2018-02-05 22:48:21.956158 > result = f(*args, **kw)
2018-02-05 22:48:21.956226 > File "/usr/lib/python2.7/dist-packages/twisted/web/resource.py", line 250, in render
2018-02-05 22:48:21.956294 > return m(request)
2018-02-05 22:48:21.956361 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1237, in unwindGenerator
2018-02-05 22:48:21.956429 > return _inlineCallbacks(None, gen, Deferred())
2018-02-05 22:48:21.956497 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1099, in _inlineCallbacks
2018-02-05 22:48:21.956565 > result = g.send(result)
2018-02-05 22:48:21.956633 > File "/data/p2pool/p2pool-vtc-net2_a/p2pool/web.py", line 198, in render_GET
2018-02-05 22:48:21.956700 > res = yield self.func(*self.args)
2018-02-05 22:48:21.956768 > File "/data/p2pool/p2pool-vtc-net2_a/p2pool/web.py", line 135, in get_local_stats
2018-02-05 22:48:21.956836 > miner_hash_rates, miner_dead_hash_rates = wb.get_local_rates()
2018-02-05 22:48:21.956905 > File "/data/p2pool/p2pool-vtc-net2_a/p2pool/work.py", line 236, in get_local_rates
2018-02-05 22:48:21.956974 > miner_hash_rates[datum['user']] = miner_hash_rates.get(datum['user'], 0) + datum['work']/dt
2018-02-05 22:48:21.957042 > File "/data/p2pool/p2pool-vtc-net2_a/p2pool/main.py", line 326, in
2018-02-05 22:48:21.957125 > sys.stderr.write, 'Watchdog timer went off at:\n' + ''.join(traceback.format_stack())

Also seeing other similar variants which are causing the watchdog to fire. Any ideas? Happy to help debug, if you need any more details let me know.

"Missing fork features" error: Vertcoin-Core RPC call changed from getblockchaininfo to getdeploymentinfo

Running p2pool with Vertcoin-Core v22.1 or older will return this error:

Oct 03 13:41:59 jevo run_p2pool.py[335366]: 2023-10-03 13:41:59.229137 You are running a coin daemon that does not support all of the
Oct 03 13:41:59 jevo run_p2pool.py[335366]: 2023-10-03 13:41:59.229194 forking features that have been activated on this blockchain.
Oct 03 13:41:59 jevo run_p2pool.py[335366]: 2023-10-03 13:41:59.229218 Consequently, your node may mine invalid blocks or may mine blocks that
Oct 03 13:41:59 jevo run_p2pool.py[335366]: 2023-10-03 13:41:59.229236 are not part of the Nakamoto consensus blockchain.
Oct 03 13:41:59 jevo run_p2pool.py[335366]: 2023-10-03 13:41:59.229254
Oct 03 13:41:59 jevo run_p2pool.py[335366]: 2023-10-03 13:41:59.229277 Missing fork features: bip66, csv, taproot, bip65, segwit, bip34
Oct 03 13:41:59 jevo run_p2pool.py[335366]: 2023-10-03 13:41:59.229295
Oct 03 13:41:59 jevo run_p2pool.py[335366]: 2023-10-03 13:41:59.229310 If you know what you're doing, this error may be overridden by running p2pool
Oct 03 13:41:59 jevo run_p2pool.py[335366]: 2023-10-03 13:41:59.229326 with the '--allow-obsolete-bitcoind' command-line option.

Fixed in #56
Solution is to upgrade to Vertcoin-Core v23.2

Alternatively, you can run the getblockchaininfo branch with Vertcoin-Core v22.1 and older

Repeated "Stratum connection interrupted" messages

"Stratum connection interrupted" after every accepted pseudoshare

At least I think they are called psuedoshares.

This only happens on a61a40f. I reverted back to 3d0f826 and the messages went away.

This might be a ccminer issue, but it only appeared with the latest p2pool-vtc.

*** ccminer 2.2.3 for nVidia GPUs by tpruvot@github ***
    Built with VC++ 2013 and nVidia CUDA SDK 9.0 64-bits

  Originally based on Christian Buchner and Christian H. project
  Include some kernels from alexis78, djm34, djEzo, tsiv and krnlx.

BTC donation address: 1AJdfCpLWPNoAMDfHF1wD5y8VgKSSTHxPo (tpruvot)

[2017-12-10 23:19:37] Starting on stratum+tcp://pool.boxienet.net:9181
[2017-12-10 23:19:37] NVML GPU monitoring enabled.
[2017-12-10 23:19:37] NVAPI GPU monitoring enabled.
[2017-12-10 23:19:37] 1 miner thread started, using 'lyra2v2' algorithm.
[2017-12-10 23:19:37] Stratum difficulty set to 1 (0.00391)
[2017-12-10 23:19:37] lyra2v2 block 839557, diff 81712.710
[2017-12-10 23:19:37] GPU #0: Intensity set to 20, 1048576 cuda threads
[2017-12-10 23:19:37] GPU #0: ASUS GTX 980 Ti, 29.73 MH/s
[2017-12-10 23:19:38] accepted: 1/1 (diff 0.006), 29.89 MH/s yes!
[2017-12-10 23:19:38] Stratum connection interrupted
[2017-12-10 23:19:41] GPU #0: ASUS GTX 980 Ti, 29.97 MH/s
[2017-12-10 23:19:41] accepted: 2/2 (diff 0.006), 29.93 MH/s yes!
[2017-12-10 23:19:41] Stratum connection interrupted
[2017-12-10 23:19:42] accepted: 3/3 (diff 0.006), 29.95 MH/s yes!
[2017-12-10 23:19:42] Stratum connection interrupted
[2017-12-10 23:19:43] accepted: 4/4 (diff 0.006), 29.97 MH/s yes!
[2017-12-10 23:19:43] Stratum connection interrupted
[2017-12-10 23:19:44] accepted: 5/5 (diff 0.006), 29.94 MH/s yes!
[2017-12-10 23:19:44] Stratum connection interrupted
[2017-12-10 23:19:44] accepted: 6/6 (diff 0.006), 29.97 MH/s yes!
[2017-12-10 23:19:44] Stratum connection interrupted
[2017-12-10 23:19:45] GPU #0: ASUS GTX 980 Ti, 29.68 MH/s
[2017-12-10 23:19:45] accepted: 7/7 (diff 0.006), 29.93 MH/s yes!
[2017-12-10 23:19:45] Stratum connection interrupted
[2017-12-10 23:19:46] accepted: 8/8 (diff 0.006), 29.94 MH/s yes!
[2017-12-10 23:19:46] Stratum connection interrupted
[2017-12-10 23:19:47] accepted: 9/9 (diff 0.006), 29.91 MH/s yes!
[2017-12-10 23:19:47] Stratum connection interrupted
[2017-12-10 23:19:49] accepted: 10/10 (diff 0.006), 29.91 MH/s yes!
[2017-12-10 23:19:49] Stratum connection interrupted
[2017-12-10 23:19:49] GPU #0: ASUS GTX 980 Ti, 29.50 MH/s
[2017-12-10 23:19:50] accepted: 11/11 (diff 0.006), 29.82 MH/s yes!
[2017-12-10 23:19:50] Stratum connection interrupted
[2017-12-10 23:19:52] accepted: 12/12 (diff 0.006), 29.85 MH/s yes!
[2017-12-10 23:19:52] Stratum connection interrupted
[2017-12-10 23:19:55] GPU #0: ASUS GTX 980 Ti, 30.03 MH/s
[2017-12-10 23:19:56] accepted: 12/13 (diff 0.005), 29.87 MH/s booooo
[2017-12-10 23:19:56] Stratum connection interrupted
[2017-12-10 23:19:58] accepted: 13/14 (diff 0.005), 29.88 MH/s yes!
[2017-12-10 23:19:58] Stratum connection interrupted
[2017-12-10 23:19:59] GPU #0: ASUS GTX 980 Ti, 29.74 MH/s
[2017-12-10 23:19:59] accepted: 14/15 (diff 0.005), 29.86 MH/s yes!
[2017-12-10 23:19:59] Stratum connection interrupted
[2017-12-10 23:19:59] accepted: 15/16 (diff 0.005), 29.87 MH/s yes!
[2017-12-10 23:19:59] Stratum connection interrupted

v0.3.0 Stratum connection issues

Mining against a p2pool node with this version is producing a stratum connection interrupted between each found share. This is consistent, logs from miners look like this.

[2018-02-01 22:03:00] Stratum connection interrupted
[2018-02-01 22:03:00] GPU #2: EVGA GTX 1050 Ti, 13.36 MH/s
[2018-02-01 22:03:00] accepted: 40/43 (diff 0.086), 36.67 MH/s yes!
[2018-02-01 22:03:00] Stratum connection interrupted
[2018-02-01 22:03:02] Stratum difficulty set to 8 (0.03125)
[2018-02-01 22:03:05] GPU #0: EVGA GTX 1050 Ti, 11.02 MH/s
[2018-02-01 22:03:05] accepted: 41/44 (diff 0.035), 36.67 MH/s yes! 
[2018-02-01 22:03:05] Stratum connection interrupted
[2018-02-01 22:03:12] GPU #2: EVGA GTX 1050 Ti, 13.47 MH/s
[2018-02-01 22:03:12] accepted: 42/45 (diff 0.032), 36.65 MH/s yes!
[2018-02-01 22:03:12] Stratum connection interrupted
[2018-02-01 22:03:18] GPU #1: EVGA GTX 1050 Ti, 11.42 MH/s 
[2018-02-01 22:03:18] accepted: 43/46 (diff 0.032), 36.64 MH/s yes!
[2018-02-01 22:03:18] Stratum connection interrupted
[2018-02-01 22:03:31] GPU #2: EVGA GTX 1050 Ti, 13.39 MH/s
[2018-02-01 22:03:31] accepted: 44/47 (diff 0.036), 36.64 MH/s yes!
[2018-02-01 22:03:31] Stratum connection interrupted
[2018-02-01 22:03:31] GPU #1: EVGA GTX 1050 Ti, 11.40 MH/s
[2018-02-01 22:03:31] accepted: 45/48 (diff 0.036), 36.61 MH/s yes!
[2018-02-01 22:03:31] Stratum connection interrupted
[2018-02-01 22:03:48] GPU #2: EVGA GTX 1050 Ti, 13.31 MH/s
[2018-02-01 22:03:48] accepted: 46/49 (diff 0.037), 36.58 MH/s yes!
[2018-02-01 22:03:48] Stratum connection interrupted
[2018-02-01 22:03:53] GPU #2: EVGA GTX 1050 Ti, 13.27 MH/s
[2018-02-01 22:03:53] accepted: 47/50 (diff 0.037), 36.56 MH/s yes!
[2018-02-01 22:03:53] Stratum connection interrupted
[2018-02-01 22:04:00] GPU #2: EVGA GTX 1050 Ti, 13.39 MH/s
[2018-02-01 22:04:00] accepted: 48/51 (diff 0.080), 36.54 MH/s yes!
[2018-02-01 22:04:00] Stratum connection interrupted
[2018-02-01 22:04:06] GPU #2: EVGA GTX 1050 Ti, 13.33 MH/s
[2018-02-01 22:04:06] accepted: 49/52 (diff 0.051), 36.53 MH/s yes!
[2018-02-01 22:04:06] Stratum connection interrupted
[2018-02-01 22:04:13] GPU #0: EVGA GTX 1050 Ti, 11.08 MH/s
[2018-02-01 22:04:13] accepted: 50/53 (diff 0.065), 36.53 MH/s yes!
[2018-02-01 22:04:13] Stratum connection interrupted
[2018-02-01 22:04:18] GPU #1: EVGA GTX 1050 Ti, 11.43 MH/s
[2018-02-01 22:04:18] accepted: 51/54 (diff 0.076), 36.52 MH/s yes!
[2018-02-01 22:04:18] Stratum connection interrupted

Not sure what the issue is, but there seem to be no rejected shares between stratum drops.

v3.0.0 - Team Red Miner - Unhandled Error

I am trying to mine using v3.0.0. but i am getting this error, each time the miner Team Red Miner tried to connect to P2POOL

Unhandled Error
Traceback (most recent call last):
  File "/home/ceedii/p2pool-vtc/p2pool/main.py", line 687, in run
    reactor.run()
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/base.py", line 1283, in run
    self.mainLoop()
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/base.py", line 1292, in mainLoop
    self.runUntilCurrent()
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/base.py", line 913, in runUntilCurrent
    call.func(*call.args, **call.kw)
--- <exception caught here> ---
  File "/home/ceedii/p2pool-vtc/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 "/home/ceedii/p2pool-vtc/p2pool/bitcoin/worker_interface.py", line 129, in get_work
    x, handler = self._inner.get_work(*args)
  File "/home/ceedii/p2pool-vtc/p2pool/work.py", line 273, in get_work
    raise jsonrpc.Error_for_code(-12345)(u'unknown rule activated')
p2pool.util.jsonrpc.NarrowError: -12345 unknown rule activated

The command used with Team Red Miner

sudo /home/ceedii/teamredminer-v0.10.4-linux/teamredminer --api_listen=192.168.0.14:4459 -a verthash -o stratum+tcp://192.168.0.10:9171 -u vtc1xxxxxxxxxxxxxxxxxxxxxxxxxxxxx -p x -d 0,1,2,3,4 --verthash_file=verthash.dat --watchdog_disabled

Team Red Miner version 0.10.4
[2022-10-11 14:32:31] Auto-detected AMD OpenCL platform 1
[2022-10-11 14:32:31] Initializing GPU 0.
[2022-10-11 14:32:32] Initializing GPU 1.
[2022-10-11 14:32:33] Initializing GPU 2.
[2022-10-11 14:32:33] Initializing GPU 3.
[2022-10-11 14:32:34] Initializing GPU 4.
[2022-10-11 14:32:34] Verthash: Attempting to load data file 'verthash.dat'
[2022-10-11 14:32:35] Verthash: Data file successfully read, beginning verification.
[2022-10-11 14:32:38] Verthash: Data file verified successfully.
[2022-10-11 14:32:38] Pool 192.168.0.10 connecting to address 192.168.0.10.
[2022-10-11 14:32:38] Runtime Command Keys: h - help, s - stats, e - enable gpu, d - disable gpu, q - quit
[2022-10-11 14:32:38] API initialized on 192.168.0.14:4459
[2022-10-11 14:32:38] Watchdog thread starting.
[2022-10-11 14:32:38] Pool 192.168.0.10 successfully connected to address 192.168.0.10.
[2022-10-11 14:32:38] Successfully initialized GPU 0: Navi with 36 CU (PCIe 03:00.0) 
[2022-10-11 14:32:38] GPU 0 Uploading verthash table to gpu.
[2022-10-11 14:32:38] Successfully initialized GPU 1: Navi with 36 CU (PCIe 07:00.0) 
[2022-10-11 14:32:38] Successfully initialized GPU 2: Navi with 36 CU (PCIe 0b:00.0) 
[2022-10-11 14:32:38] Successfully initialized GPU 3: Navi with 40 CU (PCIe 0f:00.0) 
[2022-10-11 14:32:38] Successfully initialized GPU 4: Navi with 36 CU (PCIe 12:00.0) 
[2022-10-11 14:32:38] Pool 192.168.0.10 successfully subscribed. (4 ms)
[2022-10-11 14:32:38] Pool 192.168.0.10 connection was closed by the pool.
[2022-10-11 14:32:38] GPU 1 Uploading verthash table to gpu.
[2022-10-11 14:32:38] GPU 2 Uploading verthash table to gpu.
[2022-10-11 14:32:38] GPU 3 Uploading verthash table to gpu.
[2022-10-11 14:32:39] Dev pool connected and ready.
[2022-10-11 14:32:41] GPU 4 Uploading verthash table to gpu.
[2022-10-11 14:32:41] GPU 0 Verthash init completed.
[2022-10-11 14:32:41] GPU 1 Verthash init completed.
[2022-10-11 14:32:41] GPU 2 Verthash init completed.
[2022-10-11 14:32:42] GPU 3 Verthash init completed.
[2022-10-11 14:32:44] GPU 4 Verthash init completed.
[2022-10-11 14:32:53] Pool 192.168.0.10 connecting to address 192.168.0.10.
[2022-10-11 14:32:53] Pool 192.168.0.10 successfully connected to address 192.168.0.10.
[2022-10-11 14:32:53] Pool 192.168.0.10 successfully subscribed. (2 ms)
[2022-10-11 14:32:53] Pool 192.168.0.10 connection was closed by the pool.
[2022-10-11 14:33:08] Pool 192.168.0.10 connecting to address 192.168.0.10.

I imagine, it's probably an error on the side of the miner :/

startup error on vertcoin-core 0.12.0

I recently upgraded to vertcoin-core 0.12.0, now when I start the pool I get the following error:
Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port!

Update lyra2re-hash-python

Currently, the submodule points to a non-master commit that does not contain the V3 code needed it seems?

v0.2.0rc1

Running the v0.2.0rc1 with the new wallet and getting this error on network 2 :

2017-12-03 23:01:15.205185  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
Error in DeferredResource handler:
Traceback (most recent call last):
  File "/home/jb/p2pool-vtc/p2pool/util/deferred_resource.py", line 24, in render
    defer.maybeDeferred(resource.Resource.render, self, request).addCallbacks(finish, finish_error)
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 150, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/twisted/web/resource.py", line 250, in render
    return m(request)
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1532, in unwindGenerator
    return _inlineCallbacks(None, gen, Deferred())
--- <exception caught here> ---
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1386, in _inlineCallbacks
    result = g.send(result)
  File "/home/jb/p2pool-vtc/p2pool/web.py", line 198, in render_GET
    res = yield self.func(*self.args)
  File "/home/jb/p2pool-vtc/p2pool/web.py", line 203, in <lambda>
    web_root.putChild('rate', WebInterface(lambda: p2pool_data.get_pool_attempts_per_second(node.tracker, node.best_share_var.value, decent_height())/(1-p2pool_data.get_average_stale_prop(node.tracker, node.best_share_var.value, decent_height()))))
  File "/home/jb/p2pool-vtc/p2pool/data.py", line 630, in get_pool_attempts_per_second
    assert dist >= 2
exceptions.AssertionError:

This happens on network 2 when trying to load the web-ui on browser.
You can see it on http://aupool.grasdouble.com:9181/static/ (or 9171)

Any idea ? :)

Cannot compile P2Pool

Tried to make EXE using setup-py2exe.py and failed
Installed Python 2.7
C++ compiler for Python 2.7
pip 'ed all what is needed except verthash.

image

Found stdint.h from many sites but it wont install anyway.

image

Please provide step by step instructions HOW TO.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.