Bitcoin Forum
December 11, 2016, 02:37:42 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: « 1 ... 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 [655] 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 ... 744 »
  Print  
Author Topic: [1500 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool  (Read 2035323 times)
luthermarcus
Full Member
***
Offline Offline

Activity: 206



View Profile
July 16, 2015, 12:56:06 PM
 #13081

How do you figure your sharechain was corrupted?

I'm not sure, I can only put it down to the bad peers, which I've now blocked - no problems since  Smiley

Ok so i started to block peers who are not up to date and now i am seeing a spam request of parent share over and over which will not go away.
1481423862
Hero Member
*
Offline Offline

Posts: 1481423862

View Profile Personal Message (Offline)

Ignore
1481423862
Reply with quote  #2

1481423862
Report to moderator
1481423862
Hero Member
*
Offline Offline

Posts: 1481423862

View Profile Personal Message (Offline)

Ignore
1481423862
Reply with quote  #2

1481423862
Report to moderator
1481423862
Hero Member
*
Offline Offline

Posts: 1481423862

View Profile Personal Message (Offline)

Ignore
1481423862
Reply with quote  #2

1481423862
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481423862
Hero Member
*
Offline Offline

Posts: 1481423862

View Profile Personal Message (Offline)

Ignore
1481423862
Reply with quote  #2

1481423862
Report to moderator
1481423862
Hero Member
*
Offline Offline

Posts: 1481423862

View Profile Personal Message (Offline)

Ignore
1481423862
Reply with quote  #2

1481423862
Report to moderator
Duce
Full Member
***
Offline Offline

Activity: 155


View Profile
July 16, 2015, 01:36:36 PM
 #13082

Howto get latency of bitcoin-qt low? I am just now around 0.5s

Install bitcoin v0.11. Add to your bitcoin.conf:

maxconnections=10

then run bitcoin-qt and look connections in debug witdow. Choose IPs with lowest latencies and add them to your bitcoin.conf. Add there not more then 4 the best.

addnode=x.x.x.x
Bull.
You can do same adding
timeout=150
BUT it will NOT give you better GBT.

Hey I've been trying to optimize my bitcoind for p2pool any tips. As to settings, what kind of peers I should allow, where to find those peers, etc.
What do you think about his I been banning rbf peers kind of an actives activity.
https://www.mail-archive.com/bitcoin-development@lists.sourceforge.net/msg08422.html
Like that you represent in your tag name!

I update my P2P to version 14.0-9 and bitcoin to v0.11 and my GBT is now <1s as it was before the change from v13 to v14. I have not blocked any peers as the application seems to be doing it's job since now after the initial P2P v14 was not able to block v13 peers (thanks forrestv). My GBT had been at >3s before this last update. Can't say this is a coincident or not just providing my status.
kano
Legendary
*
Offline Offline

Activity: 1932


Linux since 1997 RedHat 4


View Profile
July 16, 2015, 01:43:34 PM
 #13083

It's transaction related.

Pool: https://kano.is BTC: 1KanoiBupPiZfkwqB7rfLXAzPnoTshAVmb
CKPool and CGMiner developer, IRC FreeNode #ckpool and #cgminer kanoi
Help keep Bitcoin secure by mining on pools with Stratum, the best protocol to mine Bitcoins with ASIC hardware
jonnybravo0311
Legendary
*
Offline Offline

Activity: 1008


Mine at Jonny's Pool


View Profile WWW
July 16, 2015, 03:29:08 PM
 #13084

Not sure why your front-end is doing this windpath, but it's showing the latest block found by p2pool as orphaned:



That block wasn't orphaned...

Jonny's Pool - Mine with us and help us grow!  Support a pool that supports Bitcoin, not a hardware manufacturer's pockets!  No SPV cheats.  No empty blocks.
windpath
Legendary
*
Offline Offline

Activity: 938


View Profile WWW
July 16, 2015, 05:03:15 PM
 #13085

Not sure why your front-end is doing this windpath, but it's showing the latest block found by p2pool as orphaned:

http://i.imgur.com/HMCWsis.png

That block wasn't orphaned...

It's fixed now, thanks. It happens when I restart bitcoin and leave the node running, forgot to correct it yesterday Smiley

jonnybravo0311
Legendary
*
Offline Offline

Activity: 1008


Mine at Jonny's Pool


View Profile WWW
July 16, 2015, 05:11:36 PM
 #13086

No problem.  I just happened to check the blocks and saw that was orphaned... and I was like, "Huh?  I swear I got BTC for that... let me check."

Jonny's Pool - Mine with us and help us grow!  Support a pool that supports Bitcoin, not a hardware manufacturer's pockets!  No SPV cheats.  No empty blocks.
majsta
Hero Member
*****
Offline Offline

Activity: 533


kittehcoin.info


View Profile
July 16, 2015, 05:44:07 PM
 #13087

I was building p2pool for joincoin.
https://github.com/joincoin/joincoin
Quote
from p2pool.bitcoin import networks

PARENT = networks.nets['joincoin']
SHARE_PERIOD = 5 # seconds
CHAIN_LENGTH = 24*60*60//10 # shares
REAL_CHAIN_LENGTH = 24*60*60//10 # shares
TARGET_LOOKBEHIND = 200 # shares
SPREAD = 50 # blocks
IDENTIFIER = '27392307bca64c44'.decode('hex')
PREFIX = '27392307bca64c44'.decode('hex')
P2P_PORT = 9050
MIN_TARGET = 0
MAX_TARGET = 2**256//2**20 - 1
PERSIST = False
WORKER_PORT = 9241
BOOTSTRAP_ADDRS = '194.135.90.171 194.135.92.4 194.135.94.113'.split(' ')
ANNOUNCE_CHANNEL = '#p2pool-alt'
VERSION_CHECK = lambda v: True
VERSION_WARNING = lambda v: None

Quote
import os
import platform

from twisted.internet import defer

from .. import data, helper
from p2pool.util import pack


P2P_PREFIX = 'f1b4dc9e'.decode('hex') #pchmessagestart
P2P_PORT = 17941
ADDRESS_VERSION = 43 #pubkey_address
RPC_PORT = 17942
RPC_CHECK = defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
            'joincoinaddress' in (yield bitcoind.rpc_help()) and
            not (yield bitcoind.rpc_getinfo())['testnet']
        ))

SUBSIDY_FUNC = lambda height: 2*100000000
POW_FUNC = lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data))
BLOCK_PERIOD = 45 # s
SYMBOL = 'J'
CONF_FILE_FUNC = lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'joincoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/joincoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.joincoin'), 'joincoin.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

Quote
server=1
listen=1
daemon=1
rpcuser=majsta
rpcpassword=x

rpcallowip=*
rpcallowip=127.0.0.1
rpcallowip=192.168.1.99
rpcallowip=192.168.1.103
rpcallowip=192.168.1.104
rpcallowip=192.168.1.105

rpcport=17942
port=17941
rpcconnect=*
rpcconnect=127.0.0.1
rpcconnect=192.168.1.99
rpcconnect=192.168.1.103
rpcconnect=192.168.1.104
rpcconnect=192.168.1.105
algo=scrypt


addnode=24.38.16.6
addnode=194.135.90.171
addnode=194.135.92.4
addnode=194.135.94.113
addnode=gdhtrc7qoh3qowvf.onion:17941
addnode=jsghu6d5lop757ml.onion:17941
addnode=iamzedqd6kmzi3qs.onion:17941
addnode=nwjw2badoulwc4yi.onion:17941
addnode=7wc53o5c3ox62azh.onion:17941
addnode=53zy47p5wly5penk.onion:17941
addnode=5k7xsbnnw3mpotx6.onion:17941
addnode=b2mgu5dvcw3m7cxw.onion:17941


Does anyone have ideas what is going on?

notbatman
Legendary
*
Offline Offline

Activity: 1050



View Profile
July 16, 2015, 06:06:53 PM
 #13088

I was building p2pool for joincoin.
https://github.com/joincoin/joincoin
Quote
from p2pool.bitcoin import networks

PARENT = networks.nets['joincoin']
SHARE_PERIOD = 5 # seconds
CHAIN_LENGTH = 24*60*60//10 # shares
REAL_CHAIN_LENGTH = 24*60*60//10 # shares
TARGET_LOOKBEHIND = 200 # shares
SPREAD = 50 # blocks
IDENTIFIER = '27392307bca64c44'.decode('hex')
PREFIX = '27392307bca64c44'.decode('hex')
P2P_PORT = 9050
MIN_TARGET = 0
MAX_TARGET = 2**256//2**20 - 1
PERSIST = False
WORKER_PORT = 9241
BOOTSTRAP_ADDRS = '194.135.90.171 194.135.92.4 194.135.94.113'.split(' ')
ANNOUNCE_CHANNEL = '#p2pool-alt'
VERSION_CHECK = lambda v: True
VERSION_WARNING = lambda v: None

Quote
import os
import platform

from twisted.internet import defer

from .. import data, helper
from p2pool.util import pack


P2P_PREFIX = 'f1b4dc9e'.decode('hex') #pchmessagestart
P2P_PORT = 17941
ADDRESS_VERSION = 43 #pubkey_address
RPC_PORT = 17942
RPC_CHECK = defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
            'joincoinaddress' in (yield bitcoind.rpc_help()) and
            not (yield bitcoind.rpc_getinfo())['testnet']
        ))

SUBSIDY_FUNC = lambda height: 2*100000000
POW_FUNC = lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data))
BLOCK_PERIOD = 45 # s
SYMBOL = 'J'
CONF_FILE_FUNC = lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'joincoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/joincoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.joincoin'), 'joincoin.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

Quote
server=1
listen=1
daemon=1
rpcuser=majsta
rpcpassword=x

rpcallowip=*
rpcallowip=127.0.0.1
rpcallowip=192.168.1.99
rpcallowip=192.168.1.103
rpcallowip=192.168.1.104
rpcallowip=192.168.1.105

rpcport=17942
port=17941
rpcconnect=*
rpcconnect=127.0.0.1
rpcconnect=192.168.1.99
rpcconnect=192.168.1.103
rpcconnect=192.168.1.104
rpcconnect=192.168.1.105
algo=scrypt


addnode=24.38.16.6
addnode=194.135.90.171
addnode=194.135.92.4
addnode=194.135.94.113
addnode=gdhtrc7qoh3qowvf.onion:17941
addnode=jsghu6d5lop757ml.onion:17941
addnode=iamzedqd6kmzi3qs.onion:17941
addnode=nwjw2badoulwc4yi.onion:17941
addnode=7wc53o5c3ox62azh.onion:17941
addnode=53zy47p5wly5penk.onion:17941
addnode=5k7xsbnnw3mpotx6.onion:17941
addnode=b2mgu5dvcw3m7cxw.onion:17941


Does anyone have ideas what is going on?

You've limited your connections to 8 and like the message says all slots are being used. Either remove '--max-conns 8' and '--outgoing-conns 4' or increase the number of connections you're allowing.
p3yot33at3r
Sr. Member
****
Offline Offline

Activity: 266



View Profile
July 16, 2015, 06:43:11 PM
 #13089

Or just restart your coin daemon - p2pool will then kick in  Wink
majsta
Hero Member
*****
Offline Offline

Activity: 533


kittehcoin.info


View Profile
July 16, 2015, 08:38:49 PM
 #13090

Hi tnx ppl for fast response but this problem is not because
Quote
--max-conns 8 --outgoing-conns 4
It is the same without it. Also reset does not help. This must be something else related to this specific coin because I have no problems running other coins p2pool.
Also p2protocol version changed to
Quote
VERSION = 1004
Because that's what getinfo reports

notbatman
Legendary
*
Offline Offline

Activity: 1050



View Profile
July 16, 2015, 09:01:56 PM
 #13091

Hi tnx ppl for fast response but this problem is not because
Quote
--max-conns 8 --outgoing-conns 4
It is the same without it. Also reset does not help. This must be something else related to this specific coin because I have no problems running other coins p2pool.
Also p2protocol version changed to
Quote
VERSION = 1004
Because that's what getinfo reports


