mhssamadani / Autolykos2_NV_Miner

Cuda Miner for Autolykos v2 (Ergo) for Nvidia GPUs
MIT License
28 stars 28 forks source link

Incomplete config: node or seed are not specified #6

Closed CraneCooker closed 3 years ago

CraneCooker commented 3 years ago

I set config.json as : { "node": "http://127.0.0.1:9052" }, then start the miner, but it shows: ERROR [main thread] Incomplete config: node or seed are not specified do I need add a "seed" in the config.json ?

CraneCooker commented 3 years ago

I set the config.json as below then launch the miner : { "seed": "", "node": "http://127.0.0.1:9053", "keepPrehash": false } but the miner keeps showing the same info as below, what happen? 2021-01-24 21:29:34,009 INFO [main thread] Waiting for block data to be published by node... 2021-01-24 21:29:34,025 ERROR [main thread] Some of expected fields not present in /block/candidate 2021-01-24 21:29:34,025 ERROR [main thread] Block data: { "MSG" : "FF73B7B030790591BA5DEE54543BA36F132FCB12E119EDC12571348C9BD8B8C1", "B" : 38631372959920788039535641792206406965033184509028718275260993, "PK" : "03E68625862EBD2B98EDAF80ABCB0C0511A14AC9216EB8CAE05E456DC54E65F334" } 2021-01-24 21:29:34,849 INFO [main thread] Waiting for block data to be published by node... 2021-01-24 21:29:34,861 ERROR [main thread] Some of expected fields not present in /block/candidate 2021-01-24 21:29:34,862 ERROR [main thread] Block data: { "MSG" : "FF73B7B030790591BA5DEE54543BA36F132FCB12E119EDC12571348C9BD8B8C1", "B" : 38631372959920788039535641792206406965033184509028718275260993, "PK" : "03E68625862EBD2B98EDAF80ABCB0C0511A14AC9216EB8CAE05E456DC54E65F334" } 2021-01-24 21:29:35,663 INFO [main thread] Waiting for block data to be published by node... 2021-01-24 21:29:35,675 ERROR [main thread] Some of expected fields not present in /block/candidate 2021-01-24 21:29:35,676 ERROR [main thread] Block data: { "MSG" : "FF73B7B030790591BA5DEE54543BA36F132FCB12E119EDC12571348C9BD8B8C1", "B" : 38631372959920788039535641792206406965033184509028718275260993, "PK" : "03E68625862EBD2B98EDAF80ABCB0C0511A14AC9216EB8CAE05E456DC54E65F334" }

amin63moradi commented 3 years ago

hi CraneCooker, i think that you use an old commit, please get and test the latest commit

CraneCooker commented 3 years ago

I git clone the latest commit: git clone https://github.com/mhssamadani/Autolykos2_NV_Miner.git then compiled a new miner.exe, used below config.json: { "node": "http://127.0.0.1:9053" } and started miner, it shows the same situation.... here is the log: 2021-01-24 22:28:05,196 INFO [main thread] Using 1 GPU devices 2021-01-24 22:28:05,196 INFO [main thread] Using configuration file config0.json 2021-01-24 22:28:05,196 INFO [main thread] Block getting URL: http://127.0.0.1:9053/mining/candidate 2021-01-24 22:28:05,212 INFO [main thread] Solution posting URL: http://127.0.0.1:9053/mining/solution 2021-01-24 22:28:05,212 ERROR [main thread] Some of expected fields not present in /block/candidate 2021-01-24 22:28:05,212 ERROR [main thread] Block data: { "MSG" : "1B743B6A27FBCDFA6FE07CE96CC9741CA53268720E278C4F0B196691F03E46CD", "B" : 38631372959920788039535641792206406965033184509028718275260993, "PK" : "03E68625862EBD2B98EDAF80ABCB0C0511A14AC9216EB8CAE05E456DC54E65F334" } 2021-01-24 22:28:05,305 INFO [GPU 0 miner] GPU 0 allocating memory 2021-01-24 22:28:06,029 INFO [main thread] Waiting for block data to be published by node... 2021-01-24 22:28:06,041 ERROR [main thread] Some of expected fields not present in /block/candidate 2021-01-24 22:28:06,041 ERROR [main thread] Block data: { "MSG" : "1B743B6A27FBCDFA6FE07CE96CC9741CA53268720E278C4F0B196691F03E46CD", "B" : 38631372959920788039535641792206406965033184509028718275260993, "PK" : "03E68625862EBD2B98EDAF80ABCB0C0511A14AC9216EB8CAE05E456DC54E65F334" } 2021-01-24 22:28:06,842 INFO [main thread] Waiting for block data to be published by node... 2021-01-24 22:28:06,853 ERROR [main thread] Some of expected fields not present in /block/candidate 2021-01-24 22:28:06,854 ERROR [main thread] Block data: { "MSG" : "1B743B6A27FBCDFA6FE07CE96CC9741CA53268720E278C4F0B196691F03E46CD", "B" : 38631372959920788039535641792206406965033184509028718275260993, "PK" : "03E68625862EBD2B98EDAF80ABCB0C0511A14AC9216EB8CAE05E456DC54E65F334" } 2021-01-24 22:28:07,668 INFO [main thread] Waiting for block data to be published by node... 2021-01-24 22:28:07,683 ERROR [main thread] Some of expected fields not present in /block/candidate 2021-01-24 22:28:07,683 ERROR [main thread] Block data: { "MSG" : "1B743B6A27FBCDFA6FE07CE96CC9741CA53268720E278C4F0B196691F03E46CD", "B" : 38631372959920788039535641792206406965033184509028718275260993, "PK" : "03E68625862EBD2B98EDAF80ABCB0C0511A14AC9216EB8CAE05E456DC54E65F334" }

