I forked the BlackCoin source, changed the ports, generated the genesis block, merkle, blah blah blah. I set up a node on a DigitalOcean server and compiled my coin daemon there as well as on my local machine. They two coin daemons recognize each other, I put the addnode into the conf file, also put in rpcuser, rpcpassword, and rpcport into each conf file.
My coin-qt program on my local machine recognizes that it has 1 connection to the network, but for some reason will not stop syncing, even though only the genesis block has been created. It still says out of sync. My server daemon is still syncing too.
When I call getwork, they both return values. Here is what is returned:
{
"midstate" : "79f67436791f93f3eadc9926a8578baddfe15eebe894a6a59ba11fdfb889cef3",
"data" : "00000006edc7bd4e9e7c221bfcc052f25c28c6483d77e1c04ddce735d5a04ba000000ff977168febeac231c7109f85dc43cd9461b7763f9057bb3983622ff0986885b7d9539a6a001e0fffff00000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000",
"hash1" : "00000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000010000",
"target" : "000000000000000000000000000000000000000000000000000000ffff0f0000"
}
If I try to call minerd and point them either to the local wallet or the node, like so:
./minerd --url=http://127.0.0.1:14632 -u user -p password
or
./minerd --url={My Node IP}:14632 -u username -p mypassword
it gives me an error!
Specifically:
for the local client:
Unrecognized block version: 6
json_rpc_call failed, retry after 30 seconds
and the node:
HTTP request failed; connect() timed out!
json_rpc_call failed, retry after 30 seconds
Any ideas? I am very close and would like to figure this out!
EDIT--
I went into main.h and changed the value of static const int CURRENT_VERSION
from 6 to 1. This seems to have fixed the json problem. As far as the server, I simply had forgotten to open the rpc port and not just the port.
However, my client *coin-qt program continually says 'out of sync' and just says 'catching up. downloaded 0 blocks of transaction history. last block was 2 days ago.' That is the genesis block.
Since BlackCoin uses standard scrypt algorithm, I think minerd should be able to mine this coin. It seems to work alright but I get all 'boos' when mining.
This is the output on my laptop:
@crypto:~$ minerd -a scrypt --url=http://{{node ip}}:14632 -u user -p {{somepass}} --coinbase-addr={{address}} [2014-06-13 12:43:11]
[2014-06-13 12:43:11] Binding thread 0 to cpu 0
[2014-06-13 12:43:11] 2 miner threads started, using 'scrypt' algorithm.
[2014-06-13 12:43:11] Binding thread 1 to cpu 1
[2014-06-13 12:43:12] thread 0: 4104 hashes, 4.76 khash/s
[2014-06-13 12:43:12] thread 1: 4104 hashes, 4.52 khash/s
...
[2014-06-13 12:45:58] thread 1: 756 hashes, 4.60 khash/s
[2014-06-13 12:45:58] accepted: 0/1 (0.00%), 9.33 khash/s (booooo)
[2014-06-13 12:46:02] thread 1: 18408 hashes, 4.71 khash/s
I don't understand why it isn't accepting anything. This coin uses scrypt, the same as BlackCoin. Any ideas?