Aloora riassumiamo e ripartiamo da quì
collegamento a f2pool con file di avvio.bat così:
java -jar stratum-proxy.jar -f test.conf
usando un file di cong così:
{
"pools" : [ {
"host" : "stratum.f2pool.com:3333",
"user" : "paolo1965.boio"
} ]
}
lanciato ricevo questo:
C:\Users\Paolo\Desktop\STRATUM PROXY WINDOWS6.0 FUNZIONANTE\stratum-proxy-0.6.0>java -jar stratum-proxy.jar -f test.conf
Log directory not set. Use the tmp OS directory.
Use log directory C:\Users\Paolo\AppData\Local\Temp
2015-03-07 14:00:17,827 INFO [main]:strat.mining.stratum.proxy.configuration.ConfigurationManager - Using INFO LogLevel.
2015-03-07 14:00:17,827 INFO [main]:strat.mining.stratum.proxy.configuration.ConfigurationManager - API log level not set. API logging disabled.
2015-03-07 14:00:17,843 INFO [main]:strat.mining.stratum.proxy.configuration.ConfigurationManager - Database directory not specified. Using default one: C:\Users\Paolo\Desktop\STRATUM PROXY WINDOWS6.0
FUNZIONANTE\stratum-proxy-0.6.0\database.
2015-03-07 14:00:17,843 INFO [main]:strat.mining.stratum.proxy.database.DatabaseManager - Starting DatabaseManager...
2015-03-07 14:00:18,108 INFO [main]:strat.mining.stratum.proxy.database.DatabaseManager - DatabaseManager started.
2015-03-07 14:00:18,108 INFO [main]:strat.mining.stratum.proxy.Launcher - Using pools: [Pool [name=stratum.f2pool.com:3333, host=stratum.f2pool.com:3333, username=paolo1965.boio, password=x, readySince
=null, isReady=false, isEnabled=true, isStable=false, priority=0, weight=1]].
2015-03-07 14:00:19,137 INFO [main]:strat.mining.stratum.proxy.manager.ProxyManager - ServerSocket opened on /0.0.0.0:3333.
mar 07, 2015 2:00:19 PM org.glassfish.grizzly.http.server.NetworkListener start
INFORMAZIONI: Started listener bound to [0.0.0.0:8332]
mar 07, 2015 2:00:19 PM org.glassfish.grizzly.http.server.HttpServer start
INFORMAZIONI: [HttpServer] Started.
mar 07, 2015 2:00:20 PM org.glassfish.grizzly.http.server.NetworkListener start
INFORMAZIONI: Started listener bound to [0.0.0.0:8888]
mar 07, 2015 2:00:20 PM org.glassfish.grizzly.http.server.HttpServer start
INFORMAZIONI: [HttpServer-1] Started.
2015-03-07 14:00:22,289 INFO [Pool-stratum.f2pool.com:3333-Thread]:strat.mining.stratum.proxy.pool.Pool - Pool stratum.f2pool.com:3333 started
2015-03-07 14:00:22,289 WARN [Pool-stratum.f2pool.com:3333-Thread]:strat.mining.stratum.proxy.manager.ProxyManager - Pool stratum.f2pool.com:3333 is STABLE.
2015-03-07 14:00:22,289 WARN [Pool-stratum.f2pool.com:3333-Thread]:strat.mining.stratum.proxy.manager.ProxyManager - Pool stratum.f2pool.com:3333 is UP.
2015-03-07 14:00:22,289 INFO [Pool-stratum.f2pool.com:3333-Thread]:strat.mining.stratum.proxy.manager.ProxyManager - Set difficulty 2048.0 on pool stratum.f2pool.com:3333.
2015-03-07 14:00:22,289 INFO [Pool-stratum.f2pool.com:3333-Thread]:strat.mining.stratum.proxy.manager.ProxyManager - New block detected on pool stratum.f2pool.com:3333.
di defaul dovrei collegare il mine (antminer S3) alla porta 8332 inserendo nello spazio del miner dove mettrei "stratum.f2pool.com:3333" l'ip del proxy:8332 ossia 192.168.1.130:8332 mettendo sulla sezione user e password qualsiasi cosa
io ho messo X come user e X come password
ricevo questo:
C:\Users\Paolo\Desktop\STRATUM PROXY WINDOWS6.0 FUNZIONANTE\stratum-proxy-0.6.0>java -jar stratum-proxy.jar -f test.conf
Log directory not set. Use the tmp OS directory.
Use log directory C:\Users\Paolo\AppData\Local\Temp
2015-03-07 14:00:17,827 INFO [main]:strat.mining.stratum.proxy.configuration.ConfigurationManager - Using INFO LogLevel.
2015-03-07 14:00:17,827 INFO [main]:strat.mining.stratum.proxy.configuration.ConfigurationManager - API log level not set. API logging disabled.
2015-03-07 14:00:17,843 INFO [main]:strat.mining.stratum.proxy.configuration.ConfigurationManager - Database directory not specified. Using default one: C:\Users\Paolo\Desktop\STRATUM PROXY WINDOWS6.0
FUNZIONANTE\stratum-proxy-0.6.0\database.
2015-03-07 14:00:17,843 INFO [main]:strat.mining.stratum.proxy.database.DatabaseManager - Starting DatabaseManager...
2015-03-07 14:00:18,108 INFO [main]:strat.mining.stratum.proxy.database.DatabaseManager - DatabaseManager started.
2015-03-07 14:00:18,108 INFO [main]:strat.mining.stratum.proxy.Launcher - Using pools: [Pool [name=stratum.f2pool.com:3333, host=stratum.f2pool.com:3333, username=paolo1965.boio, password=x, readySince
=null, isReady=false, isEnabled=true, isStable=false, priority=0, weight=1]].
2015-03-07 14:00:19,137 INFO [main]:strat.mining.stratum.proxy.manager.ProxyManager - ServerSocket opened on /0.0.0.0:3333.
mar 07, 2015 2:00:19 PM org.glassfish.grizzly.http.server.NetworkListener start
INFORMAZIONI: Started listener bound to [0.0.0.0:8332]
mar 07, 2015 2:00:19 PM org.glassfish.grizzly.http.server.HttpServer start
INFORMAZIONI: [HttpServer] Started.
mar 07, 2015 2:00:20 PM org.glassfish.grizzly.http.server.NetworkListener start
INFORMAZIONI: Started listener bound to [0.0.0.0:8888]
mar 07, 2015 2:00:20 PM org.glassfish.grizzly.http.server.HttpServer start
INFORMAZIONI: [HttpServer-1] Started.
2015-03-07 14:00:22,289 INFO [Pool-stratum.f2pool.com:3333-Thread]:strat.mining.stratum.proxy.pool.Pool - Pool stratum.f2pool.com:3333 started
2015-03-07 14:00:22,289 WARN [Pool-stratum.f2pool.com:3333-Thread]:strat.mining.stratum.proxy.manager.ProxyManager - Pool stratum.f2pool.com:3333 is STABLE.
2015-03-07 14:00:22,289 WARN [Pool-stratum.f2pool.com:3333-Thread]:strat.mining.stratum.proxy.manager.ProxyManager - Pool stratum.f2pool.com:3333 is UP.
2015-03-07 14:00:22,289 INFO [Pool-stratum.f2pool.com:3333-Thread]:strat.mining.stratum.proxy.manager.ProxyManager - Set difficulty 2048.0 on pool stratum.f2pool.com:3333.
2015-03-07 14:00:22,289 INFO [Pool-stratum.f2pool.com:3333-Thread]:strat.mining.stratum.proxy.manager.ProxyManager - New block detected on pool stratum.f2pool.com:3333.
2015-03-07 14:02:20,725 INFO [Pool-stratum.f2pool.com:3333-Thread]:strat.mining.stratum.proxy.manager.ProxyManager - Set difficulty 1024.0 on pool stratum.f2pool.com:3333.
2015-03-07 14:02:48,150 INFO [Pool-stratum.f2pool.com:3333-Thread]:strat.mining.stratum.proxy.manager.ProxyManager - Set difficulty 512.0 on pool stratum.f2pool.com:3333.
2015-03-07 14:02:57,261 INFO [Pool-stratum.f2pool.com:3333-Thread]:strat.mining.stratum.proxy.manager.ProxyManager - New block detected on pool stratum.f2pool.com:3333.
2015-03-07 14:04:01,440 INFO [Pool-stratum.f2pool.com:3333-Thread]:strat.mining.stratum.proxy.manager.ProxyManager - New block detected on pool stratum.f2pool.com:3333.
2015-03-07 14:05:59,505 INFO [Grizzly-worker(3)]:strat.mining.stratum.proxy.manager.ProxyManager - New WorkerConnection Getwork-/192.168.1.53 subscribed. 1 connections active on pool stratum.f2pool.com
:3333.
2015-03-07 14:05:59,513 ERROR [Grizzly-worker(3)]:strat.mining.stratum.proxy.worker.GetworkRequestHandler - Unsupported request content from 192.168.1.53: {"id": 0, "method": "getblocktemplate", "params
": [{"capabilities": ["coinbasetxn", "workid", "coinbase/append"]}]}
com.fasterxml.jackson.databind.JsonMappingException: java.util.LinkedHashMap cannot be cast to java.lang.String (through reference chain: strat.mining.stratum.proxy.json.GetworkRequest["params"])
at com.fasterxml.jackson.databind.deser.SettableBeanProperty._throwAsIOE(SettableBeanProperty.java:567)
at com.fasterxml.jackson.databind.deser.SettableBeanProperty._throwAsIOE(SettableBeanProperty.java:551)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:99)
at com.fasterxml.jackson.databind.deser.impl.BeanPropertyMap.findDeserializeAndSet(BeanPropertyMap.java:285)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:248)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:136)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3560)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2576)
at strat.mining.stratum.proxy.worker.GetworkRequestHandler.service(GetworkRequestHandler.java:99)
at org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:219)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to java.lang.String
at strat.mining.stratum.proxy.json.GetworkRequest.setParams(GetworkRequest.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:97)
... 10 more
2015-03-07 14:06:05,480 ERROR [Grizzly-worker(6)]:strat.mining.stratum.proxy.worker.GetworkRequestHandler - Unsupported request content from 192.168.1.53: {"id": 0, "method": "getblocktemplate", "params
": [{"capabilities": ["coinbasetxn", "workid", "coinbase/append"]}]}
com.fasterxml.jackson.databind.JsonMappingException: java.util.LinkedHashMap cannot be cast to java.lang.String (through reference chain: strat.mining.stratum.proxy.json.GetworkRequest["params"])
at com.fasterxml.jackson.databind.deser.SettableBeanProperty._throwAsIOE(SettableBeanProperty.java:567)
at com.fasterxml.jackson.databind.deser.SettableBeanProperty._throwAsIOE(SettableBeanProperty.java:551)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:99)
at com.fasterxml.jackson.databind.deser.impl.BeanPropertyMap.findDeserializeAndSet(BeanPropertyMap.java:285)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:248)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:136)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3560)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2576)
at strat.mining.stratum.proxy.worker.GetworkRequestHandler.service(GetworkRequestHandler.java:99)
at org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:219)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to java.lang.String
at strat.mining.stratum.proxy.json.GetworkRequest.setParams(GetworkRequest.java:61)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:97)
... 10 more