Author

Topic: First node for my own altcoin doesn't work. (Read 102 times)

legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
October 09, 2021, 04:48:22 AM
#2
Even advanced Bitcoiner can't help you if you don't provide information, such as
1. Which version of Bitcoin Core did you fork?
2. What changes you made? Showing link to source code might be helpful.
3. Message on debug.log file.
newbie
Activity: 2
Merit: 0
October 08, 2021, 12:42:46 PM
#1
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
Code:
./sircoind
.

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
Code:
./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
Code:
./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
Code:
./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:
Code:
2021-10-08 19:21:00 HTTP request failed: The requested URL returned error: 500 Internal Server Error
If I run
Code:
./sircoin-cli -rpcport=9332 -rpcuser=username -rpcpassword=passwd getpeerinfo
I just get
Code:
[]

However, I then tried running the ./sircoincli command right after I started the second node, and got
Code:
[
  {
    "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 Grin
Jump to: