Bitcoin Forum
May 12, 2024, 09:27:10 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 »  All
  Print  
Author Topic: [ANN][YAC][POOL]p2pool for yacoin!!  (Read 28145 times)
ntkrnl (OP)
Newbie
*
Offline Offline

Activity: 46
Merit: 0


View Profile
May 12, 2013, 01:25:06 PM
Last edit: December 12, 2013, 12:03:59 AM by ntkrnl
 #1

NO FEE

pool list(you can choose any one)
http://yac.procrypto.com:8336/
http://mining.bitvolcano.com:8336/
http://pool.bitcn.org:8336/


source: https://github.com/ntkrnl/yacoin-p2pool
lastest version: c265896-dirty
windows binary: https://mega.co.nz/#!0ExyhQIR!KR_Khw4FU1MdGKOlTMPwCXNLV5Yx7qnBPneGgTSkBLw

HOW TO:
1.install cpuminer
git: https://github.com/ali1234/cpuminer

build cpuminer on Linux:
https://bitcointalk.org/index.php?topic=199517.0
https://bitcointalk.org/index.php?topic=200147.0

cpuminer windows binrary:
https://mega.co.nz/#!IJRziTBD!ZCAKGC7fqYkyXsEDi9GB1RYiqIUqj2S9bEm6UI2y1no

2.run
minerd -a scrypt-jane -o http://pool.bitcn.org:8336 -u !YOUR_YACOIN_ADDRESS!

Quote
Features that all P2Pool nodes offer:
  • PPLNS
  • No registration, Just start mining!
  • Payout instantly whenever a block is found on any node.
  • No minimum payout as long as you have an active share
  • P2Pool pays the block reward AND all the TX fees in that block! Other pools keep the TX fees for themselves.
  • Decent graphs show your progress and speed.
  • No coins stored in the server's wallet. Better security. Payouts show up as a mined transaction.
  • If node goes down, mine at another P2Pool node.No loss of PPLNS shares, other nodes guarantee your payout. Use other nodes as backups in your miner config.

Why should I mine on P2Pool?
P2Pool is a distributed mining pool. Nodes from around the world pool their hash power together to find blocks. A block found on any node = a payout for everyone, on every node!
Distributed hashing power helps keep the yacoin network strong and safe.

Why should I not mine on P2Pool?
Some people do not like PPLNS, as payouts vary based on the luck of finding blocks. P2Pool must operate this way in order to leave 0 coins on the server.
P2Pool works best for miners who stick around for a while (see "What is PPLNS" below).
Miners with low hash rates may have huge variance. Please see my post here to determine if mining on P2pool is right for you.

Why does my miner say it has found a lot of shares but I have no payouts and P2Pool doesn't list my payout address?
The real P2Pool share difficulty is much higher than on normal pools. P2Pool essentially lies to your miner and tells it to work on relatively easy shares so that it submits shares every few seconds instead of every few hours. P2Pool then ignores any submitted shares that don't match the real share difficulty. By doing this, P2Pool can more accurately report your local hash rate and you can see if you are having problems quicker.
Miners with low hash rates may have huge variance. Please see my post here to determine if mining on P2pool is right for you.

What is PPLNS
Pay Per Last Number of Shares.
Let's use a car analogy. Say you start mining (step on the gas). When you begin, your PPLNS rate is low but increasing (speedometer starting from 0 and going up). After several hours, you will reach your actual PPLNS rate. If you increase your hash rate (step harder on the gas), it will take some time for your pay rate to adjust. When you stop hashing (remove your foot from the gas), your pay rate will slowly decline (coasting to a stop), until hours later it reaches 0.
PPLNS method of payment is hop proof because it takes longer to ramp up to your actual pay rate.
PPLNS is influenced by luck. Whenever P2Pool finds a block, all miners are paid instantly at their current pay rate. If P2Pool finds several blocks in a row, everyone is paid again and again and again at their current pay rate. If P2Pool doesn't find a block for a while, then no payouts are issued.

What is a "mined" transaction?
A "mined" transaction is how a solo miner, or how a pool is paid for finding a block. A mined transaction contains the current block reward and all the TX fees collected in that block.
Mined transactions take 120 confirmations before they can be spent.
When P2Pool finds a block, it looks at the current pay rate of all miners, and rewrites the mined transaction, giving the correct amount to every miner.

