Bitcoin Forum
March 28, 2024, 02:49:04 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2] 3 4 5 6 7 »  All
  Print  
Author Topic: [ANNOUNCE] Poolserverj WORKMAKER EDITION RELEASED - 0.4.0rc1  (Read 17330 times)
shads (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 254


View Profile
November 09, 2011, 05:04:55 AM
 #21

What is?
source.local.1.p2p.hostport

Is that for example the bitcoin p2p port people open on the firewall to get more connections like 8333  is that the port I use for that setting?

Also how come there is no setting for the Aux chain should I add one...


source.local.1.merged.namecoin.p2p.hostport


it's the bitcoin protocol port of yr bitcoind.  For sending blocks via bitcoin protocol as a backup in case rpc craps itself. 

There's no setting for aux chains as I haven't implemented it for them.  I'm still thinking about whether this is really useful or not...

PoolServerJ Home Page - High performance java mining pool engine

Quote from: Matthew N. Wright
Stop wasting the internet.
1711637344
Hero Member
*
Offline Offline

Posts: 1711637344

View Profile Personal Message (Offline)

Ignore
1711637344
Reply with quote  #2

1711637344
Report to moderator
1711637344
Hero Member
*
Offline Offline

Posts: 1711637344

View Profile Personal Message (Offline)

Ignore
1711637344
Reply with quote  #2

1711637344
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, which will follow the rules of the network no matter what miners do. Even if every miner decided to create 1000 bitcoins per block, full nodes would stick to the rules and reject those blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
DavinciJ15
Hero Member
*****
Offline Offline

Activity: 780
Merit: 510


Bitcoin - helping to end bankster enslavement.


View Profile WWW
November 09, 2011, 05:37:00 AM
 #22

When I connect one single user to it  I get this error message...

Code:
java.lang.NullPointerException
        at com.shadworld.poolserver.servlet.AbstractJsonRpcServlet.doRequest(AbstractJsonRpcServlet.java:138)
        at com.shadworld.poolserver.servlet.AbstractJsonRpcServlet.doPost(AbstractJsonRpcServlet.java:113)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:476)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:934)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:869)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
        at org.eclipse.jetty.server.Server.handle(Server.java:341)
        at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589)
        at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1065)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:823)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
        at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:515)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)
        at java.lang.Thread.run(Unknown Source)

I notice this on start up and just so you know I did a cURL and it worked and then I copied and pasted the username password and URL into settings file so I don't look silly once again..

Code:
[05:25:51.758] Realm resolved null for key: ms2.nmcbit.com:9098/ Realm: jsonrpc
722 [shared-httpclient-38] WARN org.eclipse.jetty.util.log - Unknown Security Realm: jsonrpc
[05:25:51.758] RETRY
[05:25:51.760] getblocknumber response status: 401 for url: http://ms2.nmcbit.com:8337/
[05:25:51.761] getblocknumber response status: 401 for url: http://ms2.nmcbit.com:8337/
[05:25:51.761] getblocknumber response status: 401 for url: http://ms2.nmcbit.com:8337/
[05:25:51.778] Updating donation target address for chain: namecoin Address: NFja75nNRHZYKtN9YQ6wHPQdmhzBEAmTAt
[05:25:51.787] Updating donation target address for chain: bitcoin Address: 1Lk8f18EyPB3uAJvgTeHgzCVkKY9njQ5bA
752 [main] INFO com.google.bitcoin.core.NetworkConnection - Connected to peer: version=32464, subVer='', services=0x1, time=Wed Nov 09 05:25:51 UTC 2011, blocks=152492
[05:25:51.788] Established outbound p2p connection to ms2.nmcbit.com:8333
[05:25:51.820] RETRY
[05:25:51.824] New Block detected [26967] from source: DaemonSource[cs40].nameco

