Coder Social home page Coder Social logo

rav3npl / p2pool-rav Goto Github PK

View Code? Open in Web Editor NEW

This project forked from p2pool/p2pool

58.0 58.0 66.0 3.29 MB

Peer-to-peer Bitcoin mining pool

Home Page: http://bitcointalk.org/index.php?topic=18313

License: GNU General Public License v3.0

Makefile 0.32% Python 91.94% Shell 0.09% C++ 0.17% C 1.77% HTML 5.72%

p2pool-rav's People

Contributors

adlai avatar blrhc avatar coblee avatar cohibaa avatar d0gzpaw avatar davidkassa avatar dcod3d avatar dooglus avatar drazisil avatar forrestv avatar gades avatar gmaxwell avatar goblin avatar grimd34th avatar harukama avatar iongchun avatar kevinxucs avatar krellan avatar m0glie avatar maaku avatar midnightmagic avatar napieraj avatar rav3npl avatar rchgrav avatar roy7 avatar tadasvaranavicius avatar thrasher- avatar tierradelfuego avatar whitj00 avatar wtogami 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

p2pool-rav's Issues

Request for Isracoin to be added

Hello devs,
Isracoin has just launched this past week and is already gaining a lot of momentum.
We would appreciate it if you added support for the coin into your p2pool code.
We'd like to get as many p2pools up and running as we can, in order to increase network security.

generally speaking, Isracoin has been cloned over Doge's recent 1.6 release with DigiShield.
Blocks every 1 minute and retarget every one minute by DigiShield.
Block reward is set to 50 coins.

Thanks.

Isracoin team.
www.isracoin.org
https://github.com/israelcoin/Isracoin
https://bittrex.com/Market/?MarketName=BTC-ISR

Please

Please add Cryptogenic Bullion and PotCoin :)

ERROR~~~~

Ask why I P2P client once the connection is such a mistake?
Before I update P2P code no problem to run properly.
Is WDC Coins

I did not change any code