CraneCooker commented 3 years ago

I've used the latest commit.. as well as 4.0.0 node. how to set public key ? every time my miner starts, the ergo node error: 00:14:54.835 INFO [ctor.default-dispatcher-9] o.e.mining.ErgoMiner - Generating new candidate requested by external miner [ERROR] [01/25/2021 00:14:54.835] [ergoref-akka.actor.default-dispatcher-9] [akka.actor.ActorSystemImpl(ergoref)] Error during processing of request: 'Candidate could not be generated: no public key available'. Completing with 500 Internal Server Error response. To change default exception handling behavior, provide a custom ExceptionHandler. java.lang.Exception: Candidate could not be generated: no public key available at org.ergoplatform.mining.ErgoMiner.org$ergoplatform$mining$ErgoMiner$$generateCandidate(ErgoMiner.scala:267) at org.ergoplatform.mining.ErgoMiner$$anonfun$mining$1.$anonfun$applyOrElse$7(ErgoMiner.scala:295) at scala.concurrent.Future.$anonfun$flatMap$1(Future.scala:307) at scala.concurrent.impl.Promise.$anonfun$transformWith$1(Promise.scala:41) at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64) at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1429) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)

the ergo node ergo.conf is: ergo { directory = "c:/ergo" node { mining = true useExternalMiner=true } wallet.secretStorage.secretDir = "c:/ergo" } scorex { restApi {

Hex-encoded Blake2b256 hash of an API key.

    # Should be 64-chars long Base16 string.
    # below is the hash of the string 'hello'
    # replace with your actual hash 
    apiKeyHash = "b***58"
}

}

and my miner config.json is: { "seed": "(my mnemonic words)", "node": "http://127.0.0.1:9053", "keepPrehash": false }

the miner seems do not recognize the "seed" and "keepPrehash", see below:

C:\ergo_miner\Autolykos2_NV_Miner\secp256k1>miner.exe config.json 2021-01-25 00:23:18,814 INFO [main thread] Using 1 GPU devices 2021-01-25 00:23:18,814 INFO [main thread] Using configuration file config.json 2021-01-25 00:23:18,814 INFO [main thread] Unrecognized config option, currently valid options are "node" 2021-01-25 00:23:18,814 INFO [main thread] Unrecognized config option, currently valid options are "node" 2021-01-25 00:23:18,814 INFO [main thread] Block getting URL: http://127.0.0.1:9053/mining/candidate 2021-01-25 00:23:18,814 INFO [main thread] Solution posting URL: http://127.0.0.1:9053/mining/solution

if I remove "seed" and "keepPrehash" from config.json(the two field is asked for in ergo, https://github.com/ergoplatform/ergo/wiki/Mining-Ergo-for-Fun-and-Profit, but not here), the ergo node shows the same error, although miner do not show "Unrecognized config option, currently valid options are "node"

mhssamadani commented 3 years ago

This tutorial is not valid in the incoming fork (current miner and node v4): https://github.com/ergoplatform/ergo/wiki/Mining-Ergo-for-Fun-and-Profit Also, in the config file you should only have {"node":"address"} and nothing more. Also, you can only mine on testnet with this miner right now, since the fork is not happened yet.

CraneCooker commented 3 years ago

it's clear, thank you. looking forwards to new update