If I switch from one P2Pool node to another, will I lose my PPLNS shares?
You can switch nodes on P2pool as much as you like with no penalty as long as you keep using the same payout address as your username.

========================================================

UPDATE8:
I have made a few changes, If you want to get involved:
1.download the latest source from github;
2.extract the zip ball to a new dir;
3.stop the old version;
4.start the new one as soon as possible, you can use the "run.sh" script provided;
5.go back to your website to test if it works well.

Notice:
1.I'm not 100% sure that the debug version will work, so it's just a test.
2.If it doesn't work, just stop the debug version, and roll back to the old one, miners connected to your server will reconnect  in 30 seconds.
3.If your server is busy as a result of changing version( got a lot of dead shares), restart the p2pool.

UPDATE7:
http://pool.bitcn.org:8336 already mined two blocks with the new version, seems nothing wrong, and a bug which can cause bitcoind crash is fixed, please download the lastest source and binary (66ef457-dirty) to join the main pool !!!!!!
NOTICE: if you use the version "0943dfa-dirty", delete the data dir first.

UPDATE6:
I'm trying to run a new version on http://pool.bitcn.org:8336. so it may be a little unstable.
Everyone will be paid one more time, as a result of the inconvenience.


UPDATE5:
The lastest version conflicts with the former one. and Probrably there is still some bugs.
I start on a completely new version on https://github.com/ntkrnl/yacoin-p2pool
new port 8338:
http://pool.bitcn.org:8338
windows binary: https://mega.co.nz/#!BIBQ3CiB!BsiuBxQ36kNubJvOiNzo_moB9OEFCEGgO50-Ko_lrzc

If you want to do a test, download the source, and join http://pool.bitcn.org:8338
If not, keep everything unchanged is ok.



UPDATE4:
May 16, 2013

The p2p connection bug is fixed, and the source code is available on github.
As a result of huge changes in p2pool protocol, we have to reset the share chain.
When we are finding a block from now on, I'll stop the old version, and start the new one.
Thanks for your support~


UPDATE3:
May 14, 2013
Paymet system works well.

UPDATE2:
May 14, 2013
P2pool can submit blocks now, the "sign failed" bug is fixed.
There is still a little problems with p2pool protocol: "close connection " "gentx doesn't match hash_link" etc. which will make p2p feature unavailable, I think it will be fixed today.

UPDATE1:
May 13, 2013
mmh, there is still something wrong with the payment system
In other words, ppcoin novacoin yacoin basiclly don't support paid-by-worker mode( -u username as address). You can only run p2pool minerd yacoind on your own machine and pay to yourselft.
I will work on the code to try my best to port a FULL-FEATURED p2pool to yacoin, it will take some time, so I decided to shut down the server until the bug is fixed Smiley
1715506030
Hero Member
*
Offline Offline

Posts: 1715506030

View Profile Personal Message (Offline)

Ignore
1715506030
Reply with quote  #2

1715506030
Report to moderator
"I'm sure that in 20 years there will either be very large transaction volume or no volume." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Boing7898
Sr. Member
****
Offline Offline

Activity: 686
Merit: 259



View Profile
May 12, 2013, 01:43:09 PM
 #2

Nice! I was just waiting for this.  Smiley
Aggrophobia
Legendary
*
Offline Offline

Activity: 1064
Merit: 1000



View Profile
May 12, 2013, 01:47:18 PM
 #3

[2013-05-12 15:47:28] JSON-RPC call failed: {
   "data": null,
   "code": -32099,
   "message": "Unknown error"
}
Adamlm
Hero Member
*****
Offline Offline

Activity: 822
Merit: 1002


View Profile WWW
May 12, 2013, 01:51:26 PM
 #4

the same:

Code:
[2013-05-12 13:51:16] JSON-RPC call failed: {
   "message": "Unknown error",
   "data": null,
   "code": -32099
}
[2013-05-12 13:51:16] submit_upstream_work json_rpc_call failed
[2013-05-12 13:51:16] ...retry after 30 seconds

Aggrophobia
Legendary
*
Offline Offline

Activity: 1064
Merit: 1000



View Profile
May 12, 2013, 02:25:01 PM
 #5

now its working
JimmyFL
Member
**
Offline Offline

Activity: 84
Merit: 10



View Profile
May 12, 2013, 03:18:57 PM
 #6