2014-02-21 15:33:23.030428 p2pool (version 13.3-214-ga8ac1d6)
2014-02-21 15:33:23.030660
2014-02-21 15:33:23.030777 Testing bitcoind RPC connection to 'http://127.0.0.1:11082/' with username 'fe'...
2014-02-21 15:33:23.049527 ...success!
2014-02-21 15:33:23.049705 Current block hash: 1a9c7886329a82a457d2902cc11b0245e6dadb68ea21152dc6ee17e30747c05d
2014-02-21 15:33:23.049838 Current block height: 1064428
2014-02-21 15:33:23.049930
2014-02-21 15:33:23.050037 Testing bitcoind P2P connection to '127.0.0.1:11081'...
2014-02-21 15:33:23.116676 ...success!
2014-02-21 15:33:23.116909
2014-02-21 15:33:23.117057 Determining payout address...
2014-02-21 15:33:23.117230 Getting payout address from bitcoind...
2014-02-21 15:33:23.121641 ...success! Payout address: WaBwFtJVVA9p5MhQoquec6hESB7Y35th2v
2014-02-21 15:33:23.121780
2014-02-21 15:33:23.121876 Loading shares...
2014-02-21 15:33:23.122093 ...done loading 0 shares (0 verified)!
2014-02-21 15:33:23.122193
2014-02-21 15:33:23.122318 Initializing work...
2014-02-21 15:33:23.265179 ...success!
2014-02-21 15:33:23.265365
2014-02-21 15:33:23.265504 Joining p2pool network using port 8377...
2014-02-21 15:33:23.894160 ...success!
2014-02-21 15:33:23.894302
2014-02-21 15:33:23.894685 Listening for workers on '' port 9377...
2014-02-21 15:33:23.903394 ...success!
2014-02-21 15:33:23.903513
2014-02-21 15:33:23.903626 Started successfully!
2014-02-21 15:33:23.903734 Go to http://127.0.0.1:9377/ to view graphs and statistics!
2014-02-21 15:33:23.903840 Donating 0.0% of work towards P2Pool's development. Please donate to encourage further development of P2Pool!
2014-02-21 15:33:23.903931
2014-02-21 15:33:26.905146 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming)
2014-02-21 15:33:26.905371 Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2014-02-21 15:33:35.058156 Incoming connection to peer 108.44.169.63:53961 established. p2pool version: 1300 '13.3-182-g95ff970-dirty'
2014-02-21 15:33:35.907178 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 1 (1 incoming)
2014-02-21 15:33:35.907408 Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2014-02-21 15:33:38.745785 Incoming connection to peer 91.235.254.37:45626 established. p2pool version: 1300 '13.3-210-gf696aa9'
2014-02-21 15:33:38.907705 P2Pool: 0 shares in chain (0 verified/1 total) Peers: 2 (2 incoming)
2014-02-21 15:33:38.907939 Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2014-02-21 15:33:41.908483 P2Pool: 0 shares in chain (0 verified/2 total) Peers: 2 (2 incoming)
2014-02-21 15:33:41.908763 Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2014-02-21 15:33:44.514516 Incoming connection to peer 78.46.100.166:46698 established. p2pool version: 1300 '13.3-96-g7f43101-dirty'
2014-02-21 15:33:44.909620 P2Pool: 0 shares in chain (0 verified/2 total) Peers: 3 (3 incoming)
2014-02-21 15:33:44.909839 Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2014-02-21 15:33:47.620324 Incoming connection to peer 54.201.164.152:42593 established. p2pool version: 1300 'unknown 7032706f6f6c'
2014-02-21 15:33:47.910222 P2Pool: 0 shares in chain (0 verified/2 total) Peers: 4 (4 incoming)
2014-02-21 15:33:47.910396 Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2014-02-21 15:33:50.910736 P2Pool: 0 shares in chain (0 verified/3 total) Peers: 4 (4 incoming)
2014-02-21 15:33:50.910907 Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2014-02-21 15:33:58.389776 > Unhandled Error
2014-02-21 15:33:58.389945 > Traceback (most recent call last):
2014-02-21 15:33:58.390015 > File "/home/mapleshadow/rav/p2pool/main.py", line 578, in run
2014-02-21 15:33:58.390099 > reactor.run()
2014-02-21 15:33:58.390181 > File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1192, in run
2014-02-21 15:33:58.390264 > self.mainLoop()
2014-02-21 15:33:58.390366 > File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1201, in mainLoop
2014-02-21 15:33:58.390450 > self.runUntilCurrent()
2014-02-21 15:33:58.390530 > File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 824, in runUntilCurrent
2014-02-21 15:33:58.390644 > call.func(_call.args, *_call.kw)
2014-02-21 15:33:58.390736 > --- ---
2014-02-21 15:33:58.390815 > File "/home/mapleshadow/rav/p2pool/bitcoin/stratum.py", line 38, in _send_work
2014-02-21 15:33:58.390896 > x, got_response = self.wb.get_work(_self.wb.preprocess_request('' if self.username is None else self.username))
2014-02-21 15:33:58.390978 > File "/home/mapleshadow/rav/p2pool/bitcoin/worker_interface.py", line 129, in get_work
2014-02-21 15:33:58.391058 > x, handler = self._inner.get_work(_args)
2014-02-21 15:33:58.391137 > File "/home/mapleshadow/rav/p2pool/work.py", line 205, in get_work
2014-02-21 15:33:58.391215 > raise jsonrpc.Error_for_code(-12345)(u'p2pool is downloading shares')
2014-02-21 15:33:58.391295 > p2pool.util.jsonrpc.NarrowError: -12345 p2pool is downloading shares
2014-02-21 15:34:05.912162 P2Pool: 0 shares in chain (0 verified/3 total) Peers: 4 (4 incoming)
2014-02-21 15:34:05.912390 Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2014-02-21 15:34:12.720765 Handshake timed out, disconnecting from 97.74.42.79:48907
2014-02-21 15:34:16.096743 Incoming connection to peer 5.9.123.82:55464 established. p2pool version: 1300 '13.3-193-gfe0acfc-dirty'
2014-02-21 15:34:17.913762 P2Pool: 0 shares in chain (0 verified/3 total) Peers: 5 (5 incoming)
2014-02-21 15:34:17.914003 Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2014-02-21 15:34:19.912680 Lost peer 5.9.123.82:55464 - Connection to the other side was lost in a non-clean fashion: Connection lost.
2014-02-21 15:34:19.913170 Lost peer 54.201.164.152:42593 - Connection to the other side was lost in a non-clean fashion: Connection lost.
2014-02-21 15:34:19.913541 Lost peer 108.44.169.63:53961 - Connection to the other side was lost in a non-clean fashion: Connection lost.
2014-02-21 15:34:19.914187 Lost peer 78.46.100.166:46698 - Connection to the other side was lost in a non-clean fashion: Connection lost.
2014-02-21 15:34:19.914972 Lost peer 91.235.254.37:45626 - Connection to the other side was lost in a non-clean fashion: Connection lost.

[MOON] RPC-connection

Hi Rav3nPL,

could I ask you to help Mooncoin again with tuning p2pool-rav according to the new wallet/client? That would be great.

The new wallet ( --> https://github.com/mooncoincore/wallet ) was compiled and installed alongside a freshly cloned p2pool-rav. But obviously an RPC-call is not possible.

I have found this one: litecoin-project/litecoin#371 where the user also has problems with the latest Litecoin-wallet to make it possible to work together with a p2pool-code. Since the newest Mooncoin-wallet is based on the latest Litecoin (as far as I know), could it be, that the linked solution would work in your p2pool-version for Mooncoin, too? See here: https://github.com/ilsawa/p2pool-ltc/commit/2af67a8cc7d0c498479f080f0652e02c4c826497

Since I don't know what the correct value for the Mooncoin-genesis-block would be, could you test that and possibly change the relevant passages in your pool-script to be correct? That would be really nice.

Notice: The new dev has changed back to the "official" naming conventions, meaning, that the paths that the Mooncoin-wallet creates, are with small letters again. Maybe this is of help for your updates of the code.

Thank you very much.

help me about https://github.com/forrestv/p2pool/issues/44

i have 4,000 minners
but i use p2pool.py occupies about 10M/S bandwidth and the same number of miners mpos below 0.5M/S bandwidth than, I liked p2pool but I do not pay such high bandwidth costs

who can tell me how to optimize a very good p2pool?

CAP not paying for workers

There is some bug that is counting all workers on node to default payout for node owner.
Looks like code need pubkey for payout address.

XVG Node?

Possible to get a XVG network option?

Getting No Peers/Connections for 42Coin Network

I'm getting 0 peers, 0 shares/0 total shares downloaded. Are the other 42coin geek nodes up?
Perhaps remove persist (persist=false). I'm gonna give it a go. Is this a case of bad luck on my part? :]

Doge SUBSIDY_FUNC

Just wanted to have an issue open about the incorrect subsidy function on doge. I realize it is very difficult due to the random subsidy of the coin but instead of occasionally producing blocks with only 10,000 DOGE due to the following:
SUBSIDY_FUNC=lambda height: 10000*100000000,

Hello friends, please give me a little help, thank you

I added infinitecoin, when I run p2pool, prompted me ...taking a while. Common reasons for this include all of bitcoind's connection slots being used....
I'm sure the problem is IDENTIFIER='fc656166636f696e'.decode('hex'),
PREFIX='fe636f696e6c656a'.decode('hex'),how do I determine these two values ​​it?

This is my values:
IDENTIFIER='fc656166636f696e'.decode('hex'),
PREFIX='fe636f696e6c656a'.decode('hex'),

LOG:
2014-02-01 22:11:47.778552 p2pool (version 13.3-180-g336cded-dirty)
2014-02-01 22:11:47.778745
2014-02-01 22:11:47.778864 Testing bitcoind RPC connection to 'http://127.0.0.1:9322/' with username 'fengying'...
2014-02-01 22:11:47.800380 ...success!
2014-02-01 22:11:47.800606 Current block hash: e2671f04c98c10c93c0826fdd8be57af07ac99a9c9bdebda652ae504bef34053
2014-02-01 22:11:47.800696 Current block height: 629040
2014-02-01 22:11:47.800758
2014-02-01 22:11:47.800841 Testing bitcoind P2P connection to '127.0.0.1:9321'...
2014-02-01 22:11:52.801233 ...taking a while. Common reasons for this include all of bitcoind's connection slots being used...

blocked account

successfull signup at http://fast-pool.com/index.php pointed miner on stratum. works fine. Now 6 h ago. my account is blocked and no support available.

When i log in with my username OR e-mail and PW this message comes:
Unable to login: Account is locked. Please contact site support.

please contact me for more information.
my username is realdee
regards

setting up statistic access for localhost localhost.

Hello yall & @Rav3nPL how can I NOT to reveal all statistic at public IP. Once I run a pool it is not running only at localhost but all information are automatically exposed to the entire word on public IP.

I have tried some changes in /p2pool/p2pool/web.py

 allowed_hosts = (('127.0.0.1', PORT),)

      def do_GET(self):
        if self.client_address not in allowed_hosts:
            self.send_response(401, 'request not allowed')
        else:
         super(WebInterface, self).do_GET()

also have tried to setup .htacces in web-static folder but it doesn't work, Can somebody please advice?

*Trying to disable access for statistic all but from 127.0.0.1 only.

Dogecoin BLlock Halvening - Diff Settings Networks.py

Found in /bitcoin/Networks.py line ~ 393

Shouldnt ->
SANE_TARGET_RANGE=(2256//1000000000 - 1, 2256//1000 - 1),
should be
SANE_TARGET_RANGE=(2256//500000000 - 1, 2256//1000 - 1),
now, as blocks after halvening are only max 500.000 Dogecoins ?
we have to find insane high min Shares on 12h Base.
could this be the reason ?

[MOON] Antminer report DOA shares and false Found Blocks

Hi,
I'm the new mooncoin dev and i tried the new wallet.
when i add antminer in pool, i see valid shares and no invalid.
In the same time in antminer reported few thousands blocks( Found Blocks ) and thousands dead on arrival shares.
Is this a bug or issue from the pool software?

UFOcoin support

Could UFOcoin be added ? I found these values so maybe someone could check and verify, tested them and they seem to be working.
networks.py
ufo=math.Object(
PARENT=networks.nets['ufo'],
SHARE_PERIOD=15, # seconds target spacing
CHAIN_LENGTH=12_60_60//15, # shares
REAL_CHAIN_LENGTH=12_60_60//15, # shares
TARGET_LOOKBEHIND=20, # shares coinbase maturity
SPREAD=50, # blocks
IDENTIFIER='fc656266636f696e'.decode('hex'),
PREFIX='fe636e696e6c656a'.decode('hex'),
P2P_PORT=18720,
MIN_TARGET=0,
MAX_TARGET=2256//220 - 1,
PERSIST=False,
WORKER_PORT=19720,
BOOTSTRAP_ADDRS=''.split(' '),
ANNOUNCE_CHANNEL='#p2pool-alt',
VERSION_CHECK=lambda v: True,
),
bitcoin/networks.py
ufo=math.Object(
P2P_PREFIX='fcd9b7dd'.decode('hex'), #pchmessagestart
P2P_PORT=9887,
ADDRESS_VERSION=27, #pubkey_address
RPC_PORT=9888,
RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
'ufo address' in (yield bitcoind.rpc_help()) and
not (yield bitcoind.rpc_getinfo())['testnet']
)),
SUBSIDY_FUNC=lambda height: 5000_100000000,
POW_FUNC=lambda data: pack.IntType(256).unpack(import('ltc_scrypt').getPoWHash(data)),
BLOCK_PERIOD=90, # s
SYMBOL='UFO',
CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'ufo')
if platform.system() == 'Windows' else os.path.expanduser('/Library/Application Support/ufo/')
if platform.system() == 'Darwin' else os.path.expanduser('
/.ufo'), 'ufo.conf'),
BLOCK_EXPLORER_URL_PREFIX='http://cryptexplorer.com/block/',
ADDRESS_EXPLORER_URL_PREFIX='http://cryptexplorer.com/address/',
TX_EXPLORER_URL_PREFIX='http://cryptexplorer.com/tx/',
SANE_TARGET_RANGE=(2__256//1000000000 - 1, 2__256//1000 - 1),
DUMB_SCRYPT_DIFF=2_*16,
DUST_THRESHOLD=0.03e8,
),

Dogecoin PPLNS window only 12 hours - suggest changing it to 24

Is it possible for us to change the share chain length on the Dogecoin network to 24 hours instead of 12? The current setting is a little disadvantageous to smaller miners, and I'm seeing a lot of people getting frustrated over frequent dry spells.

I've talked to blixnood and he is onboard to change the setting in his repo as well, we would just have to coordinate it and urge nodes to update.

Fuelcoin

looking to have fuelcoin added. have tried a few other p2pool's and i would like to try yours. i have not had much luck with the others and the local rate is displaying incorrectly on all of the coins i try.

Certain coins won't display stats in web interface

I can only get a handful of coins to correctly display stats in the web interface. I've tried the stock as well as a modified web-static folder. I receive the following error on Billioncoin, Worldcoin, Feathercoin, Catcoin and Luckycoin.

Error in DeferredResource handler:
2014-01-17 07:09:30.702238 > Traceback (most recent call last):
2014-01-17 07:09:30.702296 > File "/root/p2pool-rav/p2pool/util/deferred_resource.py", line 24, in render
2014-01-17 07:09:30.702338 > defer.maybeDeferred(resource.Resource.render, self, request).addCallbacks(finish, finish_error)
2014-01-17 07:09:30.702381 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 134, in maybeDeferred
2014-01-17 07:09:30.702420 > result = f(_args, *_kw)
2014-01-17 07:09:30.702457 > File "/usr/lib/python2.7/dist-packages/twisted/web/resource.py", line 216, in render
2014-01-17 07:09:30.702495 > return m(request)
2014-01-17 07:09:30.702531 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1181, in unwindGenerator
2014-01-17 07:09:30.702569 > return _inlineCallbacks(None, gen, Deferred())
2014-01-17 07:09:30.702605 > --- ---
2014-01-17 07:09:30.702641 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
2014-01-17 07:09:30.702678 > result = g.send(result)
2014-01-17 07:09:30.702713 > File "/root/p2pool-rav/p2pool/web.py", line 189, in render_GET
2014-01-17 07:09:30.702750 > res = yield self.func(*self.args)
2014-01-17 07:09:30.702786 > File "/root/p2pool-rav/p2pool/web.py", line 194, in
2014-01-17 07:09:30.702823 > 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()))))
2014-01-17 07:09:30.702866 > File "/root/p2pool-rav/p2pool/data.py", line 547, in get_pool_attempts_per_second
2014-01-17 07:09:30.702903 > assert dist >= 2
2014-01-17 07:09:30.702938 > exceptions.AssertionError:

So far Doge, Lite, Digital and 42 have all loaded fine. Connections are possible to all coins and the graph will update, but not individual stats.

-f switch not paying a fee

Hi

I have the pool working fine but i have set -f to 1 (and tried 1.0) and am not getting any payout from workers mining against the address set with -a.

I am expecting 1% payout to the address set with -a per worker payout. is this incorrect?

patron_Sendmany for local miners only

if i understand patron_sendmany right, i would donate to all users on p2pool network.
In case of merged mining, only the local Users would contribute to the merged mined blocks,
so i would need a possibility to donate only to local (nodewide) Users. any possibility to get that on p2pool ?

When you refresh the page problem

Здравствуйте при установке столкнулся с проблемой
Help pull start, When you start kogad web page with statistics is not active is a log.
2014-10-06 02:46:57.773788 Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
And when I do update statistics in the browser, go to such errors.
2014-10-06 02:46:53.330462 > Error in DeferredResource handler: 2014-10-06 02:46:53.330741 > Traceback (most recent call last): 2014-10-06 02:46:53.330858 > File "/home/ubuntu/p2pool-doge1-8/p2pool/util/deferred_resource.py", line 24, in render 2014-10-06 02:46:53.330955 > defer.maybeDeferred(resource.Resource.render, self, request).addCallbacks(finish, finish_error) 2014-10-06 02:46:53.331061 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 139, in maybeDeferred 2014-10-06 02:46:53.331164 > result = f(*args, **kw) 2014-10-06 02:46:53.331243 > File "/usr/lib/python2.7/dist-packages/twisted/web/resource.py", line 250, in render 2014-10-06 02:46:53.331323 > return m(request) 2014-10-06 02:46:53.331399 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1237, in unwindGenerator 2014-10-06 02:46:53.331479 > return _inlineCallbacks(None, gen, Deferred()) 2014-10-06 02:46:53.331554 > --- <exception caught here> --- 2014-10-06 02:46:53.331629 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1099, in _inlineCallbacks 2014-10-06 02:46:53.331717 > result = g.send(result) 2014-10-06 02:46:53.331822 > File "/home/ubuntu/p2pool-doge1-8/p2pool/web.py", line 198, in render_GET 2014-10-06 02:46:53.331901 > res = yield self.func(*self.args) 2014-10-06 02:46:53.332012 > File "/home/ubuntu/p2pool-doge1-8/p2pool/web.py", line 203, in <lambda> 2014-10-06 02:46:53.332106 > 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())))) 2014-10-06 02:46:53.332204 > File "/home/ubuntu/p2pool-doge1-8/p2pool/data.py", line 573, in get_pool_attempts_per_second 2014-10-06 02:46:53.332310 > assert dist >= 2 2014-10-06 02:46:53.332406 > exceptions.AssertionError:
Also, when connected to a pool of miners, coming out of such a log

2014-10-06 04:00:49.757134 > Unhandled Error 2014-10-06 04:00:49.757308 > Traceback (most recent call last): 2014-10-06 04:00:49.757356 > File "/home/ubuntu/p2pool-doge1-8/p2pool/main.py", line 595, in run 2014-10-06 04:00:49.757397 > reactor.run() 2014-10-06 04:00:49.757447 > File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1192, in run 2014-10-06 04:00:49.757497 > self.mainLoop() 2014-10-06 04:00:49.757543 > File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1201, in mainLoop 2014-10-06 04:00:49.757592 > self.runUntilCurrent() 2014-10-06 04:00:49.757666 > File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 824, in runUntilCurrent 2014-10-06 04:00:49.757717 > call.func(*call.args, **call.kw) 2014-10-06 04:00:49.757773 > --- <exception caught here> --- 2014-10-06 04:00:49.757820 > File "/home/ubuntu/p2pool-doge1-8/p2pool/bitcoin/stratum.py", line 38, in _send_work 2014-10-06 04:00:49.757867 > x, got_response = self.wb.get_work(*self.wb.preprocess_request('' if self.username is None else self.username)) 2014-10-06 04:00:49.757916 > File "/home/ubuntu/p2pool-doge1-8/p2pool/work.py", line 177, in preprocess_request 2014-10-06 04:00:49.757962 > raise jsonrpc.Error_for_code(-12345)(u'p2pool is not connected to any peers') 2014-10-06 04:00:49.758018 > p2pool.util.jsonrpc.NarrowError: -12345 p2pool is not connected to any peers
Help solve the problem.
Pull installed on ubuntu vps

Hshare (HSR)

Plz consider this coin ,it's very new ,and profitable for p2pool.

TRC updated - P2pool error.

Now that the TRC code has been updated, I am getting this error when starting p2pool for TRC:

2016-07-25 13:32:39.794158 > Error: Bitcoin version too old! Upgrade to v0.5 or newer! 2016-07-25 13:32:42.802346 > Error: Bitcoin version too old! Upgrade to v0.5 or newer! 2016-07-25 13:32:45.809435 > Error: Bitcoin version too old! Upgrade to v0.5 or newer! 2016-07-25 13:32:48.822141 > Error: Bitcoin version too old! Upgrade to v0.5 or newer! 2016-07-25 13:32:51.832469 > Error: Bitcoin version too old! Upgrade to v0.5 or newer!

Does the p2pool networks also need to be updated - or is the error in the new TRC wallet code?

TRC git repo: https://github.com/clockuniverse/terracoin-1.0

New TRC version is now 91201.

Thanks.

Mooncoin - new blockchain-address

Hi,

the new blockchain-address for mooncoin is now http://mooncoin.info/abe/chain/Mooncoin instead of moonchain.info
See here: http://mooncoin.info/ (new official Mooncoin-site)

So in the code of /p2pool/bitcoin/networks.py it should look like this (tested and working):

    BLOCK_EXPLORER_URL_PREFIX='http://mooncoin.info/abe/block/',
    ADDRESS_EXPLORER_URL_PREFIX='http://mooncoin.info/abe/address/',
    TX_EXPLORER_URL_PREFIX='http://mooncoin.info/abe/tx/',

Could you change that?
BTW: Could you also check your mooncoind on http://144.76.107.241:9664/static/ ?
Seems you are on the old wallet/mooncoind. The newest one can be obtained here (including KGW-exploit-fix): https://github.com/realmooncoin/mooncoin

RPC-connection problems

Hi Rav3enPL,

after upgrading the Mooncoin-daemon to the latest version, P2Pool seems to have difficulties connecting to the daemon. mooncoindev is pointing at p2pool as the culprit, as the new wallet is based on a 0.10-Litecoin-version, which has deprecated getwork and getblocktemplate ...?

See: mooncoindev/mooncoin#2

Any idea? As there are working Litecoin P2Pool-nodes, I assume it could not be too hard to make it work for Mooncoin again, right?

Thanks and best regards

coinflow

Globalcoin Request/Addition

Could we add Global coin to the networks.py & bitcoin networks.py of the Rav build. Not sure what will be needed to make this CatmanSPC p2pool object work in your build.

globalcoin=math.Object(
PARENT=networks.nets['globalcoin'],
SHARE_PERIOD=10, # seconds target spacing
CHAIN_LENGTH=24_60_60//10, # shares
REAL_CHAIN_LENGTH=24_60_60//10, # shares
TARGET_LOOKBEHIND=200, # shares coinbase maturity
SPREAD=45, # blocks
IDENTIFIER='5F0183D62F698832'.decode('hex'),
PREFIX='52F8CF5955E02234'.decode('hex'),
P2P_PORT=23660,
MIN_TARGET=0,
MAX_TARGET=2256//220 - 1,
PERSIST=False,
WORKER_PORT=8860,
BOOTSTRAP_ADDRS='xpool.net us-east1.cryptovein.com'.split(' '),
ANNOUNCE_CHANNEL='#p2pool-glc',
VERSION_CHECK=lambda v: True,
),

globalcoin=math.Object(
    P2P_PREFIX='fcd9b7dd'.decode('hex'),
    P2P_PORT=55789,
    ADDRESS_VERSION=15,
    RPC_PORT=55788,
    RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
        'globalcoin address' in (yield bitcoind.rpc_help()) and
        not (yield bitcoind.rpc_getinfo())['testnet']
    )),
    SUBSIDY_FUNC=lambda height: 100*100000000 >> (height + 1)//288400,
    POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
    BLOCK_PERIOD=40, # s targetspacing
    SYMBOL='GLC',
    CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'globalcoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/globalcoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.globalcoin'), 'globalcoin.conf'),
    BLOCK_EXPLORER_URL_PREFIX='http://blockchainx.com/block/',
    ADDRESS_EXPLORER_URL_PREFIX='http://blockchainx.com/address/',
    TX_EXPLORER_URL_PREFIX='http://blockchainx.com/tx/',
    SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1),
    DUMB_SCRYPT_DIFF=2**16,
    DUST_THRESHOLD=1e8,
),

