Crypto Flexs
  • DIRECTORY
  • CRYPTO
    • ETHEREUM
    • BITCOIN
    • ALTCOIN
  • BLOCKCHAIN
  • EXCHANGE
  • TRADING
  • SUBMIT
Crypto Flexs
  • DIRECTORY
  • CRYPTO
    • ETHEREUM
    • BITCOIN
    • ALTCOIN
  • BLOCKCHAIN
  • EXCHANGE
  • TRADING
  • SUBMIT
Crypto Flexs
Home»BITCOIN NEWS»bitcoin core – How do miners generate multiple outputs on a coinbase transaction?
BITCOIN NEWS

bitcoin core – How do miners generate multiple outputs on a coinbase transaction?

By Crypto FlexsSeptember 9, 20241 Min Read
Facebook Twitter Pinterest LinkedIn Tumblr Email
bitcoin core – How do miners generate multiple outputs on a coinbase transaction?
Share
Facebook Twitter LinkedIn Pinterest Email

Bitcoin Core hardcodes the Coinbase transaction as a single output. coinbaseTx.vout.resize(1) By definition src/node/miner.cpp

     // Create coinbase transaction.
    CMutableTransaction coinbaseTx;
    coinbaseTx.vin.resize(1);
    coinbaseTx.vin(0).prevout.SetNull();

****************************************************
//Referring to the line of code below 
    coinbaseTx.vout.resize(1);

*****************************************************
    coinbaseTx.vout(0).scriptPubKey = scriptPubKeyIn;
    coinbaseTx.vout(0).nValue = nFees + GetBlockSubsidy(nHeight, chainparams.GetConsensus());
    coinbaseTx.vin(0).scriptSig = CScript() << nHeight << OP_0;
    pblock->vtx(0) = MakeTransactionRef(std::move(coinbaseTx));
    pblocktemplate->vchCoinbaseCommitment = m_chainstate.m_chainman.GenerateCoinbaseCommitment(*pblock, pindexPrev);
    pblocktemplate->vTxFees(0) = -nFees;

    LogPrintf("CreateNewBlock(): block weight: %u txs: %u fees: %ld sigops %d\n", GetBlockWeight(*pblock), nBlockTx, nFees, nBlockSigOpsCost);

However, in the recent block 860062, the mining pool paid several remote miners directly in a coin-based transaction: https://mempool.space/tx/aff7c9b18666c0a51c66013642e24bfcb8b721a674e0f4ce3afa3004b55b0156

How does a miner create a coinbase transaction that overrides the defaults specified in the above Bitcoin Core code snippet?

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

Related Posts

How high can $SHIB go in the next cryptocurrency rally?

January 31, 2026

Why is SKY rising +8% while other cryptocurrencies are in the red?

January 25, 2026

Do you have at least 10,000 XRP? An expert reveals what this means for you.

January 19, 2026
Add A Comment

Comments are closed.

Recent Posts

Hyperliquid enters prediction market, HYPE increases by 20%

February 3, 2026

Blockchain.com & Ondo Finance Launch Onchain Tokenized U.S. Stocks Across Europe

February 3, 2026

XMoney Appoints Raoul Pal As Strategic Advisor To Support The Next Phase Of Global Payments

February 3, 2026

Superform Expands To The U.S. With Mobile App Launch For A User-Owned Neobank

February 3, 2026

Enjin Launches Essence Of The Elements: A Cross-Game Multiverse Journey

February 3, 2026

Global Leading RWA Network Plume Lowers The Barrier For Korean Institutional Investment Through The KRW1 Stablecoin

February 3, 2026

Solana price falls to 10-month low due to ETF outflow

February 3, 2026

BLUFF Raises $21 Million To Power Betting Innovation

February 3, 2026

Is Ethereum transitioning into the AI ​​industry? Here’s what we know so far:

February 3, 2026

Cryptocurrency ETFs are diverse: Bitcoin is experiencing $60 million in outflows. ETH, SOL, and XRP funds are shown in green.

February 2, 2026

Cryptocurrency outflows reach $1.7 billion, but tokenized metals attract investors.

February 2, 2026

Crypto Flexs is a Professional Cryptocurrency News Platform. Here we will provide you only interesting content, which you will like very much. We’re dedicated to providing you the best of Cryptocurrency. We hope you enjoy our Cryptocurrency News as much as we enjoy offering them to you.

Contact Us : Partner(@)Cryptoflexs.com

Top Insights

Hyperliquid enters prediction market, HYPE increases by 20%

February 3, 2026

Blockchain.com & Ondo Finance Launch Onchain Tokenized U.S. Stocks Across Europe

February 3, 2026

XMoney Appoints Raoul Pal As Strategic Advisor To Support The Next Phase Of Global Payments

February 3, 2026
Most Popular

Canaan Unveils Immersion Cooled Avalon Miner A1566I at Mining Disrupt 2024

June 27, 2024

BitMEX Announces Wallet Maintenance Affecting Withdrawals on November 1st

October 31, 2024

As RWA Altcoin decreases 90% in just a few hours, the $ 5,431,983,000 disappearance -CEO claims that the exchange has acted ‘recklessly’.

April 15, 2025
  • Home
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Terms and Conditions
© 2026 Crypto Flexs

Type above and press Enter to search. Press Esc to cancel.