Bitcoin Forum
May 27, 2024, 12:05:51 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Generate bitcoin genesis block with more than 1 address  (Read 187 times)
khaba (OP)
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile WWW
May 10, 2020, 07:32:38 PM
Last edit: May 11, 2020, 07:35:53 PM by khaba
 #1

Hello. I would like generate bitcoin genesis block with 10 coins for 5 different addresses in 1 block instead 50 coins for 1 address. Anybody know how to do this? Any ideas?
DaCryptoRaccoon
Hero Member
*****
Offline Offline

Activity: 1217
Merit: 607


OGRaccoon


View Profile
May 10, 2020, 08:23:08 PM
 #2

Hello. I would like generate bitcoin genesis block with 10 coins for 5 different addresses in 1 block instead 50 coins for 1 address. Anybody know how to do this? Any ideas?

Add this to your main.cpp file this is for scrypt based coins but you can edit it to be for SHA256 if you require this will mine your genesis block and spit out the hash into the debug.log

This is a very old method of doing this.

Good luck.

Code:
if (false && block.GetHash() != hashGenesisBlock)
        {
            printf("Searching for genesis block...\n");
            // This will figure out a valid hash and Nonce if you're
            // creating a different genesis block:
            uint256 hashTarget = CBigNum().SetCompact(block.nBits).getuint256();
            uint256 thash;
            char scratchpad[SCRYPT_SCRATCHPAD_SIZE];
 
            loop
            {
#if defined(USE_SSE2)
                // Detection would work, but in cases where we KNOW it always has SSE2,
                // it is faster to use directly than to use a function pointer or conditional.
#if defined(_M_X64) || defined(__x86_64__) || defined(_M_AMD64) || (defined(MAC_OSX) && defined(__i386__))
                // Always SSE2: x86_64 or Intel MacOS X
                scrypt_1024_1_1_256_sp_sse2(BEGIN(block.nVersion), BEGIN(thash), scratchpad);
#else
                // Detect SSE2: 32bit x86 Linux or Windows
                scrypt_1024_1_1_256_sp(BEGIN(block.nVersion), BEGIN(thash), scratchpad);
#endif
#else
                // Generic scrypt
                scrypt_1024_1_1_256_sp_generic(BEGIN(block.nVersion), BEGIN(thash), scratchpad);
#endif
                if (thash <= hashTarget)
                    break;
                if ((block.nNonce & 0xFFF) == 0)
                {
                    printf("nonce %08X: hash = %s (target = %s)\n", block.nNonce, thash.ToString().c_str(), hashTarget.ToString().c_str());
                }
                ++block.nNonce;
                if (block.nNonce == 0)
                {
                    printf("NONCE WRAPPED, incrementing time\n");
                    ++block.nTime;
                }
            }
            printf("block.nTime = %u \n", block.nTime);
            printf("block.nNonce = %u \n", block.nNonce);
            printf("block.GetHash = %s\n", block.GetHash().ToString().c_str());
        }

┏━━━━━━━━━━━━━━━━━┓
┃   💎 Mine Solo with CKPool 💎    ┃
┃    ➤ Hit Blocks on Your Own!      ┃
┃ ███▓▓  ███▓▓  ███▓▓  ███▓▓┃
khaba (OP)
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile WWW
May 10, 2020, 08:34:35 PM
 #3

Add this to your main.cpp file this is for scrypt based coins but you can edit it to be for SHA256 if you require this will mine your genesis block and spit out the hash into the debug.log

This is a very old method of doing this.

Good luck.

I know how to generate standard genesis block with 50 coins for 1 address. My question is not about generating normal block with 1 output. I need block with more than 1 output. For example: 10 coins for 5 addresses.
odolvlobo
Legendary
*
Offline Offline

Activity: 4326
Merit: 3241



View Profile
May 10, 2020, 10:03:19 PM
 #4

You simply create the standard coinbase transaction with multiple outputs instead of just one. BTCC (now Ballet) does that for its physical bitcoins. Here is one of their coinbase transactions: https://www.blockchain.com/btc/tx/ced9ec9201e161f2625ecb21e81a9a29d25c992aea83ee6af707ee31cbd172d1

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
COBRAS
Member
**
Offline Offline

Activity: 864
Merit: 22

$$P2P BTC BRUTE.JOIN NOW ! https://uclck.me/SQPJk


View Profile
May 10, 2020, 10:15:14 PM
Last edit: May 10, 2020, 10:37:37 PM by COBRAS
 #5

You simply create the standard coinbase transaction with multiple outputs instead of just one. BTCC (now Ballet) does that for its physical bitcoins. Here is one of their coinbase transactions: https://www.blockchain.com/btc/tx/ced9ec9201e161f2625ecb21e81a9a29d25c992aea83ee6af707ee31cbd172d1


 Grin Grin Grin Grin Grin Grin Grin Grin Grin Grin Grin


Total Input
0.00000000 BTC  Roll Eyes
Total Output
25.10838995 BTC  Roll Eyes


BTC from Air HuhHuh??


 Grin Grin Grin Grin Grin Grin Grin Grin




Ghoct transaction  Grin Grin Grin Grin Grin Grin Grin


https://www.blockchain.com/btc/tx/0000000000000000000000000000000000000000000000000000000000000000



Imho. This is  strange wallet, but if this like ETH with facking automatic nonstop-out scrip.... nonononon.

 Grin Grin Grin Grin Grin Grin Grin


How you can find so strage walets, I apologies this is very deep blockchain knowledge you have !!!  Cool

Bro, this wallets can do this:

Total in - 1000 BTC
Total out - 0 BTC
Final ballance 0 BTC

? Grin

I think so wallets is a new scam method - "in btc, in btc, in btc, .........,FINAL BALANCE 0" Grin

$$$ P2P NETWORK FOR BTC WALLET.DAT BRUTE F ORCE .JOIN NOW=GET MANY COINS NOW !!!
https://github.com/phrutis/LostWallet  https://t.me/+2niP9bQ8uu43MDg6
odolvlobo
Legendary
*
Offline Offline

Activity: 4326
Merit: 3241



View Profile
May 10, 2020, 10:37:59 PM
Merited by bitmover (1)
 #6

You simply create the standard coinbase transaction with multiple outputs instead of just one. BTCC (now Ballet) does that for its physical bitcoins. Here is one of their coinbase transactions: https://www.blockchain.com/btc/tx/ced9ec9201e161f2625ecb21e81a9a29d25c992aea83ee6af707ee31cbd172d1

Total Input
0.00000000 BTC  Roll Eyes
Total Output
25.10838995 BTC  Roll Eyes


BTC from Air HuhHuh??

Yes. That is a special transaction. It is the first transaction in a block, called the "coinbase transaction". That is how bitcoins are created.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
COBRAS
Member
**
Offline Offline

Activity: 864
Merit: 22

$$P2P BTC BRUTE.JOIN NOW ! https://uclck.me/SQPJk


View Profile
May 10, 2020, 10:41:06 PM
 #7

You simply create the standard coinbase transaction with multiple outputs instead of just one. BTCC (now Ballet) does that for its physical bitcoins. Here is one of their coinbase transactions: https://www.blockchain.com/btc/tx/ced9ec9201e161f2625ecb21e81a9a29d25c992aea83ee6af707ee31cbd172d1

Total Input
0.00000000 BTC  Roll Eyes
Total Output
25.10838995 BTC  Roll Eyes


BTC from Air HuhHuh??

Yes. That is a special transaction. It is the first transaction in a block, called the "coinbase transaction". It is how bitcoins are created.

First saw this transaction. I was saw only deposited btc on exchange.

$$$ P2P NETWORK FOR BTC WALLET.DAT BRUTE F ORCE .JOIN NOW=GET MANY COINS NOW !!!
https://github.com/phrutis/LostWallet  https://t.me/+2niP9bQ8uu43MDg6
khaba (OP)
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile WWW
May 11, 2020, 09:01:35 AM
 #8

You simply create the standard coinbase transaction with multiple outputs instead of just one. BTCC (now Ballet) does that for its physical bitcoins. Here is one of their coinbase transactions: https://www.blockchain.com/btc/tx/ced9ec9201e161f2625ecb21e81a9a29d25c992aea83ee6af707ee31cbd172d1

It's the best example what I need. But how I can do this myself? Without third party wallets. I want include it to the bitcoin source code fork as you can imagine).
khaba (OP)
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile WWW
May 12, 2020, 07:50:11 PM
 #9

If anyone know how to solve my problem, I could pay.
bitmover
Legendary
*
Offline Offline

Activity: 2310
Merit: 5971


bitcoindata.science


View Profile WWW
May 13, 2020, 04:03:34 PM
 #10

Total Input
0.00000000 BTC  Roll Eyes
Total Output
25.10838995 BTC  Roll Eyes


BTC from Air HuhHuh??

Yes. That is a special transaction. It is the first transaction in a block, called the "coinbase transaction". That is how bitcoins are created.

lol
Bitcoin doesn't come from the air, but from mining.

Although it can come from air, if your mining rig is powered by Wind power.
Bitcoin can come from air, water, coal, oil. Energy is transformed into newly created bitcoins Smiley

It's the best example what I need. But how I can do this myself? Without third party wallets. I want include it to the bitcoin source code fork as you can imagine).
Bitcoin itself can do this, you don't need to create a fork to do that. No need to change the bitcoin code.

just need to properly configure your coinbase transaction properly. Probably bitcoin core can do this. I would ask in Bitcoin Technical Discussion board.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
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!