Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: morris99 on June 12, 2019, 05:44:37 AM



Title: Newbie question: trying to mine test litecoin with minerd but no rewards appear.
Post by: morris99 on June 12, 2019, 05:44:37 AM
I'm new to this and trying to learn how things work.  Now, I'm trying to mine test litecoin using minerd.  I've been trying to follow these instructions (http://bigendian.io/2017/08/07/solo-mining/).  The miner seems to find some test coins, but no reward appears.  I'm probably making some simple newbie mistake, but I don't have any idea.  I'm hoping one of you folks will be able to tell me. 

I'm running on CentOS Linux 7.6.  Software versions:
-bash-4.2$ litecoind -version
Litecoin Core Daemon version v0.17.1rc1
...

-bash-4.2$ litecoin-cli -version
Litecoin Core RPC client version v0.17.1rc1
...

-bash-4.2$ minerd -V     
cpuminer 2.5.0
 built on Mar  3 2019
 features: x86_64 PHE SSE2 AVX AVX2 XOP
libcurl/7.29.0 NSS/3.36 zlib/1.2.7 libidn/1.28 libssh2/1.4.3

So I start the server using testnet.
[litecoin@server ~]$ litecoind -daemon -testnet -datadir=/x/B/litecoin 
Litecoin server starting

I have an address I created earlier with litecoin-cli getnewaddress.
[litecoin@server ~]$  litecoin-cli -testnet -datadir=/x/B/litecoin getaddressesbylabel testaddress
{
  "QWZdEoxj6rfV9rt641YhTY2mzAN5xHfpwm": {
    "purpose": "receive"
  }
}
[litecoin@server ~]$ litecoin-cli -testnet -datadir=/x/B/litecoin getbalance
0.00000000
[litecoin@server ~]$ litecoin-cli -testnet -datadir=/x/B/litecoin listtransactions
[
]

So I run the miner and after a while it finds something.
[litecoin@server ~]$ minerd -a scrypt -o http://127.0.0.1:19332 -u user -p pass -t 2 -D  \
       --no-stratum  --coinbase-addr=QWZdEoxj6rfV9rt641YhTY2mzAN5xHfpwm
[2019-06-08 21:38:24] Binding thread 1 to cpu 1
[2019-06-08 21:38:24] Binding thread 0 to cpu 0
[2019-06-08 21:38:24] 2 miner threads started, using 'scrypt' algorithm.
[2019-06-08 21:38:24] DEBUG: got new work in 2 ms
[2019-06-08 21:38:24] Long-polling activated for http://127.0.0.1:19332
[2019-06-08 21:38:26] thread 1: 4096 hashes, 2.80 khash/s
[2019-06-08 21:38:26] thread 0: 4096 hashes, 2.80 khash/s
...
 After a while
...
[2019-06-08 21:48:24] DEBUG: got new work in 1 ms
[2019-06-08 21:48:24] thread 1: 168072 hashes, 2.79 khash/s
[2019-06-08 21:48:29] DEBUG: hash <= target
Hash:   000001813c036c7be90302461f796e0b84cbd71477ea547d0413886ea3973527
Target: 00000fffff000000000000000000000000000000000000000000000000000000
[2019-06-08 21:48:29] thread 0: 14964 hashes, 2.80 khash/s
[2019-06-08 21:48:29] accepted: 1/1 (100.00%), 5.59 khash/s (yay!!!)
[2019-06-08 21:48:29] LONGPOLL pushed new work
...

But, there's nothing there.  No credit for the find.

[litecoin@server ~]$  litecoin-cli -testnet -datadir=/x/B/litecoin getbalance
0.00000000
[litecoin@server ~]$ litecoin-cli -testnet -datadir=/x/B/litecoin listtransactions
[
]


I'm sure I'm doing some simple thing wrong, but I don't know what, and I don't even know how to look.  I would appreciate a clue, since I don't have one.

Thanks.


Title: Re: Newbie question: trying to mine test litecoin with minerd but no rewards appear.
Post by: adaseb on June 12, 2019, 05:53:23 AM
You seem to be doing it correct, at least the mining part. I am guessing the difficulty is fixed since you actually were able to find a block using a CPU with Scrypt, something that hasn't been possible since 2011.

Make sure you correctly sync'd to the right network. Using http://testnet.litecointools.com/ the block should be over 1106623.

I am thinking that you maybe connected to some old node that isn't sync'd properly. What block header do you have shown?

Any reason why you are doing this? There are some coins you can actually GPU mine these days like XMR and ETH which can make a profit at least. CPU mining LTC is a waste of time right now.


Title: Re: Newbie question: trying to mine test litecoin with minerd but no rewards appear.
Post by: morris99 on June 13, 2019, 06:22:04 AM
At the moment, I'm happy to make most anything work.

Seems to be up-to-date.  Or is this not the relevant info?

[litecoin@server ~]$ litecoin-cli -testnet -datadir=/x/B/litecoin getblockchaininfo
{
  "chain": "test",
  "blocks": 1106796,
  "headers": 1106796,
  "bestblockhash": "6a35062e8167f5b8c7c664131b5e6cb9cffb08c1e9f420b359241a878fe98261",
  "difficulty": 0.0002441371325370145,
  "mediantime": 1560405369,
  "verificationprogress": 0.9999822998084436,
  "initialblockdownload": false,
  "chainwork": "0000000000000000000000000000000000000000000000000035e957779ffa95",
  "size_on_disk": 1881593124,
  "pruned": false,
  "softforks": [
    {
      "id": "bip34",
      "version": 2,
      "reject": {
        "status": true
      }
    },
    {
      "id": "bip66",
      "version": 3,
      "reject": {
        "status": true
      }
    },
    {
      "id": "bip65",
      "version": 4,
      "reject": {
        "status": true
      }
    }
  ],
  "bip9_softforks": {
    "csv": {
      "status": "active",
      "startTime": 1483228800,
      "timeout": 1517356801,
      "since": 6048
    },
    "segwit": {
      "status": "active",
      "startTime": 1483228800,
      "timeout": 1517356801,
      "since": 6048
    }
  },
  "warnings": ""
}



Title: Re: Newbie question: trying to mine test litecoin with minerd but no rewards appear.
Post by: adaseb on June 13, 2019, 06:48:30 AM
It seems correct with the block number and all. What is the next line in

[2019-06-08 21:48:29] LONGPOLL pushed new work

Did the block actually get sent to the network? Or was it blocked by some firewall somewhere? Because in the next second some new work should of been posted since you found the block.

You can check which block you found and then find out with that block where the coins were sent, and see if the address belongs to you.


Title: Re: Newbie question: trying to mine test litecoin with minerd but no rewards appear.
Post by: morris99 on June 14, 2019, 04:19:32 AM
I don't think I know how to see what block I found.  The block number won't be the same as the hash, I guess, and it doesn't seem to be printed by the miner here.