Close Menu
  • Home
  • Altcoin
  • Bitcoin
  • Crypto
  • Forex
  • Online Money
What's Hot

bitcoin core – How does uncapping OP_RETURN impact long-term fee-market quality and security budget?

September 13, 2025

Wall Street sets pace for Asia: Nikkei and KOSPI hit record highs – Forecasts – 12 September 2025

September 13, 2025

FTC probes Google and Amazon over ad pricing disclosures

September 13, 2025
Facebook X (Twitter) Instagram
  • Altcoin
  • Bitcoin
  • Crypto
  • Forex
  • Online Money
Facebook X (Twitter) Instagram
Cointelegraphe
  • Home
  • Altcoin
  • Bitcoin
  • Crypto
  • Forex
  • Online Money
Cointelegraphe
Home»Bitcoin»bitcoin core – How does a miner create multiple outputs in a coinbase transaction?
bitcoin core – How does a miner create multiple outputs in a coinbase transaction?
Bitcoin

bitcoin core – How does a miner create multiple outputs in a coinbase transaction?

adminBy adminSeptember 9, 2024No Comments1 Min Read
Share
Facebook Twitter LinkedIn Pinterest Email


Bitcoin Core hard-codes the coinbase transaction to one output coinbaseTx.vout.resize(1) as defined in 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, recently in block 860062 the mining pool paid multiple remote miners directly from the coinbase transaction.

How does the miner create a coinbase transaction that overrides the default values stipulated in the above code-snippet from Bitcoin Core?



Source link

bitcoin coinbase Core create Miner Multiple outputs transaction
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
admin
  • Website

Related Posts

bitcoin core – How does uncapping OP_RETURN impact long-term fee-market quality and security budget?

September 13, 2025

Ethereum Supply Shock? BitMine Absorbs 319,000 ETH In A Week

September 11, 2025

You Cannot Stop Bitcoin Metaprotocols

September 10, 2025

Grayscale Seeks SEC Nod for Bitcoin Cash (BCH) and Hedera (HBAR) ETFs

September 10, 2025
Add A Comment
Leave A Reply Cancel Reply

Top Insights

bitcoin core – How does uncapping OP_RETURN impact long-term fee-market quality and security budget?

September 13, 2025

Wall Street sets pace for Asia: Nikkei and KOSPI hit record highs – Forecasts – 12 September 2025

September 13, 2025

FTC probes Google and Amazon over ad pricing disclosures

September 13, 2025

XION is available for trading!

September 13, 2025
ads

Subscribe to Updates

Get the latest creative news from Cointelegraphe about Crypto, bItcoin and Altcoin.

About Us
About Us

At CoinTelegraphe, we are dedicated to bringing you the latest and most insightful news, analysis, and updates from the dynamic world of cryptocurrency. Our mission is to provide our readers with accurate, timely, and comprehensive information to help them navigate the complexities of the crypto market.

Facebook X (Twitter) Instagram Pinterest YouTube
Top Insights

bitcoin core – How does uncapping OP_RETURN impact long-term fee-market quality and security budget?

September 13, 2025

Wall Street sets pace for Asia: Nikkei and KOSPI hit record highs – Forecasts – 12 September 2025

September 13, 2025

FTC probes Google and Amazon over ad pricing disclosures

September 13, 2025
Get Informed

Subscribe to Updates

Get the latest creative news from Cointelegraphe about Crypto, bItcoin and Altcoin.

Please enable JavaScript in your browser to complete this form.
Loading
  • About us
  • Contact Us
  • Shop
  • Privacy Policy
  • Terms and Conditions
Copyright 2024 Cointelegraphe Design By Horaam Sultan.

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