Bitcoin Forum
May 06, 2024, 08:04:08 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: blkmond dies after a minute or so  (Read 2284 times)
froggy (OP)
Full Member
***
Offline Offline

Activity: 127
Merit: 100


View Profile WWW
June 15, 2011, 12:45:05 AM
Last edit: June 15, 2011, 01:00:25 AM by froggy
 #1

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?
1715025848
Hero Member
*
Offline Offline

Posts: 1715025848

View Profile Personal Message (Offline)

Ignore
1715025848
Reply with quote  #2

1715025848
Report to moderator
1715025848
Hero Member
*
Offline Offline

Posts: 1715025848

View Profile Personal Message (Offline)

Ignore
1715025848
Reply with quote  #2

1715025848
Report to moderator
1715025848
Hero Member
*
Offline Offline

Posts: 1715025848

View Profile Personal Message (Offline)

Ignore
1715025848
Reply with quote  #2

1715025848
Report to moderator
The forum strives to allow free discussion of any ideas. All policies are built around this principle. This doesn't mean you can post garbage, though: posts should actually contain ideas, and these ideas should be argued reasonably.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715025848
Hero Member
*
Offline Offline

Posts: 1715025848

View Profile Personal Message (Offline)

Ignore
1715025848
Reply with quote  #2

1715025848
Report to moderator
1715025848
Hero Member
*
Offline Offline

Posts: 1715025848

View Profile Personal Message (Offline)

Ignore
1715025848
Reply with quote  #2

1715025848
Report to moderator
froggy (OP)
Full Member
***
Offline Offline

Activity: 127
Merit: 100


View Profile WWW
July 16, 2011, 01:18:02 PM
 #2

Bullethead21 and anyone else with similar problems with blkmond, it seems JoelKatz's patch for bitcoind should get long poling working for us.
JoelKatz
Legendary
*
Offline Offline

Activity: 1596
Merit: 1012


Democracy is vulnerable to a 51% attack.


View Profile WWW
July 17, 2011, 02:26:50 AM
 #3

Bullethead21 and anyone else with similar problems with blkmond, it seems JoelKatz's patch for bitcoind 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.)

I am an employee of Ripple. Follow me on Twitter @JoelKatz
1Joe1Katzci1rFcsr9HH7SLuHVnDy2aihZ BM-NBM3FRExVJSJJamV9ccgyWvQfratUHgN
DavinciJ15
Hero Member
*****
Offline Offline

Activity: 780
Merit: 510


Bitcoin - helping to end bankster enslavement.


View Profile WWW
August 06, 2011, 11:21:07 PM
 #4

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.
ThiagoCMC
Legendary
*
Offline Offline

Activity: 1204
Merit: 1000

฿itcoin: Currency of Resistance!


View Profile
November 06, 2011, 08:33:04 AM
 #5

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
shads
Sr. Member
****
Offline Offline

Activity: 266
Merit: 254


View Profile
November 06, 2011, 09:44:48 AM
 #6

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.

PoolServerJ Home Page - High performance java mining pool engine

Quote from: Matthew N. Wright
Stop wasting the internet.
ThiagoCMC
Legendary
*
Offline Offline

Activity: 1204
Merit: 1000

฿itcoin: Currency of Resistance!


View Profile
November 06, 2011, 10:43:17 PM
 #7

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
Pages: [1]
  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!