Bitcoin Forum
June 13, 2024, 03:30:37 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Locking up premine for a period of time or number of blocks  (Read 80 times)
DarkArrow (OP)
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile
May 18, 2021, 09:59:53 PM
 #1

Hi, I would like to lock up a premine for a certain period of time, or for a number of blocks. I've been reading about CLTV, but I would like to do it directly when the premine occurs, i.e. in validation.cpp. Is this possible? Can someone share a C++ snippet to do it? I'm not a C++ expert. Thanks.
BlackHatCoiner
Legendary
*
Offline Offline

Activity: 1554
Merit: 7542


Protocols over bureaucrats


View Profile
May 19, 2021, 03:58:19 PM
Last edit: May 19, 2021, 04:46:34 PM by BlackHatCoiner
 #2

“Premining” is actually a made-up word, that we've defined it as a creation of some coins, before the cryptocurrency gets launched. Almost all cryptos are premined, even Bitcoin. Satoshi was mining for a month, before he/she announced it on bitcoin.org. I just wanted to point you that, let's move on.

Hi, I would like to lock up a premine for a certain period of time, or for a number of blocks.
So you want to lock up a “premine”. To me, this sentence makes no sense, because of the definition of “premining” above. Can you give me an example of what exactly you want to do? When you ask for help on a forum, especially if it has to do with coding, you have to be precise.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
j2002ba2
Full Member
***
Offline Offline

Activity: 206
Merit: 444


View Profile
May 19, 2021, 04:30:38 PM
 #3

“Premining” is actually a made-up word, that we've defined it as a creation of some coins, before the cryptocurrency gets launched. Almost all cryptos are premined, even Bitcoin. Satoshi was mining for a month, before he/she announced it on bitcoin.org. I just wanted to point you that, let's move on.

You are gravely mistaken. Satoshi mined just one block for no more than six days. Furthermore that block cannot be spent, so in effect he premined 0 coins.

BlackHatCoiner
Legendary
*
Offline Offline

Activity: 1554
Merit: 7542


Protocols over bureaucrats


View Profile
May 19, 2021, 04:39:43 PM
 #4

Assuming it's a “he”.

You are gravely mistaken. Satoshi mined just one block for no more than six days. Furthermore that block cannot be spent, so in effect he premined 0 coins.

But he did mine lots of blocks during the first month, while it was still under development and only known by those he was emailing that time. Didn't he?

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Yogee
Sr. Member
****
Offline Offline

Activity: 1554
Merit: 412


View Profile
May 19, 2021, 04:44:08 PM
 #5

Is this possible? Can someone share a C++ snippet to do it? I'm not a C++ expert.
Are you planning to sell these tokens? Hire someone who really knows before you messed it up if that's the case. There are many skilled people that can easily exploit poorly coded tokens. Don't sacrifice people's money just because you don't want to spend on other developers.
j2002ba2
Full Member
***
Offline Offline

Activity: 206
Merit: 444


View Profile
May 19, 2021, 05:06:43 PM
Merited by BlackHatCoiner (1)
 #6

You are gravely mistaken. Satoshi mined just one block for no more than six days. Furthermore that block cannot be spent, so in effect he premined 0 coins.

But (s)he did mine lots of blocks during the first month, while it was still under development and only known by those (s)he was emailing that time. Didn't (s)he?

I remember reading the whitepaper beginning of December 2008. Nobody emailed me anything, it was all public info. The news got out to the ones looking for new stuff. Then the software appeared in January, v0.1.0 alpha. I mined (and threw away) some block in February. It was a windows executable, sounded very fishy to me. It was worthless thing, making the laptop fan buzz all time.

Satoshi didn't mine lots of blocks, just made sure that blocks are still mined. Almost nobody was interested. For a whole year the difficulty was the lowest possible - 1, and the hash power couldn't produce blocks fast enough to even reach it. There was once more than 24 hours between two blocks.

In retrospect this was the correct way to do it. Too much marketing, and it would be crushed at the beginning. It was just at the edge, and managed to survive so far.

Yogee
Sr. Member
****
Offline Offline

Activity: 1554
Merit: 412


View Profile
May 19, 2021, 05:27:15 PM
 #7

j2002ba2 and BlackHatCoiner, interesting discussion between the two of you and probably deserves a separate topic. How about we establish the timeline from Satoshi first mined the genesis block to when it became public knowledge and other people joining? It's for the sake of the newbie readers.

...
I mined (and threw away) some block in February.
Damn!

Quote
It was a windows executable, sounded very fishy to me. It was worthless thing, making the laptop fan buzz all time.
When did you take mining seriously?
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!