1.4MH. Please dont disappoint me  Wink
eule
Hero Member
*****
Offline Offline

Activity: 756
Merit: 501


View Profile
May 12, 2013, 03:44:57 PM
 #7

Anyone got this to work on his server? Get lots of funky errors:
Code:
2013-05-12 15:52:23.672080 > Traceback (most recent call last):
2013-05-12 15:52:23.672145 >   File "/usr/lib/python2.6/dist-packages/twisted/internet/selectreactor.py", line 146, in _doReadOrWrite
2013-05-12 15:52:23.672202 >     why = getattr(selectable, method)()
2013-05-12 15:52:23.672254 >   File "/usr/lib/python2.6/dist-packages/twisted/internet/tcp.py", line 460, in doRead
2013-05-12 15:52:23.672306 >     return self.protocol.dataReceived(data)
2013-05-12 15:52:23.672367 >   File "/home/eule/yacoin-p2pool/p2pool/util/p2protocol.py", line 26, in dataReceived
2013-05-12 15:52:23.672422 >     self.dataReceived2(data)
2013-05-12 15:52:23.672485 >   File "/home/eule/yacoin-p2pool/p2pool/util/datachunker.py", line 40, in _DataChunker
2013-05-12 15:52:23.672541 >     wants = receiver.send(buf.get(wants))
2013-05-12 15:52:23.672593 > --- <exception caught here> ---
2013-05-12 15:52:23.672643 >   File "/home/eule/yacoin-p2pool/p2pool/util/p2protocol.py", line 54, in dataReceiver
2013-05-12 15:52:23.672693 >     self.packetReceived(command, type_.unpack(payload))
2013-05-12 15:52:23.672744 >   File "/home/eule/yacoin-p2pool/p2pool/util/p2protocol.py", line 68, in packetReceived
2013-05-12 15:52:23.672796 >     handler(**payload2)
2013-05-12 15:52:23.672846 >   File "/home/eule/yacoin-p2pool/p2pool/bitcoin/p2p.py", line 129, in handle_headers
2013-05-12 15:52:23.672895 >     self.get_block_header.got_response(self.net.BLOCKHASH_FUNC(bitcoin_data.block_header_type.pack(header)), header)
2013-05-12 15:52:23.672947 >   File "/home/eule/yacoin-p2pool/p2pool/bitcoin/networks.py", line 44, in <lambda>
2013-05-12 15:52:23.673000 >     BLOCKHASH_FUNC=lambda header: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(header, data.block_header_type.unpack(header)['timestamp'])),
2013-05-12 15:52:23.673052 > exceptions.TypeError: function takes exactly 1 argument (2 given)
2013-05-12 15:52:26.615387 RECV headers 0103000000e98a10df02b6044fbd24bf04c651bdd01c0d35b54f096d036e49d708000000003cf328be8bf3d048f8a7d4378e683f798358832abd793611900f3972381d6224a8ba8f51b3f0251c8f2e09000000
2013-05-12 15:52:26.616133 > Traceback (most recent call last):
2013-05-12 15:52:26.616180 >   File "/usr/lib/python2.6/dist-packages/twisted/internet/selectreactor.py", line 146, in _doReadOrWrite
2013-05-12 15:52:26.616217 >     why = getattr(selectable, method)()
2013-05-12 15:52:26.616260 >   File "/usr/lib/python2.6/dist-packages/twisted/internet/tcp.py", line 460, in doRead
2013-05-12 15:52:26.616315 >     return self.protocol.dataReceived(data)
2013-05-12 15:52:26.616373 >   File "/home/eule/yacoin-p2pool/p2pool/util/p2protocol.py", line 26, in dataReceived
2013-05-12 15:52:26.616424 >     self.dataReceived2(data)
2013-05-12 15:52:26.616472 >   File "/home/eule/yacoin-p2pool/p2pool/util/datachunker.py", line 40, in _DataChunker
2013-05-12 15:52:26.616555 >     wants = receiver.send(buf.get(wants))
2013-05-12 15:52:26.616611 > --- <exception caught here> ---
2013-05-12 15:52:26.616668 >   File "/home/eule/yacoin-p2pool/p2pool/util/p2protocol.py", line 54, in dataReceiver
2013-05-12 15:52:26.616724 >     self.packetReceived(command, type_.unpack(payload))
2013-05-12 15:52:26.616776 >   File "/home/eule/yacoin-p2pool/p2pool/util/p2protocol.py", line 68, in packetReceived
2013-05-12 15:52:26.616831 >     handler(**payload2)
2013-05-12 15:52:26.616887 >   File "/home/eule/yacoin-p2pool/p2pool/bitcoin/p2p.py", line 129, in handle_headers
2013-05-12 15:52:26.616929 >     self.get_block_header.got_response(self.net.BLOCKHASH_FUNC(bitcoin_data.block_header_type.pack(header)), header)
2013-05-12 15:52:26.616963 >   File "/home/eule/yacoin-p2pool/p2pool/bitcoin/networks.py", line 44, in <lambda>
2013-05-12 15:52:26.616996 >     BLOCKHASH_FUNC=lambda header: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(header, data.block_header_type.unpack(header)['timestamp'])),
2013-05-12 15:52:26.617047 > exceptions.TypeError: function takes exactly 1 argument (2 given)
2013-05-12 15:52:28.540894 > Traceback (most recent call last):
2013-05-12 15:52:28.540989 > Failure: twisted.internet.defer.TimeoutError: in ReplyMatcher


