Author

Topic: Altcoin nodes are not syncing up (Read 141 times)

full member
Activity: 585
Merit: 110
November 27, 2019, 02:13:41 AM
#2
in your vps
blocks shows 0
so the blockchain is not in sync
use addnode to enter more nodes specifically your local machine where the blockchain is in the latest
newbie
Activity: 1
Merit: 0
November 26, 2019, 02:54:22 PM
#1
Hello everyone, I am trying to learn about blockchain and setup my own crypto currency by forking an existing coin. For this end I have follow this tutorials:

https://bitcointalksearch.org/topic/complete-guide-on-how-to-create-a-new-alt-coin-update-2018-3345808

https://www.hackster.io/pjdecarlo/how-to-make-a-cryptocurrency-using-litecoin-v0-15-source-fb5e82#toc-prerequisites-2

I have successfully compiled my modified version on my local machine, a VM and two vps instances, all of them run and are able to connect to each other. (that is using altcoin-cli getpeerinfo)

I am also able to run altcoin-cli generate to mine some coins and they appear locally on the machines, I also compiled the qt wallet so that I can send coins to other addresses.

the problem is that the nodes dont seem to be syncing with each other. that is that while I can mine on both my machine and the VM when I send coins from one to another one address, the transaction gets confirmed but I can't see the balance being received on the other machine.

more over, when running getblockchaininfo on the two vps running this is the result:

{
  "chain": "main",
  "blocks": 0,
  "headers": 0,
  "bestblockhash": "5360fa6628981f8e9b3bac365534eb0db8476269031c52a268f53e585bcd230d",
  "difficulty": 0.000244140625,
  "mediantime": 1574373070,
  "verificationprogress": 1,
  "chainwork": "0000000000000000000000000000000000000000000000000000000000100010",
  "pruned": false,
  "softforks": [
    {
      "id": "bip34",
      "version": 2,
      "reject": {
        "status": false
      }
    },
    {
      "id": "bip66",
      "version": 3,
      "reject": {
        "status": false
      }
    },
    {
      "id": "bip65",
      "version": 4,
      "reject": {
        "status": false
      }
    }
  ],
  "bip9_softforks": {
    "csv": {
      "status": "defined",
      "startTime": 1485561600,
      "timeout": 1517356801,
      "since": 0
    },
    "segwit": {
      "status": "defined",
      "startTime": 1485561600,
      "timeout": 1517356801,
      "since": 0
    }
  }
}

this is my .conf file:

addnode=ec2-15-222-14-177.ca-central-1.compute.amazonaws.com:9352

listen=1
server=1

rpcuser=user
rpcpassword=123456789

rpctimeout=30


rpcallowip=127.0.0.1


gen=1


4way=1


paytxfee=0.001



I have searched online to get an idea of the inner workings of litecoin, but Cant see why i would not work, thank you for any help you can provide.
Jump to: