Hi there, advanced Bitcoin users, who hopefully know the answer to my problem,
So, I'm creating my own altcoin, called Sircoin. The project compiled fine, and I don't get any errors when running
.
Now, I'm trying to start mining some blocks just to test, however it doesn't work. I'm running the first sircoind instance with
./sircoind -datadir=$HOME/sircoin1 -port=8963 -rpcport=8962 -debug=rpc -dns=0 -dnsseed=0 -server=1 -rpcbind=0.0.0.0 -rpcuser=username -rpcpassword=passwd -rpcallowip=127.0.0.1 -rpcallowip=0.0.0.0/0 -listen=1
and the second one with
./sircoind -datadir=$HOME/sircoin2 -addnode=127.0.0.1:8962 -port=9333 -rpcport=9332 -debug=rpc -dns=0 -dnsseed=0 -connect=0 -listen=1 -maxtipage=$((24*60*60*5000)) -rpcuser=username -rpcpassword=passwd -server=1 -rpcbind=0.0.0.0 -rpcallowip=127.0.0.1 -rpcallowip=0.0.0.0/0
Then I ran
Poolers' cpuminer with
./minerd --user username --pass passwd --url http://127.0.0.1:9332 --threads 4 --coinbase-addr MUE6KFbKi1VUfvJAa1UTC7NkDNxoH2xppe -a scrypt -D --no-longpoll --no-getwork --no-stratum
(I already generated that address before).
But when running cpuminer, I get an error:
2021-10-08 19:21:00 HTTP request failed: The requested URL returned error: 500 Internal Server Error
If I run
./sircoin-cli -rpcport=9332 -rpcuser=username -rpcpassword=passwd getpeerinfo
I just get
However, I then tried running the ./sircoincli command right after I started the second node, and got
[
{
"id": 0,
"addr": "127.0.0.1:8962",
"addrbind": "127.0.0.1:47790",
"services": "0000000000000000",
"relaytxes": false,
"lastsend": 1633713167,
"lastrecv": 0,
"bytessent": 129,
"bytesrecv": 0,
"conntime": 1633713167,
"timeoffset": 0,
"version": 0,
"subver": "",
"inbound": false,
"addnode": true,
"startingheight": -1,
"banscore": 0,
"synced_headers": -1,
"synced_blocks": -1,
"inflight": [
],
"whitelisted": false,
"minfeefilter": 0.00000000,
"bytessent_per_msg": {
"version": 129
},
"bytesrecv_per_msg": {
}
}
]
, so it just connects and then disconnects.
Can anyone please help me with this problem?
Thanks in advance!
PS: I'm sorry if I'm in the wrong category, this is my first post here