Bitcoin Forum
May 25, 2024, 10:22:02 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Created a ALTCOIN with Bitcoin source code 17.0.2  (Read 158 times)
Frasz (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
July 16, 2022, 10:05:29 PM
 #1

Hello all,

I am new to this forum. I would like to introduce myself as Frasz. English is not my native language but I will do my best.
Sorry if the topic is not in the correct path if so please move the topic to the correct one.

I wanted to make a altcoin from the bitcoin source code and was able to do so with all kinds of information on the internet.
I made a coin named bitmunt I know it sounds corny as it means bitcoin in my native language Dutch.

The coin itself did not show any errors after compiling and after lot of trial/error I was able to create a new blockchain with the source code.

Since it was for fun I didn't change much and left the 21 milion coins as the original Bitcoin.

I used version 17.0.2 of the bitcoin core source code from Github and made all the changes in linux 16.04 and migrated the source code to 18.04.

Today I hooked my virtual machine and created a clone (bridged) and did the basic changes in bitmunt.conf
Since I am using a 17.02 version of bitcoin core I was unable to mine with setgenerate. This seems to have been removed for some reason.

I tried setgenerate 1 but it stopped so I made a script called mine.sh and was able to mine on both instance in the virtual machine.
As of right now I have 2 blocks mined. The difficulty is set to 1.

I have a question: is it normal that it mines the blocks in 30 min instead of the 10 min it should be ? I set it as the original bitcoin not much was changed since it was just to test if I was able to recreate my own crypto Altcoin of the legendary Satoshi Nakamoto.

I am of course not able to post anything on here as a new member with pictures as much as I wished I could.

When I do a ./bitmunt-cli getmininginfo I see the following:
{

"blocks":2,
"currentblockweight": 4000,
"currentblocktx": 0,
"difficulty": 1,
"networkhashps": 567.2190108964646,
"pooledtx": 0,
"chain": "main",
"warnings": ""

}

Also I wonder since I made a script called mining.sh it shows me that it is mining with the following below until it finds a block.

]
[
]
[
]
[
This continious until it finds a block.

CPU is AMD and usage is around 70% and I have 30 gb ram on the laptop.
Is it normal for the coin to find a block every 30 minutes with a difficulty of 1?

Thank you for reading any feedback is appreciated.
Salamande
Jr. Member
*
Offline Offline

Activity: 70
Merit: 4


View Profile
July 17, 2022, 01:27:22 AM
 #2

Maybe try to put more cpu power at it (do you have another spare PC?). Probably the difficulty is a tad high for the total hash power. I am not sure if it could retarget difficulty to lower than 1, I think not.
adaseb
Legendary
*
Offline Offline

Activity: 3766
Merit: 1718



View Profile
July 17, 2022, 02:52:10 AM
 #3

Since you found a block it means it’s working. Unless you changed anything from the Bitcoin mining specs, the mining block target is 10 minutes.

Which means the average over a long line of blocks should be 10 minutes averaged out. Assuming same CPU speed and you are the only one mining. But there is variance, sometimes it can take 1 minute to find the block and other times it can take 100 minutes. Even Bitcoin is like this sometimes. So 30 minutes is normal.

JayDDee
Full Member
***
Offline Offline

Activity: 1397
Merit: 221


View Profile
July 17, 2022, 06:51:39 AM
 #4

Bitcoin removed the built in miner long ago. You can mine with an external CPU miner, a GPU miner, or an ASIC miner
on your private blockchain. For BTC you need an ASIC.

The target difficulty will change depending on the rate blocks are found, but it takes a long time at low hash rate.
1 is probably the default starting difficulty and it hasn't retargeted yet. The 10 minute block time isn't really the issue,
it's how long it will take to find the number of blocks required before retargeting occurs. You could change the parameters
to better suit your mining power.

Frasz (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
July 22, 2022, 09:30:15 PM
 #5

Maybe try to put more cpu power at it (do you have another spare PC?). Probably the difficulty is a tad high for the total hash power. I am not sure if it could retarget difficulty to lower than 1, I think not.


Currently 71% in use mining on both virtualmachines with around +- 2.62 GHz.
I think it is possible to change to a lower difficulty but then I will have to kill the current blockchain and recreate a new one. But I don’t want to mine thousands of coins at one go. It wouldn’t make sense. But Thank you for the comment and thinking with me.
Frasz (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
July 22, 2022, 09:52:49 PM
 #6

Bitcoin removed the built in miner long ago. You can mine with an external CPU miner, a GPU miner, or an ASIC miner
on your private blockchain. For BTC you need an ASIC.

The target difficulty will change depending on the rate blocks are found, but it takes a long time at low hash rate.
1 is probably the default starting difficulty and it hasn't retargeted yet. The 10 minute block time isn't really the issue,
it's how long it will take to find the number of blocks required before retargeting occurs. You could change the parameters
to better suit your mining power.

Thank you for the information. Yes the hash rate is low I agree.. Please correct me does it mean if a older version of bitcoin source code was used with cpu mining available the 10 min would have worked better ? To calculate with difficulty of 1 using a self made script could possibly be causing the limitation? I need to check this and try to get a miner . My laptop also has a build in GPU AMD Radeon (TM) Vega 6 Graphics but it is not being used much 1-2% but it is showing 61*C. I shut down the mining activity for a few days today I resumed and checked in total 850 coins in immature balance and on the main one 1850 coins. But it works. Thanks
Frasz (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
July 22, 2022, 10:00:56 PM
 #7

Since you found a block it means it’s working. Unless you changed anything from the Bitcoin mining specs, the mining block target is 10 minutes.

Which means the average over a long line of blocks should be 10 minutes averaged out. Assuming same CPU speed and you are the only one mining. But there is variance, sometimes it can take 1 minute to find the block and other times it can take 100 minutes. Even Bitcoin is like this sometimes. So 30 minutes is normal.

Thank you for the information. Yes I need to figure it out maybe a better miner. But It takes 100% longer then 10 minutes with CPU.
Longhorn901
Member
**
Offline Offline

Activity: 72
Merit: 17


View Profile
July 24, 2022, 03:00:08 AM
 #8

Good job getting the fork running!
I'm interested in your mining.sh script, mind sharing?

Visit Tribe Crypto on Discord! https://discord.gg/BzSeuGs/
JayDDee
Full Member
***
Offline Offline

Activity: 1397
Merit: 221


View Profile
July 24, 2022, 03:34:00 AM
 #9

Since you found a block it means it’s working. Unless you changed anything from the Bitcoin mining specs, the mining block target is 10 minutes.

Which means the average over a long line of blocks should be 10 minutes averaged out. Assuming same CPU speed and you are the only one mining. But there is variance, sometimes it can take 1 minute to find the block and other times it can take 100 minutes. Even Bitcoin is like this sometimes. So 30 minutes is normal.

Thank you for the information. Yes I need to figure it out maybe a better miner. But It takes 100% longer then 10 minutes with CPU.

That's called luck. BTW 100% more than 10 minutes in not 100 minutes, it's 20. You meant 10x.
What miner are you using? What difficulty are you mining at? What's your hash rate? Do you find blocks at the estimated TTF statistically over time?

adaseb
Legendary
*
Offline Offline

Activity: 3766
Merit: 1718



View Profile
July 24, 2022, 03:44:00 AM
 #10

I don’t think a better miner software will really help because he is the only one mining.

Let’s say his CPU hashes 10000 h/s using the stand alone miner. And he finds a block every 10 mins on average. If he switches to a more efficient miner and it hashes at 20000 h/s he will find the first few blocks pretty quick but the difficulty will double and he will be in the same spot.

Doesn’t make sense for him to upgrade his hardware or software if he is the only one mining.

JayDDee
Full Member
***
Offline Offline

Activity: 1397
Merit: 221


View Profile
July 24, 2022, 03:51:28 AM
 #11

I don’t think a better miner software will really help because he is the only one mining.

Let’s say his CPU hashes 10000 h/s using the stand alone miner. And he finds a block every 10 mins on average. If he switches to a more efficient miner and it hashes at 20000 h/s he will find the first few blocks pretty quick but the difficulty will double and he will be in the same spot.

Doesn’t make sense for him to upgrade his hardware or software if he is the only one mining.

I believe he's mining using a VM on a laptop. He may not have enough hash to find blocks every 10 minutes even at min diff.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!