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

Saylor’s strategic message doesn’t help push the Bitcoin story, says StanChart.

July 12, 2026

Bittensor subnet token launches on Kraken

July 6, 2026

Could the UK become a stablecoin hub for cryptocurrencies?

June 30, 2026
Add A Comment

Comments are closed.

Recent Posts

Bybit Reports Lowest BTC Spot Slippage Among Major Crypto Exchanges In Q1 2026, Driven By Rapid Price Improvement Mechanism

July 17, 2026

XRP hit $1.20 as Upbit flows hit their highest share since May 2024.

July 17, 2026

Multicoin Capital has made its first Hyperliquid ecosystem investment in Trasia, an Asia-focused trading platform.

July 17, 2026

1win Expands Its Prediction Markets With Crypto Forecasts

July 17, 2026

750M+ USDT Futures Insurance Fund & 100% Asset Reserves

July 17, 2026

MEXC May–June Report -750M+ USDT Futures Insurance Fund & 100% Asset Reserves

July 16, 2026

Bitunix Exchange Launches Visa Debit Card For Daily Purchases And Earning

July 16, 2026

UK Financial Ltd begins public testing of MAYA 3 liquidity infrastructure on six blockchain networks

July 16, 2026

Zoomex X Space Recap With Javier Mascherano And The World Cup Panel

July 16, 2026

ETH Is The Cure For The ‘Uncanny Valley Of Wealth’

July 16, 2026

Bybit Wins Excellence In Innovation And Strategic Leadership Awards At Peru Blockchain Conference 2026

July 16, 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

Bybit Reports Lowest BTC Spot Slippage Among Major Crypto Exchanges In Q1 2026, Driven By Rapid Price Improvement Mechanism

July 17, 2026

XRP hit $1.20 as Upbit flows hit their highest share since May 2024.

July 17, 2026

Multicoin Capital has made its first Hyperliquid ecosystem investment in Trasia, an Asia-focused trading platform.

July 17, 2026
Most Popular

Ethereum (ETH) Developers Solve Core Issues in Consensus Call #139

August 9, 2024

Cryptocurrency tokens are not securities

May 22, 2024

NexBridge Raises $30 Million in Tokenized U.S. Treasury Bond Offering

December 9, 2024
  • 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.