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

Tether quietly adds 8,888 BTC, tapping 96,369 coins from Bitcoin Stash.

January 1, 2026

Bitcoin price limited due to Maco condition changes, not whale sales

December 26, 2025

You can trade ZKP!

December 20, 2025
Add A Comment

Comments are closed.

Recent Posts

Tether quietly adds 8,888 BTC, tapping 96,369 coins from Bitcoin Stash.

January 1, 2026

ASTER price outlook as whale loses 3 million coins

January 1, 2026

Cardano (ADA) Aims Higher – Bullish Setup Hints for New Legs

January 1, 2026

South Korea fines Korbit $1.8 million for failing to comply with regulations

January 1, 2026

Lighter Token (LIT) Overtakes Jupiter — Are Hyperliquids Dangerous?

January 1, 2026

3 Small Cap Altcoins to Watch in the 2026 Prediction Market Boom

December 31, 2025

Test proxy contracts securely using Wake Framework

December 30, 2025

SlotGPT Launches A New AI Slot Platform Transforming Players Into Creators

December 30, 2025

Cango Inc. Secures US$10.5 Million Investment From EWCL To Accelerate Growth

December 30, 2025

Maya Preferred launches mandatory token conversion for regulatory infrastructure transition.

December 30, 2025

Ethereum price target surpasses $3,000, bull opportunity

December 29, 2025

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

Tether quietly adds 8,888 BTC, tapping 96,369 coins from Bitcoin Stash.

January 1, 2026

ASTER price outlook as whale loses 3 million coins

January 1, 2026

Cardano (ADA) Aims Higher – Bullish Setup Hints for New Legs

January 1, 2026
Most Popular

Update: Mt Gox Moves $2.8 Billion Worth of Bitcoin to New Address: Arkham

July 23, 2024

The US Treasury Secretary approves Bitcoin’s “digital gold” status! The BSTR miner helps retail investors to earn $ billion in the encryption market.

April 6, 2025

Is Etherrium the price of more than $ 4,000 in 2,589 ETH 24 hours?

September 27, 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.