I DID SOME READING ON THIS--
Apparently the "generate-to" command is part of "Get-Block-Template" (GBT) protocol. Because GBT protocol has been removed from scrypt-mining code, the "generate-to" flag fails when it does not detect a BitCoin address. The answer is in the Readme on JStefanop's GitHub.
I solved my solo-mining difficulties by building and running a simple NOMP-style pool and setting it up for LocalHost. The pool code is deprecated, running it as a public instance may be a security risk.
It works just fine for a single MoonLander 2! My electric lottery ticket is just humming. Less than 0.05% rejects, less than 1% HW errors, and I haven't done anything yet to tune the pots. Currently, the stick is mining at ~3.9MH/s at 700Hz, but HW errors go up dramatically at 720Hz.
Will turning up the Core power by 1/8 turn allow for better performance at 700+Hz? Thanks for your work, JStefanop! --scryptr
I TRIED THE "GENERATE-TO" COMMAND--
While attempting to solo-mine against the latest LiteCoin-qt wallet, I launched the wallet from the command line pointing to "litecoin.conf" file in the LiteCoin-qt directory. After the wallet was synchronized and ready, I launched BFGminer with the command string in your post (below) with the appropriate rpcuser, rpcpassword, and rpcport (9332). The wallet was not disabled, the address was the first one generated by the wallet. I keep getting "invalid address" as an error on miner launch. I tried later with a valid external address for LiteCoin, same result.
I have solo-mined before successfully with various wallets and algorithms. What is going wrong? --scryptr
bfg-miner autoexec.bat:
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_USE_SYNC_OBJECTS 1
bfgminer.exe --scrypt -o http://127.0.0.1:40022 -u user -p password -S MLD:COM4 --set MLD:clock=777
pause
I wouldn't call it autoexec.bat. I would call it
somethingelse.bat and it should look like this:
@bfgminer.exe --scrypt --no-longpoll --generate-to -o http://127.0.0.1:40022 -u user -p password -S MLD:all --set MLD:clock=desiredFREQ
It means you must add
--generate-toAnd forget the GPU params, you are not using a GPU.
and for the altcoin.conf file it looked like this:
rpcuser=user
rpcpassword=password
rpcallowip=127.0.0.1
rpcport=40022
listen=1
daemon=1
server=1
gen=1
syncnode=true
addnode=XX.XXX.XX.XXX
addnode=YY.YYY.YY.YYY
addnode=ZZ.ZZZ.ZZ.ZZZ
...
I wouldn't set gen=1, it activates cpu mining on the altcoin daemon. It also helps if you set
disablewallet=1
it works better.
The issue is bfgminer does not support GBT for scrypt...it does for SHA256. I probably should get around to adding support to it once I find some time, since luke-jr probably wont do it.
You don't need to do anything. The latest version on moonlander github works fine for local mining.