not sure what I missed.
shads (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 254


View Profile
November 09, 2011, 05:51:19 AM
 #23

yes I'm just working on that issue... was reported elsewhere as well..

Keep the reports coming...

http://poolserverj.org/dist/poolserverj-0.4.0rc3-mini-binary.tar.gz fixes urstroyers issue

PoolServerJ Home Page - High performance java mining pool engine

Quote from: Matthew N. Wright
Stop wasting the internet.
DavinciJ15
Hero Member
*****
Offline Offline

Activity: 780
Merit: 510


Bitcoin - helping to end bankster enslavement.


View Profile WWW
November 09, 2011, 05:53:16 AM
 #24

While running psj 0.4 under load i get spammed with those messages:

Code:
43559 [main-con-qtp-103] WARN org.eclipse.jetty.util.log - /
java.lang.NullPointerException
        at com.shadworld.poolserver.WorkProxy.validateWork(WorkProxy.java:278)
        at com.shadworld.poolserver.WorkProxy.handleRequest(WorkProxy.java:431)
        at com.shadworld.poolserver.servlet.PoolServerJServlet.getResponse(PoolServerJServlet.java:26)
        at com.shadworld.poolserver.servlet.AbstractJsonRpcServlet.doRequest(AbstractJsonRpcServlet.java:255)
        at com.shadworld.poolserver.servlet.AbstractJsonRpcServlet.doPost(AbstractJsonRpcServlet.java:113)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1352)
        at org.eclipse.jetty.servlets.QoSFilter.doFilter(QoSFilter.java:205)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:474)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:934)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:869)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
        at org.eclipse.jetty.server.Server.handle(Server.java:341)
        at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589)
        at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1065)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:823)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:220)
        at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:515)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)
        at java.lang.Thread.run(Thread.java:662)

