<p>I was developing an altcoin using bitcoin v 0.17. I am using CPU miner for mining purposes.
I started the miner using this command:</p>

<pre><code>./minerd -a sha256d -o http://localhost:19230 -O adreno:adreno@123 --coinbase-addr=2NDMNtJB4wR2mEkDpFiqSr7yzuYAzT7dpDZ -D --protocol-dump
</code></pre>

<p>I got this response</p>

<pre><code>[2018-10-30 22:18:47] JSON protocol request:
{"method": "getblocktemplate", "params": [{"capabilities": ["coinbasetxn", "coinbasevalue", "longpoll", "workid"], "rules": ["segwit"]}], "id":0}


* Rebuilt URL to: http://localhost:19230/
[2018-10-30 22:18:47] Binding thread 1 to cpu 1
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 19230 (#0)
* Server auth using Basic with user 'adreno'
&gt; POST / HTTP/1.1
Host: localhost:19230
Authorization: Basic YWRyZW5vOmFkcmVub0AxMjM=
Accept-Encoding: deflate, gzip
Content-Type: application/json
Content-Length: 147
User-Agent: cpuminer/2.5.0
X-Mining-Extensions: midstate

* The requested URL returned error: 500 Internal Server Error
* stopped the pause stream!
* Closing connection 0
[2018-10-30 22:18:47] HTTP request failed: The requested URL returned error: 500 Internal Server Error
</code></pre>

<p>When I directly hit the RPC server with a <code>getblocktemplate</code> request, I get this response </p>

<pre><code>{"result":null,"error":{"code":-10,"message":"Adreno is downloading blocks..."},"id":"1"}
</code></pre>

CC BY-SA 4.0
2018-10-31T15:25:33.410Z
This is a good start for your answer, but could you please add a phrase or two to explain what your question is, or what you're asking for help with?
Murch
CC BY-SA 4.0
2018-10-31T15:35:48.107Z
I can't able to generate genesis block
Ajit Soman
CC BY-SA 4.0
2018-10-31T15:39:36.027Z
There are a number of questions about creating a genesis block for a new altcoin: E.g. https://bitcoin.stackexchange.com/q/21303/5406. Try checking the tags [tag:altcoin-development] and [tag:genesis-block]. Please update your question here to more clearly specify your question.
Murch
CC BY-SA 4.0
2018-10-31T17:33:48.907Z
I have tried the solution `gen=1` and other CPU miner suggested in other Stackoverflow link. But it does not work .
Ajit Soman
<json-rpc><altcoin><miner-configuration><getblocktemplate>
CPU Miner return Internal Server Error for getblocktemplate request
Ajit Soman
# CPU Miner return Internal Server Error for getblocktemplate request

(Asked by: username_0 on 2018-10-30)

I was developing an altcoin using bitcoin v 0.17. I am using CPU miner for mining purposes.
I started the miner using this command:

```
./minerd -a sha256d -o http://localhost:19230 -O adreno:adreno@123 --coinbase-addr=2NDMNtJB4wR2mEkDpFiqSr7yzuYAzT7dpDZ -D --protocol-dump

```

I got this response

```
[2018-10-30 22:18:47] JSON protocol request:
{"method": "getblocktemplate", "params": [{"capabilities": ["coinbasetxn", "coinbasevalue", "longpoll", "workid"], "rules": ["segwit"]}], "id":0}

* Rebuilt URL to: http://localhost:19230/
[2018-10-30 22:18:47] Binding thread 1 to cpu 1
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 19230 (#0)
* Server auth using Basic with user 'adreno'
> POST / HTTP/1.1
Host: localhost:19230
Authorization: Basic YWRyZW5vOmFkcmVub0AxMjM=
Accept-Encoding: deflate, gzip
Content-Type: application/json
Content-Length: 147
User-Agent: cpuminer/2.5.0
X-Mining-Extensions: midstate

* The requested URL returned error: 500 Internal Server Error
* stopped the pause stream!
* Closing connection 0
[2018-10-30 22:18:47] HTTP request failed: The requested URL returned error: 500 Internal Server Error

```

When I directly hit the RPC server with a `getblocktemplate` request, I get this response

```
{"result":null,"error":{"code":-10,"message":"Adreno is downloading blocks..."},"id":"1"}

```

**Tags:** json-rpc, altcoin, miner-configuration, getblocktemplate

> **Comments:**
> **username_1**: This is a good start for your answer, but could you please add a phrase or two to explain what your question is, or what you're asking for help with?  
> **username_0**: I can't able to generate genesis block  
> **username_1**: There are a number of questions about creating a genesis block for a new altcoin: E.g. https://bitcoin.stackexchange.com/q/21303/5406. Try checking the tags [tag:altcoin-development] and [tag:genesis-block]. Please update your question here to more clearly specify your question.  
> **username_0**: I have tried the solution `gen=1` and other CPU miner suggested in other Stackoverflow link. But it does not work .  

---

## 0 answers