ntkrnl (OP)
Newbie
*
Offline Offline

Activity: 46
Merit: 0


View Profile
May 12, 2013, 03:49:06 PM
 #8

Anyone got this to work on his server? Get lots of funky errors:
Code:
2013-05-12 15:44:56.658107 > --- <exception caught here> ---
2013-05-12 15:44:56.658167 >   File "/home/eule/yacoin-p2pool/p2pool/util/deferral.py", line 41, in f
2013-05-12 15:44:56.658225 >     result = yield func(*args, **kwargs)
2013-05-12 15:44:56.658280 >   File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 891, in _inlineCallbacks
2013-05-12 15:44:56.658332 >     result = result.throwExceptionIntoGenerator(g)
2013-05-12 15:44:56.658394 >   File "/usr/lib/python2.6/dist-packages/twisted/python/failure.py", line 338, in throwExceptionIntoGenerator
2013-05-12 15:44:56.658667 >     return g.throw(self.type, self.value, self.tb)
2013-05-12 15:44:56.658730 >   File "/home/eule/yacoin-p2pool/p2pool/bitcoin/helper.py", line 36, in getwork
2013-05-12 15:44:56.658784 >     work = yield go()
2013-05-12 15:44:56.658834 >   File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 891, in _inlineCallbacks
2013-05-12 15:44:56.658886 >     result = result.throwExceptionIntoGenerator(g)
2013-05-12 15:44:56.658939 >   File "/usr/lib/python2.6/dist-packages/twisted/python/failure.py", line 338, in throwExceptionIntoGenerator
2013-05-12 15:44:56.658994 >     return g.throw(self.type, self.value, self.tb)
2013-05-12 15:44:56.659055 >   File "/home/eule/yacoin-p2pool/p2pool/util/jsonrpc.py", line 133, in _http_do
2013-05-12 15:44:56.659107 >     raise Error_for_code(resp['error']['code'])(resp['error']['message'], resp['error'].get('data', None))
2013-05-12 15:44:56.659159 > p2pool.util.jsonrpc.NarrowError: -10 YaCoin is downloading blocks...
2013-05-12 15:44:59.669380 > Traceback (most recent call last):
2013-05-12 15:44:59.669494 >   File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 441, in _runCallbacks
2013-05-12 15:44:59.669567 >     self.result = callback(self.result, *args, **kw)
2013-05-12 15:44:59.669638 >   File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 949, in gotResult
2013-05-12 15:44:59.669700 >     _inlineCallbacks(r, g, deferred)
2013-05-12 15:44:59.669753 >   File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 891, in _inlineCallbacks
2013-05-12 15:44:59.669810 >     result = result.throwExceptionIntoGenerator(g)
2013-05-12 15:44:59.669861 >   File "/usr/lib/python2.6/dist-packages/twisted/python/failure.py", line 338, in throwExceptionIntoGenerator
2013-05-12 15:44:59.669909 >     return g.throw(self.type, self.value, self.tb)
2013-05-12 15:44:59.669960 > --- <exception caught here> ---

p2pool.util.jsonrpc.NarrowError: -10 YaCoin is downloading blocks...
it seems like yacoin client is updating block chain.....
eule
Hero Member
*****
Offline Offline