Any idea? Or more logfiles needed?
+1
shads (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 254


View Profile
November 09, 2011, 05:54:09 AM
 #25

see previous post

PoolServerJ Home Page - High performance java mining pool engine

Quote from: Matthew N. Wright
Stop wasting the internet.
DavinciJ15
Hero Member
*****
Offline Offline

Activity: 780
Merit: 510


Bitcoin - helping to end bankster enslavement.


View Profile WWW
November 09, 2011, 05:59:07 AM
 #26

see previous post
Thanks I fixed my previous problem it was the database settings.
shads (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 254


View Profile
November 09, 2011, 06:03:32 AM
 #27

Quote
[05:25:51.758] Realm resolved null for key: ms2.nmcbit.com:9098/ Realm: jsonrpc
722 [shared-httpclient-38] WARN org.eclipse.jetty.util.log - Unknown Security Realm: jsonrpc
[05:25:51.758] RETRY

This error is fiddly and will take a couple of hours before I can fix it... As a work around I think it will work ok if you use 127.0.0.1 in the url instead of localhost

PoolServerJ Home Page - High performance java mining pool engine

Quote from: Matthew N. Wright
Stop wasting the internet.
shads (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 254


View Profile
November 09, 2011, 06:19:35 AM
 #28

Quote
[05:25:51.758] Realm resolved null for key: ms2.nmcbit.com:9098/ Realm: jsonrpc
722 [shared-httpclient-38] WARN org.eclipse.jetty.util.log - Unknown Security Realm: jsonrpc
[05:25:51.758] RETRY

This error is fiddly and will take a couple of hours before I can fix it... As a work around I think it will work ok if you use 127.0.0.1 in the url instead of localhost


rc3 didn't live very long.

http://poolserverj.org/dist/poolserverj-0.4.0rc4-mini-binary.tar.gz

This should at least ensure the above error doesn't happen if you use IP.  I think it will work if you hostname as well but can't be sure until later today when I've got time to test properly


PoolServerJ Home Page - High performance java mining pool engine

Quote from: Matthew N. Wright
Stop wasting the internet.
DavinciJ15
Hero Member
*****
Offline Offline

Activity: 780
Merit: 510


Bitcoin - helping to end bankster enslavement.


View Profile WWW
November 09, 2011, 06:51:59 AM
 #29

Found a POW and it did not send the coins to the address I specified it remains on the namecoin wallet that PSJ0.4 is connected to.

Am I missing something?  Is the coins sent after they mature?  But you said it should send them on POW.
shads (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 254


View Profile
November 09, 2011, 07:02:51 AM
 #30

Found a POW and it did not send the coins to the address I specified it remains on the namecoin wallet that PSJ0.4 is connected to.

Am I missing something?  Is the coins sent after they mature?  But you said it should send them on POW.

If you've got: source.local.1.merged.namecoin.localCoinbasing=true

but haven't applied the getmemorypool patch to namecoind it will fall back to non-coinbasing mode automatically.

either it's set to false (or commented out) or no patch.

PoolServerJ Home Page - High performance java mining pool engine

Quote from: Matthew N. Wright
Stop wasting the internet.
shads (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 254


View Profile
November 09, 2011, 07:25:58 AM
 #31

BTW something to keep in mind... even though found blocks are submitted by getmemorypool BEFORE they are sent on the bitcoin network.  This is asynchronous and occasionally the daemon will see and process the block from bitcoin protocol first.  If this happens getmemorypool will return 'false' because it's already seen the block.  This means your upstream_result will be false even though it was actually true.

I'm still not sure whether to keep the p2p connection in place.  I could move the code to ensure it always happens after the getmemorypool call but that kind of defeats the purpose.  If the rpc call get's hung up for a few second only to fail that's precious seconds where you could have sent the block and someone else might beat you to it...

PoolServerJ Home Page - High performance java mining pool engine

Quote from: Matthew N. Wright
Stop wasting the internet.
Pontius
Full Member
***
Offline Offline

Activity: 225
Merit: 100


View Profile
November 09, 2011, 08:51:07 AM
 #32

shads, as I wrote before I was unable to find the class where the "doDonationWarning()" method comes from.
Maybe I pulled the wrong release from bitbucket, maybe I'm just blind. Can you give me a hint where to look for it?
shads (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 254


View Profile
November 09, 2011, 08:53:42 AM
 #33

It's in the Conf class but you need to switch to the work-maker-prep branch or you won't see it.

The problem in that method has been fixed and committed though. This is the commit: https://bitbucket.org/shadders/bitcoin-poolserverj/changeset/349c9bc35494

PoolServerJ Home Page - High performance java mining pool engine

Quote from: Matthew N. Wright
Stop wasting the internet.
Pontius
Full Member
***
Offline Offline

Activity: 225
Merit: 100


View Profile
November 09, 2011, 08:59:53 AM
 #34

Ahhh, it's located in another branch. Ok, that explains. Cheesy
Thanks a lot.
DavinciJ15
Hero Member
*****
Offline Offline

Activity: 780
Merit: 510


Bitcoin - helping to end bankster enslavement.


View Profile WWW
November 09, 2011, 01:22:50 PM
 #35

Found a POW and it did not send the coins to the address I specified it remains on the namecoin wallet that PSJ0.4 is connected to.

Am I missing something?  Is the coins sent after they mature?  But you said it should send them on POW.

If you've got: source.local.1.merged.namecoin.localCoinbasing=true

but haven't applied the getmemorypool patch to namecoind it will fall back to non-coinbasing mode automatically.

either it's set to false (or commented out) or no patch.

I have notices there is no option for parent block chain "localCoinbasing".
is it

source.local.1.localCoinbasing=true

or
source.local.1.localWorkGeneration.localCoinbasing=true

or is the default?

shads (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 254


View Profile
November 09, 2011, 01:26:16 PM
 #36

localWorkGeneration includes coinbasing as part of the process (it has to)... The reason I called aux chains 'coinbasing' is because you don't actually generate work for the aux chains.  You just generate the block.

PoolServerJ Home Page - High performance java mining pool engine

Quote from: Matthew N. Wright
Stop wasting the internet.
DavinciJ15
Hero Member
*****
Offline Offline

Activity: 780
Merit: 510


Bitcoin - helping to end bankster enslavement.


View Profile WWW
November 09, 2011, 01:43:51 PM
 #37

After updated to the newest update PSJ stopped working  I even undid the last change to the settings (localCoinbasing) this is what I get and my miners do not mine anything.
Code:
[13:29:39.117] RETRY
[13:29:39.120] RETRY
[13:29:39.122] Updating donation target address for chain: namecoin Address: NFja75nNRHZYKtN9YQ6wHPQdmhzBEAmTAt
[13:29:39.125] New Block detected [152552] from source: DaemonSource[cs40].bitcoin - 0 lagging sources.
[13:29:39.127] New Block detected [27023] from source: DaemonSource[cs40].namecoin - 0 lagging sources.
[13:29:39.127] Restoring workmap from file: /home/ec2-user/poolserverj-0.4.0rc2/tmp/workmap-8332.bin
[13:29:39.130] Updating donation target address for chain: bitcoin Address: 1Lk8f18EyPB3uAJvgTeHgzCVkKY9njQ5bA
[13:29:39.533] Retrieving worker from database: davincij@gmail.com_dw_1
[13:29:43.878] Exception in Cleaner Thread
java.lang.NullPointerException
        at com.shadworld.poolserver.workmaker.WorkMaker.update(WorkMaker.java:178)
        at com.shadworld.poolserver.source.merged.MergedMiningGroup.updateAuxes(MergedMiningGroup.java:249)
        at com.shadworld.poolserver.Cleaner.run(Cleaner.java:54)
[13:29:48.889] Exception in Cleaner Thread
java.lang.NullPointerException
        at com.shadworld.poolserver.workmaker.WorkMaker.update(WorkMaker.java:178)
        at com.shadworld.poolserver.source.merged.MergedMiningGroup.updateAuxes(MergedMiningGroup.java:249)
        at com.shadworld.poolserver.Cleaner.run(Cleaner.java:54)
[13:29:49.201] 26 shares in 1,320,845,440 seconds. Current hashRate: 0 GH/s
[13:29:49.201] Submit Throttling on: false
[13:29:49.201] Doing database flush for Shares: 26
[13:29:49.257] Flushed 26 shares to DB in 56.0ms (464/sec)
[13:29:53.896] Exception in Cleaner Thread
java.lang.NullPointerException
        at com.shadworld.poolserver.workmaker.WorkMaker.update(WorkMaker.java:178)
        at com.shadworld.poolserver.source.merged.MergedMiningGroup.updateAuxes(MergedMiningGroup.java:249)
        at com.shadworld.poolserver.Cleaner.run(Cleaner.java:54)

NOTE:

Soon as I role back to RC3 everything works fine.
shads (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 254


View Profile
November 09, 2011, 01:49:19 PM
 #38

client hasn't been initialised before workmaker tries to use... Does the message stop after a few seconds?

PoolServerJ Home Page - High performance java mining pool engine

Quote from: Matthew N. Wright
Stop wasting the internet.
DavinciJ15
Hero Member
*****
Offline Offline

Activity: 780
Merit: 510


Bitcoin - helping to end bankster enslavement.


View Profile WWW
November 09, 2011, 02:28:47 PM
 #39

client hasn't been initialised before workmaker tries to use... Does the message stop after a few seconds?

I waited a bit and tried to mine and it would not let me.
shads (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 254


View Profile
November 09, 2011, 02:50:51 PM
 #40

I thought you couldn't run rc3 because of?

Code:
[05:25:51.758] Realm resolved null for key: ms2.nmcbit.com:9098/ Realm: jsonrpc
722 [shared-httpclient-38] WARN org.eclipse.jetty.util.log - Unknown Security Realm: jsonrpc
[05:25:51.758] RETRY
[05:25:51.760] getblocknumber response status: 401 for url: http://ms2.nmcbit.com:8337/

PoolServerJ Home Page - High performance java mining pool engine

Quote from: Matthew N. Wright
Stop wasting the internet.
Pages: « 1 [2] 3 4 5 6 7 »  All
  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!