BUG

bytecoin RPC_CHECK "bitcoinaddress" Changed bytecoinaddress
Because you are wrong
p2pool IModification before they can be properly!

My English is not good :P

LEAF P2Pool work on wrong chain

It seems that LEAF P2Pool work on wrong chain.

Some nodes updated, some no, but two last blocks are found in wrong chain -
they are in old block chain:
http://cryptexplorer.com/block/ac2ef09ccb315069e32dc1943de7dc22685704fc302d9b61b11f785c36dd0e83
http://cryptexplorer.com/block/f9d88d0cfe49872eb16a6ef216e1b07b61e5ae4a83a4f7a2da88a7f9cec06c9a
and not in new:
http://explorer.leafco.in/block/ac2ef09ccb315069e32dc1943de7dc22685704fc302d9b61b11f785c36dd0e83
http://explorer.leafco.in/block/f9d88d0cfe49872eb16a6ef216e1b07b61e5ae4a83a4f7a2da88a7f9cec06c9a

What should we do to make it work right?

There is also a pull request on LEAF explorer (more details on update there): #35

Request: Solcoin

Solcoin is a standard scrypt/litecoin clone so I tried modifying the Dogecoin network files, but I can't find any information anywhere on how to generate the IDENTIFIER and PREFIX (they don't seem related to the pchMessageStart?), and as I'm rusty on Python I am uncertain if my subsidy function is correct. Would you be able to help?

Solcoin details:
RPC port: 24360
P2P port: 24361
188 second block time target
1772 coins per block, halving every 131072 blocks but never lower than 27 coins, and the subsidy is always rounded down (decimals removed).

Subsidy function: https://github.com/solcoin-project/solcoin/blob/master/src/main.cpp#L1042

Memory and SWAP at 100% - probable vulnerability to reflective DDoS at Python Level?

When we started publicizing our P2Pool we suddenly found our normally okay host, not doing work additional work, but pegged out at 100% use (memory and SWAP).

We are seeing this on our p2pool running the blixnood fork of forrestv's p2pool. We've been trying to see about switching back to forrestv's p2pool to determine if the failure is still present as it appears to come in via LTC traffic and the only reason we are using blixnood's is that we can run DOGE and LTC with it easily.

Our RAM and SWAP peg at 100% and we cannot communicate with the server itself as it is slammed with traffic.

In short, we've determined that someone is mirroring traffic through the worker/p2pool-worker/litecoin-scrypt(?) and sending a reflection DDoS attack to outside hosts. We've manage to slow this attack to a creep, but, it is still happening.

What can we do to help locate the loop-hole/vulnerability that allows someone to accomplish such a task?

Note: we are not "natural" at debugging such large python projects nor python processes in detail and are fairly new to pool running and mining in general but have been computer security gurus for years. We'd love to help though. I've opened this issue on forrestv/p2pool and blixnood/p2pool as well.

Blixnood responded to the issue saying he'd noticed it as well and to try you after trying forrestv and I've already left his as an issue with forrestv. Wish I could do this as a push (like I'd found the issue and made the fix... maybe in time after some help with how to produce tests from yourself or someone of your caliber).

Digitalcoin SUBSIDY_FUNC incorrect.

Please change:
SUBSIDY_FUNC=lambda height: 15_10000000 >> (height + 1)//4730400,
to:
SUBSIDY_FUNC=lambda height: 15_100000000 >> (height + 1)//4730400,

...and:
SANE_TARGET_RANGE=(2256//100000000 - 1, 2256//1000 - 1),
to:
SANE_TARGET_RANGE=(2256//1000000000 - 1, 2256//1000 - 1),

This fixes block rewards being 1.5 instead of 15.

GridCoin

Requesting Gridcoin support. Thank You.

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.