Activity: 756
Merit: 501


View Profile
May 12, 2013, 03:53:28 PM
 #9

it seems like yacoin client is updating block chain.....
Well yeah that was a test running it as root, thought maybe file permissions were the culprit. Edited the codebox (don't want to spam your thread) above with the errors i get with a normal user who has the full blockchain already.
-edit- running as root with yacoin running on the other user gives the same errors. Got 2 p2pool instances running on the server already, bit puzzled.

Rave
Sr. Member
****
Offline Offline

Activity: 336
Merit: 250



View Profile
May 12, 2013, 04:02:27 PM
 #10

now its working
I still get the same error...

Code:
JSON-RPC call failed

Wanna spend some Bitcoins with a prepaid Master Card? All you need is a VirWox Account and a Skrill Master Card Wink
Boing7898
Sr. Member
****
Offline Offline

Activity: 686
Merit: 259



View Profile
May 12, 2013, 06:26:26 PM
 #11

I keep getting:

2013-05-12 14:26:14.491280 Lost peer 106.187.99.43:12561 - Connection to the other side was lost in a non-clean fashion.

Is this normal?
Puycheval
Member
**
Offline Offline

Activity: 95
Merit: 10


View Profile
May 12, 2013, 06:29:47 PM
 #12

Yep !

Just received my first reward from the pool :  ~0.5 YAC

Good job !

ntkrnl (OP)
Newbie
*
Offline Offline

Activity: 46
Merit: 0


View Profile
May 12, 2013, 06:35:52 PM
 #13

I keep getting:

2013-05-12 14:26:14.491280 Lost peer 106.187.99.43:12561 - Connection to the other side was lost in a non-clean fashion.

Is this normal?

some bugs happened
I have fixed it and restarted the p2pool service
let's go on!
Puycheval
Member
**
Offline Offline

Activity: 95
Merit: 10


View Profile
May 12, 2013, 06:45:27 PM
 #14

Yep !

Just received my first reward from the pool :  ~0.5 YAC

Good job !

But now, I only get rejected shares  Cry. Is there a relationship ?

eule
Hero Member
*****
Offline Offline

Activity: 756
Merit: 501


View Profile
May 12, 2013, 06:59:49 PM
 #15

Threw 300 khash at it, 96% accepted.  Smiley

Still would like to open my own node, any clue what could cause those errors i posted above?  Huh

cryptohunter
Legendary
*
Offline Offline

Activity: 2100
Merit: 1167

MY RED TRUST LEFT BY SCUMBAGS - READ MY SIG


View Profile
May 12, 2013, 07:03:51 PM
 #16

lets get this rolling i like the p2p much better than the other pools.

i have put my cpus on this and it seems to be working fine.

Boing7898
Sr. Member
****
Offline Offline

Activity: 686
Merit: 259



View Profile
May 12, 2013, 07:06:48 PM
 #17

It should download shares when running my own node, right?

2013-05-12 15:06:46.888911     ...done loading 2 shares (2 verified)!

It didn't download any shares :S
eule
Hero Member
*****
Offline Offline

Activity: 756
Merit: 501


View Profile
May 12, 2013, 07:17:24 PM
 #18

Second block found, payout worked fine.  Cheesy
-edit- But it doesn't show in the last blocks list.

ntkrnl (OP)
Newbie
*
Offline Offline

Activity: 46
Merit: 0


View Profile
May 12, 2013, 07:54:16 PM
 #19

Second block found, payout worked fine.  Cheesy
-edit- But it doesn't show in the last blocks list.

yeah
block subumitting failed with an error:
Code:
ThreadRPCServer method=submitblock
Sign failed
ThreadRPCServer method=submitblock
Sign failed
so I paid out manually,
this will give me a good hashrate to find what's wrong
and you are not wasting time & hashrate  Wink

Three days  ago, the block is submitted successfully( 23YAC all went to me).
Another guy who has download the source to run p2pool on his own machine got paid  too.
so it's confusing. I'm trying to figure out what's the problem.

eule
Hero Member
*****
Offline Offline

Activity: 756
Merit: 501


View Profile
May 12, 2013, 08:04:08 PM
 #20

Thanks for doing this, if i get the code running on my server a tip is for sure.  Grin

Pages: [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!