Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: froggy on June 15, 2011, 12:45:05 AM



Title: blkmond dies after a minute or so
Post by: froggy on June 15, 2011, 12:45:05 AM
I'm trying to set up long polling on a new pool but for some reason blkmond stops after it has only been running for a minute or two.  This is happening both on testnet and mainnet.  Everything else is working fine.  To start blkmond I'm using:
Code:
./blkmond blkmon.cfg &
where blkmon.cfg contains (when bitcoind is running against mainnet):
Code:
host=127.0.0.1
port=8333
pid=/MYPATH-TO/pushpoold.pid

and when testing against testnet
Code:
host=127.0.0.1
port=18333
pid=/MYPATH-TO/pushpoold.pid

(In the above examples I've replaced the actual path to the pushpool.pid with MYPATH-TO ).


This is the output that I'm getting (from testnet as an example):
Code:
send msg_version(nVersion=312 nServices=1 nTime=Wed Jun 15 00:32:43 2011 addrTo=CAddress(nServices=1 ip=127.0.0.1 port=18333) addrFrom=CAddress(nServices=1 ip=0.0.0.0 port=0) nNonce=0xC6AB017501B82BD9 strSubVer=.4 nStartingHeight=-1)
connecting
connected
close
close

Has anyone experienced this or have any ideas?


Title: Re: blkmond dies after a minute or so
Post by: froggy on July 16, 2011, 01:18:02 PM
Bullethead21 and anyone else with similar problems with blkmond, it seems JoelKatz's patch for bitcoind (http://forum.bitcoin.org/index.php?topic=8797.msg357744#msg357744) should get long poling working for us.


Title: Re: blkmond dies after a minute or so
Post by: JoelKatz on July 17, 2011, 02:26:50 AM
Bullethead21 and anyone else with similar problems with blkmond, it seems JoelKatz's patch for bitcoind (http://forum.bitcoin.org/index.php?topic=8797.msg357744#msg357744) should get long poling working for us.
Yep. That patch eliminates the need for blkmond. If you want the full patch set, including a variety of other performance improvements specifically aimed at pooled mining controllers, see this link:
http://davids.webmaster.com/~davids/bitcoin-4diff.txt
(This is based against 0.3.24 now and includes a few more micro-optimizations.)


Title: Re: blkmond dies after a minute or so
Post by: DavinciJ15 on August 06, 2011, 11:21:07 PM
I'm trying to set up long polling on a new pool but for some reason blkmond stops after it has only been running for a minute or two.  This is happening both on testnet and mainnet.  Everything else is working fine.  To start blkmond I'm using:
Code:
./blkmond blkmon.cfg &
where blkmon.cfg contains (when bitcoind is running against mainnet):
Code:
host=127.0.0.1
port=8333
pid=/MYPATH-TO/pushpoold.pid

and when testing against testnet
Code:
host=127.0.0.1
port=18333
pid=/MYPATH-TO/pushpoold.pid

(In the above examples I've replaced the actual path to the pushpool.pid with MYPATH-TO ).


This is the output that I'm getting (from testnet as an example):
Code:
send msg_version(nVersion=312 nServices=1 nTime=Wed Jun 15 00:32:43 2011 addrTo=CAddress(nServices=1 ip=127.0.0.1 port=18333) addrFrom=CAddress(nServices=1 ip=0.0.0.0 port=0) nNonce=0xC6AB017501B82BD9 strSubVer=.4 nStartingHeight=-1)
connecting
connected
close
close

Has anyone experienced this or have any ideas?


To make it work set the port from 18333 to 8332 or whatever port is set in bitcoin.conf as the RPC port for JONS

It worked for me.  Only figured that out after reading the source code.


Title: Re: blkmond dies after a minute or so
Post by: ThiagoCMC on November 06, 2011, 08:33:04 AM
Hi!

 I'm trying to setup my own Bitcoin / Litecoin pool...

 Same problem here... But, with bitcoind (0.4.0), no problems. This problem appear when I run blkmon with Litecoin.

 Does anybody knows it I need blkmon to make a pool with longpool support enabled using pushpool / litecoin?

Best!
Thiago


Title: Re: blkmond dies after a minute or so
Post by: shads on November 06, 2011, 09:44:48 AM
try poolserverj... it uses a combination of prev_blcok_hash comparisons and getblocknumber polling which works perfectly well (yes it might cost you a few ms but it's a hell of a lot more reliable and you make up the loss with much faster LP delivery anyway) so no need for blockmond.  It also has an alpha native LP implementation you can use JK patched bitcoind.  Will be working on stabilising that a bit more shortly but from reports I've heard it's working well.


Title: Re: blkmond dies after a minute or so
Post by: ThiagoCMC on November 06, 2011, 10:43:17 PM
try poolserverj... it uses a combination of prev_blcok_hash comparisons and getblocknumber polling which works perfectly well (yes it might cost you a few ms but it's a hell of a lot more reliable and you make up the loss with much faster LP delivery anyway) so no need for blockmond.  It also has an alpha native LP implementation you can use JK patched bitcoind.  Will be working on stabilising that a bit more shortly but from reports I've heard it's working well.

Mmm... Sounds great! I'll give it a try.

Weel, I'll start my own Litecoin pool, based on PoolServerJ but, what Web Interface do you recommends?! mmcFE, SimpleCoin, MiningFarm or Coinmines?

I like mmcFE and the Litecoin pool http://pool-x.eu/ is based on it plus pushpool... I don't know how they did it (litecoin + longpool / pushpool + mmcFE) because blkmond does not work with Litecoin...

Anyway, time to go to PoolServerJ now.

Best!
Thiago