Bitcoin Forum
April 26, 2024, 09:19:11 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 604 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 ... 814 »
  Print  
Author Topic: [1500 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool  (Read 2591624 times)
rav3n_pl
Legendary
*
Offline Offline

Activity: 1361
Merit: 1003


Don`t panic! Organize!


View Profile WWW
July 16, 2015, 10:23:32 AM
 #13061

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.

1Rav3nkMayCijuhzcYemMiPYsvcaiwHni  Bitcoin stuff on my OneDrive
My RPC CoinControl for any coin https://bitcointalk.org/index.php?topic=929954
Some stuff on https://github.com/Rav3nPL/
1714123151
Hero Member
*
Offline Offline

Posts: 1714123151

View Profile Personal Message (Offline)

Ignore
1714123151
Reply with quote  #2

1714123151
Report to moderator
1714123151
Hero Member
*
Offline Offline

Posts: 1714123151

View Profile Personal Message (Offline)

Ignore
1714123151
Reply with quote  #2

1714123151
Report to moderator
1714123151
Hero Member
*
Offline Offline

Posts: 1714123151

View Profile Personal Message (Offline)

Ignore
1714123151
Reply with quote  #2

1714123151
Report to moderator
Whoever mines the block which ends up containing your transaction will get its fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
luthermarcus
Full Member
***
Offline Offline

Activity: 213
Merit: 100



View Profile
July 16, 2015, 10:56:50 AM
 #13062

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!

Donate Bitcoin
1Mz7ZHxPhoH1ZK2yQvo62NdHvvsS2quhzc
Donate TRX
TB3WiLEj6iuSBU5tGUKyZkjB4vqrBDvoYM
luthermarcus
Full Member
***
Offline Offline

Activity: 213
Merit: 100



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

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.

Donate Bitcoin
1Mz7ZHxPhoH1ZK2yQvo62NdHvvsS2quhzc
Donate TRX
TB3WiLEj6iuSBU5tGUKyZkjB4vqrBDvoYM
Duce
Full Member
***
Offline Offline

Activity: 175
Merit: 100


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

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: 4466
Merit: 1800


Linux since 1997 RedHat 4


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

It's transaction related.

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
jonnybravo0311
Legendary
*
Offline Offline

Activity: 1344
Merit: 1023


Mine at Jonny's Pool


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

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: 1258
Merit: 1027


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

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

https://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: 1344
Merit: 1023


Mine at Jonny's Pool


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

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: 561
Merit: 500


kittehcoin.info


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

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: 2212
Merit: 1038



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

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
Merit: 250



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

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

Activity: 561
Merit: 500


kittehcoin.info


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

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: 2212
Merit: 1038



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

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: 561
Merit: 500


kittehcoin.info


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

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: 2212
Merit: 1038



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

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: 561
Merit: 500


kittehcoin.info


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

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: 2212
Merit: 1038



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

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: 561
Merit: 500


kittehcoin.info


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

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


p3yot33at3r
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250



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

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: 561
Merit: 500


kittehcoin.info


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

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

Pages: « 1 ... 604 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 ... 814 »
  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!