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

Bitcoin price falls below $77,000 and ETF sales exceed $1 billion.

May 19, 2026

Corpay and BVNK launch stablecoin payments across $12 billion global network

May 13, 2026

Bitcoin falls below $80,000 as spot ETF inflows exceed $1 billion

May 7, 2026
Add A Comment

Comments are closed.

Recent Posts

ORBS) Reports Total Holdings Of Approximately $337 Million, Includes OpenAI, Beast Industries, More Than 11,000 ETH And Over 283 Million WLD Tokens

May 21, 2026

Bybit Launches SPCXUSDT Pre-IPO Perpetual Contract With Up To 10x Leverage Ahead Of SpaceX’s Blockbuster IPO

May 21, 2026

Blockchain.com Announces Confidential Submission Of Draft Registration Statement For Proposed Initial Public Offering Of Class A Ordinary Shares

May 21, 2026

OSL Strengthens Asia’s Digital Asset Ecosystem with Listing of State-Supervised Gold-backed Stablecoin USDKG

May 21, 2026

MEXC Launches Ondo Tokenized Stocks Carnival With A $1,000,000 Reward Pool

May 21, 2026

OSL Strengthens Asia’s Digital Asset Ecosystem With Listing Of State-Supervised Gold-Backed Stablecoin USDKG

May 21, 2026

BC.GAME Brings A Crypto-First Betting Experience To The 2026 Football Season

May 21, 2026

SOL Negative Funding Rate Highlights Declining SOL Demand

May 21, 2026

Sui Launches Gasless Stablecoin Transfers With Support From Fireblocks

May 20, 2026

Bitcoin Ally Kevin Warsh’s Polymarket Odds Jump to 94%

May 20, 2026

AI Astrology And The Future Of Personalized Digital Ecosystems

May 20, 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

ORBS) Reports Total Holdings Of Approximately $337 Million, Includes OpenAI, Beast Industries, More Than 11,000 ETH And Over 283 Million WLD Tokens

May 21, 2026

Bybit Launches SPCXUSDT Pre-IPO Perpetual Contract With Up To 10x Leverage Ahead Of SpaceX’s Blockbuster IPO

May 21, 2026

Blockchain.com Announces Confidential Submission Of Draft Registration Statement For Proposed Initial Public Offering Of Class A Ordinary Shares

May 21, 2026
Most Popular

Buy dip and sell ribs? BTC price levels to watch when Bitcoin hits $42,000

December 12, 2023

Bitcoin is ahead of the FOMC meeting. What is the following?

June 17, 2025

Meta is using Reels’ creator tools and AI to drive deeper into social commerce.

April 9, 2026
  • 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.