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

Slot drops $180,000 in one blink.

February 6, 2026

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
Add A Comment

Comments are closed.

Recent Posts

Phemex Astral Trading League (PATL) Goes Live, Building A Sustainable Seasonal Trading Progression System

February 12, 2026

Cango Inc. Closed The US$10.5 Million Equity Investment And Secured US$65 Million Additional Equity Investments

February 12, 2026

Best Cryptocurrency Marketing Agency: Outset PR Earns Industry Recognition for Data-Driven Approach

February 12, 2026

Flipster FZE Secures In-Principle Approval From VARA, Reinforcing Commitment To Regulated Crypto Access

February 12, 2026

BYDFi Joins Solana Accelerate APAC At Consensus Hong Kong, Expanding Solana Ecosystem Engagement

February 12, 2026

Why the on-chain AI agent economy hasn’t taken off yet

February 12, 2026

P2P Bitcoin marketplace Paxful sentenced for promoting illegal prostitution and money laundering

February 12, 2026

Lucky Anon Casino – The No KYC Crypto Casino With Instant Withdrawals And 7,000+ Games

February 11, 2026

Wallet In Telegram Launches Cross Chain Deposits In Self Custodial TON Wallet

February 11, 2026

Ault Capital Group Unveils Ault Blockchain Public Testnet

February 11, 2026

Ethereum Classic (ETC) price is struggling near $8 due to widespread cryptocurrency weakness.

February 11, 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

Phemex Astral Trading League (PATL) Goes Live, Building A Sustainable Seasonal Trading Progression System

February 12, 2026

Cango Inc. Closed The US$10.5 Million Equity Investment And Secured US$65 Million Additional Equity Investments

February 12, 2026

Best Cryptocurrency Marketing Agency: Outset PR Earns Industry Recognition for Data-Driven Approach

February 12, 2026
Most Popular

Dangerous assets? Trump tariffs lead to mass bitcoin and encryption liquidation.

February 3, 2025

Crypto TRADER says that according to Ethereum -based Altcoin, which is a very realized five -fold gain, updating the outlook for XRP and Bitcoin.

April 12, 2025

Analysts predict the price will plummet to $38,130.

January 25, 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.