Oh, that's p2pools max connections, way to make me look foolish. Grin Your bitcoind must have its connections limited in a similar fashion.

Delete 'maxconnections=8' from bitcoin.conf or increase the number of allowable connections.



If that doesn't work then it's proof positive that I am in fact a fool.
majsta
Hero Member
*****
Offline Offline

Activity: 533


kittehcoin.info


View Profile
July 16, 2015, 09:37:37 PM
 #13092

There is no such value in .conf file, but what could be confusing here is taking P2P_PREFIX from his specific coin.
According to this:
Quote
pchMessageStart[0] = 0xf1;
pchMessageStart[1] = 0xb4;
pchMessageStart[2] = 0xdc;
pchMessageStart[3] = 0x9e;
P2P_PREFIX should look like this:
Quote
P2P_PREFIX = 'f1b4dc9e'.decode('hex') #pchmessagestart

notbatman
Legendary
*
Offline Offline

Activity: 1050



View Profile
July 16, 2015, 09:54:36 PM
 #13093

I missed the fact the .conf file was posted, doh.

Ok, one more try...

Is Joincoin based on Bitcoin-Core?

I see 'rpcconnect=*' and 'rpcallowip=*' I recall something about this no longer being allowed syntax... let me see...

Change to 'rpcconnect=::/0' and 'rpcallowip=::/0' and see what happens. Also if you're using wild cards like that all those additional addresses are redundant.
majsta
Hero Member
*****
Offline Offline

Activity: 533


kittehcoin.info


View Profile
July 16, 2015, 10:01:31 PM
 #13094

Yes I know that wildcards are not used anymore but still there is a:
Quote
rpcallowip=127.0.0.1
and
Quote
rpcconnect=127.0.0.1
I m really thankful for your time trying to help and this becoming real interesting task Smiley
Last two days I m working on this Smiley

notbatman
Legendary
*
Offline Offline

Activity: 1050



View Profile
July 16, 2015, 10:03:16 PM
 #13095

lol, give it a try if Joincoin is in fact using Core =* could be mucking up the works. Try deleting it or changing it to =::/0
majsta
Hero Member
*****
Offline Offline

Activity: 533


kittehcoin.info


View Profile
July 16, 2015, 10:24:06 PM
 #13096

Hehe, yes I did try but still the same problem.


p3yot33at3r
Sr. Member
****
Offline Offline

Activity: 266



View Profile
July 16, 2015, 10:45:24 PM
 #13097

Doesn't joincoin use TOR? I've never tried using p2pool over TOR, but I'm sure it requires a slightly different configuration, ie:

Code:
-tor=<ip:port>         Use proxy to reach tor hidden services (default: same as -proxy)

Just a thought......
majsta
Hero Member
*****
Offline Offline

Activity: 533


kittehcoin.info


View Profile
July 16, 2015, 11:09:03 PM
 #13098

Hm this is interesting and worth investigating. However, now I have no idea how to use p2pool over TOR?

p3yot33at3r
Sr. Member
****
Offline Offline

Activity: 266



View Profile
July 16, 2015, 11:18:27 PM
 #13099

Hm this is interesting and worth investigating. However, now I have no idea how to use p2pool over TOR?

Can't help you there I'm afraid, but I'm also interested in how to set it up.......gonna google for a while  Smiley
windpath
Legendary
*
Offline Offline

Activity: 938


View Profile WWW
July 17, 2015, 12:50:17 AM
 #13100

Hm this is interesting and worth investigating. However, now I have no idea how to use p2pool over TOR?

I don't have an answer for the original question, sorry, but will say that p2pool over tor is a horrible idea.

One of the main trade-offs for using the onion router is speed for privacy, you loose a great deal of speed to gain incremental privacy.

As a miner on p2pool, the competition is tough and speed is everything; latency from miner to node, node to peers, bitcoin's GBT latency, etc...

Tor, while an awesome project, slows things down by its very privacy centric routing nature.

Tor - great for privacy, horrible for mining bitcoin.

Pages: « 1 ... 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 [655] 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 ... 744 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!