Author

Topic: Trying to create an altcoin (Read 207 times)

legendary
Activity: 1512
Merit: 7340
Farewell, Leo
September 25, 2020, 07:35:26 AM
#6
After a lot of hours trying to make it work, I'm right here:



As you can see I'm facing a problem when I try to use my altcoin. First of all I've compiled the litecoin's source code (with my genesis block, seeds and ports) and then after watching this video I tried to add my local ipv4 as an active connection on my mainnet. Although, I have 0 connections.

This is my metalcoin.conf:
Code:
addnode=192.168.2.9
server=1
daemon=1
listen=1
rpcuser=user
rpcpassword=password
rpcport=2332
rpcallowip=127.0.0.1

I try to addnode with the console but it says that I've already added (for both 127.0.0.1 and 192.168.2.9). Still, no connections.


It is weird how I'm successfully making a connection but then I disconnect. At least this is what my debug.log says:
https://pastebin.com/raw/LPunuZaC

Does anyone have any ideas? Also, I have another question, do I have to open port 2332/2333 in order to be a node? There are no videos that say I have to. I'm really giving away my merits to a person that will help me complete this. I just want to feel how was mining back in 2010.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
August 21, 2020, 03:34:01 AM
#5
Impossible to tell from that screenshot... What have you already tried to confirm whether it is working or not?

You'd need to check what your CPU load is, and whether or not the number of blocks in your blockchain are increasing etc...

It's possible that it's mining, but you don't see new blocks because the difficulty is too high for a CPU to mine "successfully"... it's also possible that modifications you have made have not been successful and that it isn't doing anything.

I've set difficulty = 0.002
When I write getblockcount I get 0.
It is a new coin, I've done it. The problem is that I don't know how to begin mining.
HCP
legendary
Activity: 2086
Merit: 4361
August 21, 2020, 02:03:55 AM
#4
Impossible to tell from that screenshot... What have you already tried to confirm whether it is working or not?

You'd need to check what your CPU load is, and whether or not the number of blocks in your blockchain are increasing etc...

It's possible that it's mining, but you don't see new blocks because the difficulty is too high for a CPU to mine "successfully"... it's also possible that modifications you have made have not been successful and that it isn't doing anything.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
August 20, 2020, 01:22:17 PM
#3
Thanks for your response.

So I saw that tutorial: https://www.youtube.com/watch?v=89R8hx-eAgA and I made my own altcoin called "Mitcoin".

The files are from litecoin.



I set generate to true, is it mining right now?
HCP
legendary
Activity: 2086
Merit: 4361
August 19, 2020, 04:43:50 PM
#2
Now before I try that I would like to clarify something and tell me if I'm wrong. Bitcoin network "doesn't" exist. There are just some people running full nodes with some ip addresses and a port that share with other full nodes. When you install bitcoin core you have some default nodes that you follow (I think they're written on a txt file).
No, they're hardcoded in the code, specifically in chainparams.cpp... they're the "DNS Seeds":
Code: (https://github.com/bitcoin/bitcoin/blob/master/src/chainparams.cpp#L116-L124)
        vSeeds.emplace_back("seed.bitcoin.sipa.be"); // Pieter Wuille, only supports x1, x5, x9, and xd
        vSeeds.emplace_back("dnsseed.bluematt.me"); // Matt Corallo, only supports x9
        vSeeds.emplace_back("dnsseed.bitcoin.dashjr.org"); // Luke Dashjr
        vSeeds.emplace_back("seed.bitcoinstats.com"); // Christian Decker, supports x1 - xf
        vSeeds.emplace_back("seed.bitcoin.jonasschnelli.ch"); // Jonas Schnelli, only supports x1, x5, x9, and xd
        vSeeds.emplace_back("seed.btc.petertodd.org"); // Peter Todd, only supports x1, x5, x9, and xd
        vSeeds.emplace_back("seed.bitcoin.sprovoost.nl"); // Sjors Provoost
        vSeeds.emplace_back("dnsseed.emzy.de"); // Stephan Oeste
        vSeeds.emplace_back("seed.bitcoin.wiz.biz"); // Jason Maurice
These are what a node will attempt to connect to when they have no known peers... and they'll redirect the node to peers to try and connect to.


Quote
If I remove that txt file and change the ports (plus some changes on the difficulty because it's too high) then everyone that will download my altcoin core will have a different blockchain to mine right? (satoshi's genesis block will remain, and I really don't care for that)
You can't just remove that file... you'd need to modify the source code to use your own DNS Seeds... if you just removed them from the source code, chances are that you'll face issues with other parts of the code that relies on them being populated with something meaningful.

If you don't have any "DNS seeds", then anyone that would attempt to use your altcoin, would not be able to connect to the altcoin network unless they already knew the IP address/port# for a node already on the altcoin network. So they wouldn't receive any block or transaction information... and you would effectively have no network...


Finally, I'd suggest you ask your questions regarding that guide... in the thread for that guide! Wink
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
August 19, 2020, 03:05:53 PM
#1
Until now I was facing some problems on compiling bitcoin core on that thread.

Now that I've successfully build it I have some questions about the second part, which is creating an altcoin.
This is a guide that explains how to create one: https://bitcointalksearch.org/topic/complete-guide-on-how-to-create-a-new-alt-coin-update-2018-3345808

Now before I try that I would like to clarify something and tell me if I'm wrong. Bitcoin network "doesn't" exist. There are just some people running full nodes with some ip addresses and a port that share with other full nodes. When you install bitcoin core you have some default nodes that you follow (I think they're written on a txt file).

If I remove that txt file and change the ports (plus some changes on the difficulty because it's too high) then everyone that will download my altcoin core will have a different blockchain to mine right? (satoshi's genesis block will remain, and I really don't care for that)
Jump to: