Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when issuing work for miner #1

Open
wants to merge 1,695 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1695 commits
Select commit Hold shift + click to select a range
bf3056c
incremented versions to 11
forrestv Jan 2, 2013
0981bdf
Merge pull request #74 from Rav3nPL/patch-10
forrestv Jan 2, 2013
5abe88b
added memory usage graph
forrestv Jan 7, 2013
5d5f6f9
corrected units in memory graph
forrestv Jan 7, 2013
e04f198
fixed possible DoS - there was no limit on the number of addr entries
forrestv Jan 8, 2013
76ae774
print warning if uncollectable cyclic garbage is produced
forrestv Jan 9, 2013
348aba8
fixed memory leak of peer objects due Share objects holding a referen…
forrestv Jan 10, 2013
8c9f2ca
removed garbage collection before taking memory measurement, which wa…
forrestv Jan 10, 2013
f791b50
ban peers that send a message with an invalid hash, since continually…
forrestv Jan 21, 2013
4eb118b
completed previous incomplete patch of memory leak
forrestv Jan 25, 2013
b32409e
fixed FIND utility's space-character handling
forrestv Jan 25, 2013
0e325a4
fixed faulty assertion in data.load_share
forrestv Jan 25, 2013
19bf4ea
Revert "broadcast shares in serial", strongly suspected of causing a …
forrestv Jan 27, 2013
19f0e6e
Abort timed out connections with abortConnection()
tadasvaranavicius Feb 2, 2013
6ff320b
Merge pull request #81 from varatada/master
forrestv Feb 2, 2013
27de695
fixed incompatibility with older versions of twisted introduced with …
forrestv Feb 7, 2013
77e7e2a
print warning if older version of twisted without abortConnection
forrestv Feb 25, 2013
d2e2257
Fix for litecoin block sending
Rav3nPL Mar 19, 2013
5934c1f
Merge pull request #85 from Rav3nPL/patch-11
forrestv Mar 19, 2013
93bf22f
fixed self.node
forrestv Mar 20, 2013
7b73477
added optional stratum subscribe arguments
forrestv Mar 22, 2013
c8cd400
Make p2pool's stratum implementation match the dumb de facto diff sta…
wtogami Mar 22, 2013
896c9ed
Merge pull request #86 from wtogami/master
forrestv Mar 22, 2013
81a3613
clarified parse function
forrestv Mar 18, 2013
13266bb
Update readme syntax
Apr 23, 2013
58417fd
Change readme extension, link official wiki
Apr 23, 2013
c25ded7
Update readme to github-flavored-markdown format
Apr 23, 2013
e3d2d79
Final readme rewrite
Apr 23, 2013
bb15bd5
Merge pull request #92 from hardcpp/master
forrestv Apr 23, 2013
5d8d74a
Update setup.py
Rav3nPL Apr 23, 2013
3a4a301
Merge pull request #94 from Rav3nPL/patch-12
forrestv Apr 23, 2013
c36910a
Fix missing dep for windows
Apr 24, 2013
0d785d3
Add script building instruction for visual c++
Apr 24, 2013
65ef44d
Add memory usage support for Windows
davidkassa Apr 25, 2013
538af73
Merge pull request #98 from davidkassa/master
forrestv Apr 25, 2013
a32b6ef
Merge branch 'master' of git://github.com/hardcpp/p2pool into hardcpp…
forrestv Apr 25, 2013
0cb07df
replaced all loseConnection calls with abortConnection, hopefully add…
forrestv Apr 25, 2013
7c28b06
reinstated share voting logic
forrestv Jun 24, 2013
f78a4e8
fixed "invalid fee" message in test case
forrestv Jun 24, 2013
804188b
check that switchover has happened in node system test
forrestv Jun 24, 2013
ac13bde
added some checks to bitcoin target util functions
forrestv Jun 24, 2013
ab3e2da
cleaned up worker username parsing - order of parameters no longer ma…
forrestv Jun 24, 2013
5cde217
ignore trailing payload data in bitcoin p2p messages
forrestv Jun 27, 2013
ad706b8
fixed 5cde217 causing assertion failures in debug mode
forrestv Jun 27, 2013
ec66318
try RPC submitblock and then fall back to submitting via getblocktemp…
forrestv Jun 27, 2013
37dc8d8
fix to ab3e2da's regex to get username parsing working again
forrestv Jun 28, 2013
20af2df
removed now-unnecessary version checks in p2p
forrestv Jun 27, 2013
fb3ff94
removed now-useless other_txs Share attribute, updated web to use now…
forrestv Jun 27, 2013
d2973f9
fix user difficulty in username
iongchun Jun 28, 2013
cbbe8b9
Merge pull request #114 from iongchun/fix-userdiff
forrestv Jun 28, 2013
d2941ed
fixed crash when running in --debug mode
forrestv Jun 28, 2013
819f0e3
modulate share difficulty to prevent any node from producing more tha…
forrestv Jun 28, 2013
af878b5
avoid breaking asicminer BE blade with too-long getwork response
forrestv Jun 30, 2013
8956889
fix litecoin testnet target high for testing
forrestv Jul 1, 2013
29493ba
print notice of imminent switchover
forrestv Jul 1, 2013
c345d54
dynamically adjust share difficulty to prevent payouts below dust thr…
forrestv Jul 3, 2013
b676c70
only duplicated Share class so next few changes are visible
forrestv Jun 24, 2013
ddc6867
added new share class
forrestv Jun 26, 2013
76b297b
changed new share to delay payouts 1 share
forrestv Jun 26, 2013
8f591b6
increased last_txout_nonce length from 4 to 8 bytes
forrestv Jun 26, 2013
618fc08
use OP_RETURN in new shares
forrestv Jun 26, 2013
2935ca5
change SHARE_PERIOD and SPREAD to new values on switch to new share i…
forrestv Jun 27, 2013
90574e6
incremented network version to 13
forrestv Jun 27, 2013
20bd606
store total share count and work within shares
forrestv Jun 28, 2013
54253f1
simplified transaction preforwarding by requiring shares to be accomp…
forrestv Jun 30, 2013
6584711
updated bootstrap addrs
forrestv Jul 3, 2013
354ec22
increased maximum difficulty multiplier to 30
forrestv Jul 1, 2013
62a65ed
added year as an allowable time unit for display
forrestv Jul 7, 2013
4cde793
fix bug when bootstrapping a new chain, introducted in c345d5419b
forrestv Jul 7, 2013
41c4fdc
fixed incompatibility bug with pypy
forrestv Jul 7, 2013
f3a0e8d
Merge branch 'newshare'
forrestv Jul 7, 2013
94b87f6
don't punish new shares for not having all transactions. punishing
forrestv Jul 8, 2013
e487ae9
less spam when 'invalid hash for'
Rav3nPL Jul 15, 2013
f5239b2
refuse to connect to old nodes for bitcoin network
forrestv Jul 17, 2013
11d63ef
increased available stratum nonce length for bitcoin network
forrestv Jul 17, 2013
9e33b62
fix for commit f5239b2: refuse to connect to old nodes for bitcoin ne…
forrestv Jul 19, 2013
a7e0819
Merge pull request #119 from Rav3nPL/patch-2
forrestv Jul 19, 2013
89ff8f4
updated SHARE_PERIOD to current value so everything outside of NewSha…
forrestv Jul 21, 2013
ebae741
fixed error in assertion text
forrestv Jul 21, 2013
91266cb
Update networks.py
dcod3d Jul 26, 2013
07162a3
Merge pull request #121 from ncstdc/master
forrestv Jul 26, 2013
31d2a18
close stratum connection if get_work fails to let miner know somethin…
forrestv Aug 1, 2013
996448d
check if bitcoind is still up before work cache is used to propagate …
forrestv Aug 1, 2013
05f3345
fixed CLEAN script
forrestv Aug 2, 2013
7a1a80d
fixed broken testcase
forrestv Aug 2, 2013
d421d7b
Revert "remove deferral.sleep's canceller, as it wasn't used anywhere…
forrestv Aug 2, 2013
0a3493d
replace task.LoopingCall's with deferral.RobustLoopingCall that catch…
forrestv Aug 2, 2013
9541a77
check version on all networks, now that litecoin net has switched
forrestv Aug 18, 2013
fc98547
added version, protocol_version, and fee to /local_stats
forrestv Aug 18, 2013
47f4690
added bits to block-stale punishment message
forrestv Aug 18, 2013
3ca723e
fixed sharereply result handler raising a string as an exception
forrestv Aug 18, 2013
678e324
changed litecoin block announce channel to #p2pool-ltc
forrestv Aug 19, 2013
6dc8cdb
cleaned up ShareStore interface
forrestv Aug 18, 2013
d874cb7
removed old share implementation
forrestv Aug 17, 2013
2872302
include txs in share explorer (and other share explorer improvements)
forrestv Aug 18, 2013
010a44f
removed stratum nonce hacks
forrestv Aug 17, 2013
2664f79
Rewrote URL references and redirects to be relative, not absolute, so…
Krellan Aug 21, 2013
c4796e1
some touchups to 2664f794
forrestv Aug 22, 2013
e35b7de
Merge pull request #129 from Krellan/master
forrestv Aug 22, 2013
9e3f13c
removed transitional NEW_* network parameters (meant to happen in d87…
forrestv Aug 23, 2013
60518a0
warn user about bitcoin connection slots if p2p connect takes longer …
forrestv Aug 25, 2013
ca024a5
Fixed missing OpenSSL module error.
kevinxucs Sep 3, 2013
d4f5cc2
Merge pull request #131 from kevinxucs/pip-requirement-fix
forrestv Sep 3, 2013
b671a57
added --disable-advertise option to disable advertising local IP addr…
forrestv Sep 4, 2013
ef706a7
fixed starting a new sharechain (broken by a flaw in 76b297b6, first …
forrestv Sep 11, 2013
0e5547d
warn about bitcoin <0.8.5
forrestv Sep 15, 2013
5e9f914
updated bitcoin version in README
forrestv Sep 16, 2013
228aa8f
added button to graphs to change stacked ones into normalized/proport…
forrestv Sep 15, 2013
97ade2b
removed unused argument in graphs
forrestv Sep 16, 2013
0460c6c
added orphan share rate graph
forrestv Sep 15, 2013
bc43b5d
removed old desired_version_rates graph converter
forrestv Sep 17, 2013
b142f30
merged incoming/outgoing graph datastreams to fix problem with stacke…
forrestv Sep 17, 2013
84c4dfc
fixed labels being squished together for non-stacked graphs
forrestv Sep 20, 2013
eb29f54
removed unused desired_versions graph data store
forrestv Sep 21, 2013
82a005e
added cleaner migration function for peer graph data
forrestv Sep 21, 2013
b70dff0
merged share hash rate graph stores and made them stack on the graph
forrestv Sep 21, 2013
ff0d15e
TRC version warning.
Sep 24, 2013
740e306
Merge pull request #132 from terracoin/trc_version_warn
forrestv Sep 24, 2013
f5b2fc2
TRC hardfork @block 192239 / v0.8.0.2 (80002)
Sep 25, 2013
391787f
display links to found shares in share explorer
forrestv Sep 28, 2013
ad585f4
completely specified required versions in README
forrestv Oct 16, 2013
b4c62b4
send p2p version 70002
Rav3nPL Nov 1, 2013
35864c3
Merge pull request #136 from Rav3nPL/patch-1
forrestv Nov 1, 2013
b2eb3d2
Merge pull request #133 from terracoin/trc_hardfork_80002
forrestv Nov 1, 2013
ae8740b
added nonce to bitcoin p2p ping/pong messages to fix errors in bitcoi…
forrestv Nov 4, 2013
69d7300
lower maximum shares per node from 5% to 1.67% (from minimum of 10 mi…
forrestv Nov 5, 2013
4e3d667
added sponsors to README
forrestv Nov 14, 2013
738398b
require litecoin >=0.8.5.1
forrestv Nov 14, 2013
396e51e
format durations on web pages by automatically choosing an appropriat…
forrestv Nov 17, 2013
4e7adf0
reorganized format_dt
forrestv Nov 24, 2013
8e7cb82
print RPC URL of merged mining daemon whose getauxblock call failed
forrestv Nov 24, 2013
9ece94a
terracoin blockexplorer url update.
Dec 5, 2013
e22c8a5
Merge pull request #143 from terracoin/blockexplorer_url_update
forrestv Dec 5, 2013
95b4dc8
Update Makefile to use virtualenv 1.10.1
kevinxucs Dec 7, 2013
e66e6d5
Merge pull request #144 from kevinxucs/virtualenv-1.10.1
forrestv Dec 7, 2013
ee5819f
check bitcoind with genesis block
iongchun Dec 11, 2013
d851a29
Update networks.py to include fastcoin
d0gZpAw Jan 15, 2014
50b89fd
Update networks.py to include fastcoin
d0gZpAw Jan 15, 2014
012a883
ban peers that send shares that fail to validate
forrestv Jan 19, 2014
11b0d96
deal with inefficiencient behaviour when chain is forked
forrestv Jan 20, 2014
8c30d48
print share hashes when share check fails
forrestv Jan 20, 2014
39767a2
fixed possible crash introduced by prior commit
forrestv Jan 20, 2014
aafc095
attempt to fix web-static not being found
forrestv Jan 24, 2014
d43be75
Merge branch 'chk-genesis' of https://github.com/iongchun/p2pool into…
forrestv Jan 27, 2014
f727ee1
made iongchun's genesis block patch handle failure correctly
forrestv Jan 27, 2014
e25dff9
IRC announce through worker endpoint
adlai Jan 29, 2014
7aa75ce
Merge pull request #162 from adlai/master
forrestv Jan 29, 2014
759aa69
don't report negative hash rates when system time goes backwards
forrestv Feb 5, 2014
ef6cbd8
Merge remote-tracking branch 'upstream/master'
d0gZpAw Feb 7, 2014
d8132f8
Update fastcoin configuration
d0gZpAw Feb 7, 2014
5ee3172
fix stack trace spew caused by some routers' UPnP implementations
forrestv Feb 10, 2014
35f06e8
added add_space argument to util.math.format
forrestv Dec 29, 2013
9098b24
Update networks.py
m0gliE Mar 31, 2014
6b45b7f
Update networks.py
m0gliE Mar 31, 2014
f0eeb48
Merge pull request #196 from m0gliE/fastcoin
forrestv Apr 2, 2014
ba91170
change BOOTSTRAP_ADDRS
chaeplin Apr 9, 2014
fc4a6fd
README
chaeplin Apr 15, 2014
6d91843
Update README.md
chaeplin Apr 26, 2014
540f97e
testnet hash typo
chaeplin Apr 26, 2014
bdfc7bf
Update README.md
chaeplin Apr 26, 2014
85706de
Use 64bit OS
chaeplin Apr 30, 2014
ca64673
Update README.md
chaeplin May 2, 2014
0565832
Update README.md
chaeplin May 4, 2014
3ffb8c5
Update networks.py
chaeplin May 12, 2014
c27ef50
Update networks.py
chaeplin May 12, 2014
72d5988
Update xcoin-hash.txt
chaeplin May 13, 2014
73cd411
Update README.md
chaeplin May 15, 2014
3688627
Update README.md
chaeplin May 15, 2014
e7a21f4
Remove bitcoin, litecoin...
jdstorm May 20, 2014
a18cff7
Remove scrypt module
jdstorm May 20, 2014
c4b3b5e
Add DarkCoin support
jdstorm May 20, 2014
752b485
Fix block number
jdstorm May 20, 2014
c133717
Add new subsidy module
jdstorm May 20, 2014
6c311f4
Add extra API stats from mmouse-/p2pool-vtc
jdstorm May 21, 2014
d2712df
Add masternode votes to share_data
jdstorm May 22, 2014
2faadba
Update index.html
chaeplin May 22, 2014
3a6b7ff
Update README.md
chaeplin May 22, 2014
654b0a1
Update README.md
chaeplin May 22, 2014
db3881c
Add missing votes and payee
jdstorm May 23, 2014
56c673c
Add bootstrap addresses
jdstorm May 23, 2014
9bd6531
Change identifier and prefix for testnet
jdstorm May 23, 2014
99eae07
Change method names to make upgrade from old pool easier
jdstorm May 23, 2014
5206929
Update README.md
chaeplin May 24, 2014
fafccbb
Remove votes from share_data
jdstorm May 24, 2014
5fd3684
Update networks.py
jdstorm May 24, 2014
05dd832
README.md
jdstorm May 25, 2014
aa32f26
README.md edited online with Bitbucket
jdstorm May 25, 2014
8d9dad9
README.md edited online with Bitbucket
jdstorm May 25, 2014
ed03536
README.md edited online with Bitbucket
jdstorm May 25, 2014
8440ef2
Fix p2p prefix
jdstorm May 25, 2014
cfd6104
New identifier and prefix
jdstorm May 25, 2014
73b6d17
merged dstorms repository
vertoe May 25, 2014
3c5af9c
Sort the worker scripts
jdstorm May 26, 2014
d95253c
Change identifier and prefix
jdstorm May 26, 2014
816f1d3
Change worker port to 7903 due to popular request
jdstorm May 26, 2014
2ca4356
Add more bootstrap addresses
jdstorm May 26, 2014
fb2c8ac
Add version check and new identifier + prefix
jdstorm May 26, 2014
6b30480
Remove masternode support
jdstorm May 26, 2014
641b320
Merge dstorms repository
vertoe Jun 13, 2014
cd3f1d8
Revert 6b30480 to enable masternodes
vertoe Jun 13, 2014
234d5dc
Change masternode payout to 20%
vertoe Jun 13, 2014
51d241e
Change prefix to force hard fork
vertoe Jun 13, 2014
bd25e04
Minor stratum protocol compatibility fix
plambe Jun 13, 2014
2de92b1
Merge pull request #1 from plambe/master
vertoe Jun 13, 2014
53fff90
Support both block types
jdstorm Jun 16, 2014
4bebdf8
Change masternode payment to 20%
jdstorm Jun 16, 2014
f5ea54c
Update protocol version
jdstorm Jun 16, 2014
f079031
Use old block type
jdstorm Jun 16, 2014
fac408d
Minor stratum protocol compatibility fix
plambe Jun 13, 2014
6fb1fa3
Return custom error message when subscribing to extranonce. Fixes pro…
jdstorm Aug 20, 2014
cb6c212
Update protocol version
jdstorm Sep 22, 2014
59502b0
Require daemon version 91314
jdstorm Sep 22, 2014
b41359a
added masternode payments amount
Oct 6, 2014
817664d
version bump
darkcoinproject Oct 17, 2014
c34e386
Revert "added masternode payments amount"
jdstorm Oct 20, 2014
087c8bf
Use new masternode payment amounts without hardforking
jdstorm Oct 20, 2014
d88f296
Revert "Use new masternode payment amounts without hardforking"
jdstorm Oct 21, 2014
d4c0766
Add masternode payments amount
jdstorm Oct 21, 2014
36a4e34
Update networks.py
jdstorm Oct 21, 2014
b1a07a5
Require daemon version 101514
jdstorm Oct 21, 2014
81fc6c5
Add bootstrap addresses
jdstorm Oct 25, 2014
e0b985f
Update version.
donSchoe Dec 5, 2014
98bf47f
Update python modules and testnet.
vertoe Dec 30, 2014
042e1e9
Clean up.
vertoe Jan 3, 2015
af2e873
version bump
vertoe Jan 13, 2015
502ebed
Version bump
djnapalm Jan 28, 2015
f45e935
Merge pull request #2 from djnapalm/master
vertoe Jan 28, 2015
1baefad
Fix merge conflicts
vertoe Jan 28, 2015
e01a8d9
Miners work fix.
djnapalm Jan 28, 2015
8555d6a
Merge pull request #3 from djnapalm/master
vertoe Jan 28, 2015
601309b
Add testnet bootstrap addresses
vertoe Jan 28, 2015
2ef41de
Update networks.py
vertoe Jan 28, 2015
94c80f1
Update README.md
vertoe Jan 28, 2015
c7c1bd7
Revert "Update README.md"
vertoe Jan 28, 2015
dd77cb0
Thanks
vertoe Jan 28, 2015
cfbfb8a
Fix testnet explorer.
vertoe Jan 28, 2015
810dac4
Version bump
djnapalm Jan 29, 2015
1b9f7c4
Version bump
djnapalm Jan 29, 2015
c82340e
Add library to build modules
djnapalm Jan 29, 2015
6741928
Merge pull request #4 from djnapalm/master
vertoe Jan 29, 2015
2914682
Require daemon version 110117
djnapalm Feb 9, 2015
981990b
Require daemon version 110119
djnapalm Feb 10, 2015
5f4089c
Merge pull request #5 from djnapalm/master
vertoe Feb 10, 2015
4b5c7b1
Rebranding To Dash
djnapalm Apr 1, 2015
d1545f6
Merge pull request #6 from djnapalm/master
vertoe Apr 1, 2015
a4cf6dc
Updated for Version 3 with Identifier and Prefix changes
ourlink Apr 8, 2015
f39e643
Revert Dash_Hash and Dash_Subsidy
ourlink Apr 8, 2015
2e0962c
Cleanup of SCRIPT_ADDRESS_VERSION values
ourlink Apr 9, 2015
fff6552
Change test SCRIPT_ADDRESS_VERSION
ourlink Apr 9, 2015
21f6721
Merge pull request #8 from ourlink/master
vertoe Apr 10, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
*.pyc
*.pyo
*~

data
_trial_temp*
Makefile.local
.cache
.pkg
.coverage
build
web-static
Empty file removed Makefile.local
Empty file.
100 changes: 22 additions & 78 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,113 +1,57 @@
Requirements:
-------------------------
Generic:
* Vertcoin >=0.8.5
* Python >=2.6
* Twisted >=10.0.0
* python-argparse (for Python =2.6)

Linux:
* sudo apt-get install python-zope.interface python-twisted python-twisted-web
* sudo apt-get install python-argparse # if on Python 2.6
* Dash >=0.11.2.17
* Python >=2.7
* Twisted >=13.0.0
* Zope.interface >=3.8.0

Windows:
* Install Python 2.7: http://www.python.org/getit/
* Install Twisted: http://twistedmatrix.com/trac/wiki/Downloads
* Install Zope.Interface: http://pypi.python.org/pypi/zope.interface/3.8.0
* Install python win32 api: http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/
* Install python win32 api wmi wrapper: https://pypi.python.org/pypi/WMI/#downloads
* Unzip the files into C:\Python27\Lib\site-packages
Linux:

sudo apt-get install python-zope.interface python-twisted python-twisted-web python-dev
sudo apt-get install gcc g++

Install module:
Install Python modules:
-------------------------
dash_hash:

* apt-get install libboost1.48-all-dev python-dev


* git clone https://github.com/chaeplin/SUBSIDY_FUNC.git
* git clone https://github.com/evan82/xcoin-hash.git

* cd SUBSIDY_FUNC/darkcoin-subsidy-python
* python setup.py install

* cd xcoin-hash
* python setup.py install
git clone https://github.com/vertoe/darkcoin_hash.git
cd darkcoin_hash
python setup.py install

dash_subsidy:

git clone https://github.com/vertoe/darkcoin_subsidy.git
cd darkcoin_subsidy
python setup.py install

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

python run_p2pool.py

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

If you are behind a NAT, you should enable TCP port forwarding on your
router. Forward port 9333 to the host running P2Pool.
router. Forward port 8999 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 front end :
-------------------------
* https://github.com/hardcpp/P2PoolExtendedFrontEnd

Notes for Vertcoin:
=========================
Requirements:
-------------------------
In order to run P2Pool with the Vertcoin network, you would need to build and install the
vtc_scrypt module that includes the scrypt proof of work code that Vertcoin uses for hashes.

Linux:

cd py_modules/vertcoin_scrypt
sudo python setup.py install

Windows (mingw):
* Install MinGW: http://www.mingw.org/wiki/Getting_Started
* Install Python 2.7: http://www.python.org/getit/

In bash type this:

cd py_modules\vertcoin_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 py_modules\vertcoin_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 vertcoin" option.
Run your miner program, connecting to 127.0.0.1 on port 9171.

Notes for Cachecoin:
=========================
This is currently under heavy development and still experimental. For the
current latest stable implementation, please use https://github.com/Sykh/p2pool-cache
* https://github.com/johndoe75/p2pool-node-status
* https://github.com/justino/p2pool-ui-punchy

Sponsors:
-------------------------
Expand All @@ -116,4 +60,4 @@ Thanks to:
* The Bitcoin Foundation for its generous support of P2Pool
* The Litecoin Project for its generous donations to P2Pool
* The Vertcoin Community for its great contribution to P2Pool

* chaeplin, dstorm and mr.slaveg from the Dash Community
Binary file removed nattraverso/__init__.pyc
Binary file not shown.
Binary file removed nattraverso/ipdiscover.pyc
Binary file not shown.
Binary file removed nattraverso/portmapper.pyc
Binary file not shown.
Binary file removed nattraverso/utils.pyc
Binary file not shown.
87 changes: 0 additions & 87 deletions p2pool/bitcoin/helper.py

This file was deleted.

71 changes: 0 additions & 71 deletions p2pool/bitcoin/networks.py

This file was deleted.

File renamed without changes.
14 changes: 13 additions & 1 deletion p2pool/bitcoin/data.py → p2pool/dash/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ def write(self, file, item):
('lock_time', pack.IntType(32)),
])

vote_type = pack.ComposedType([
('block_height', pack.IntType(64)),
('pubkey', pack.VarStrType()),
('votes', pack.IntType(32)),
])

merkle_link_type = pack.ComposedType([
('branch', pack.ListType(pack.IntType(256))),
('index', pack.IntType(32)),
Expand All @@ -131,6 +137,12 @@ def write(self, file, item):
block_type = pack.ComposedType([
('header', block_header_type),
('txs', pack.ListType(tx_type)),
('votes', pack.ListType(vote_type)),
])

block_type_old = pack.ComposedType([
('header', block_header_type),
('txs', pack.ListType(tx_type)),
])

# merged mining
Expand Down Expand Up @@ -258,7 +270,7 @@ def pubkey_to_address(pubkey, net):

def address_to_pubkey_hash(address, net):
x = human_address_type.unpack(base58_decode(address))
if x['version'] != net.ADDRESS_VERSION:
if x['version'] != net.ADDRESS_VERSION and x['version'] != net.SCRIPT_ADDRESS_VERSION:
raise ValueError('address not for this net!')
return x['pubkey_hash']

Expand Down
6 changes: 3 additions & 3 deletions p2pool/bitcoin/getwork.py → p2pool/dash/getwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from __future__ import division

from . import data as bitcoin_data
from . import data as dash_data
from . import sha256
from p2pool.util import pack

Expand Down Expand Up @@ -35,7 +35,7 @@ def getwork(self, **extra):
if 'data' in extra or 'hash1' in extra or 'target' in extra or 'midstate' in extra:
raise ValueError()

block_data = bitcoin_data.block_header_type.pack(dict(
block_data = dash_data.block_header_type.pack(dict(
version=self.version,
previous_block=self.previous_block,
merkle_root=self.merkle_root,
Expand Down Expand Up @@ -75,4 +75,4 @@ def update(self, **kwargs):
return self.__class__(**d)

def decode_data(data):
return bitcoin_data.block_header_type.unpack(_swap4(data.decode('hex'))[:80])
return dash_data.block_header_type.unpack(_swap4(data.decode('hex'))[:80])
Loading