rav3n_pl
Legendary
Offline
Activity: 1361
Merit: 1003
Don`t panic! Organize!
|
|
July 16, 2015, 10:23:32 AM |
|
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.
|
|
|
|
luthermarcus
|
|
July 16, 2015, 10:56:50 AM |
|
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.htmlLike that you represent in your tag name!
|
Donate Bitcoin 1Mz7ZHxPhoH1ZK2yQvo62NdHvvsS2quhzc Donate TRX TB3WiLEj6iuSBU5tGUKyZkjB4vqrBDvoYM
|
|
|
luthermarcus
|
|
July 16, 2015, 12:56:06 PM |
|
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 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
|
|
July 16, 2015, 01:36:36 PM |
|
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.htmlLike 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
Activity: 4620
Merit: 1851
Linux since 1997 RedHat 4
|
|
July 16, 2015, 01:43:34 PM |
|
It's transaction related.
|
|
|
|
jonnybravo0311
Legendary
Offline
Activity: 1344
Merit: 1024
Mine at Jonny's Pool
|
|
July 16, 2015, 03:29:08 PM |
|
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
Activity: 1258
Merit: 1027
|
|
July 16, 2015, 05:03:15 PM |
|
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.pngThat 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
|
|
|
|
jonnybravo0311
Legendary
Offline
Activity: 1344
Merit: 1024
Mine at Jonny's Pool
|
|
July 16, 2015, 05:11:36 PM |
|
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
|
|
July 16, 2015, 05:44:07 PM |
|
I was building p2pool for joincoin. https://github.com/joincoin/joincoinfrom 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
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 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
Activity: 2212
Merit: 1038
|
|
July 16, 2015, 06:06:53 PM |
|
I was building p2pool for joincoin. https://github.com/joincoin/joincoinfrom 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
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 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
|
|
July 16, 2015, 06:43:11 PM |
|
Or just restart your coin daemon - p2pool will then kick in
|
|
|
|
majsta
|
|
July 16, 2015, 08:38:49 PM |
|
Hi tnx ppl for fast response but this problem is not because --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 VERSION = 1004 Because that's what getinfo reports
|
|
|
|
notbatman
Legendary
Offline
Activity: 2212
Merit: 1038
|
|
July 16, 2015, 09:01:56 PM |
|
Hi tnx ppl for fast response but this problem is not because --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 VERSION = 1004 Because that's what getinfo reports Oh, that's p2pools max connections, way to make me look foolish. 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
|
|
July 16, 2015, 09:37:37 PM |
|
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: pchMessageStart[0] = 0xf1; pchMessageStart[1] = 0xb4; pchMessageStart[2] = 0xdc; pchMessageStart[3] = 0x9e;
P2P_PREFIX should look like this: P2P_PREFIX = 'f1b4dc9e'.decode('hex') #pchmessagestart
|
|
|
|
notbatman
Legendary
Offline
Activity: 2212
Merit: 1038
|
|
July 16, 2015, 09:54:36 PM |
|
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
|
|
July 16, 2015, 10:01:31 PM |
|
Yes I know that wildcards are not used anymore but still there is a: rpcallowip=127.0.0.1
and rpcconnect=127.0.0.1
I m really thankful for your time trying to help and this becoming real interesting task Last two days I m working on this
|
|
|
|
notbatman
Legendary
Offline
Activity: 2212
Merit: 1038
|
|
July 16, 2015, 10:03:16 PM |
|
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
|
|
July 16, 2015, 10:24:06 PM |
|
Hehe, yes I did try but still the same problem.
|
|
|
|
p3yot33at3r
|
|
July 16, 2015, 10:45:24 PM |
|
Doesn't joincoin use TOR? I've never tried using p2pool over TOR, but I'm sure it requires a slightly different configuration, ie: -tor=<ip:port> Use proxy to reach tor hidden services (default: same as -proxy) Just a thought......
|
|
|
|
majsta
|
|
July 16, 2015, 11:09:03 PM |
|
Hm this is interesting and worth investigating. However, now I have no idea how to use p2pool over TOR?
|
|
|
|
|