Crypto Flexs
  • DIRECTORY
  • CRYPTO
    • ETHEREUM
    • BITCOIN
    • ALTCOIN
  • BLOCKCHAIN
  • EXCHANGE
  • ADOPTION
  • TRADING
  • HACKING
  • SLOT
  • CASINO
Crypto Flexs
  • DIRECTORY
  • CRYPTO
    • ETHEREUM
    • BITCOIN
    • ALTCOIN
  • BLOCKCHAIN
  • EXCHANGE
  • ADOPTION
  • TRADING
  • HACKING
  • SLOT
  • CASINO
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

Is it really possible to sell Memecoins?

July 29, 2025

Big Bob Slot -Self -There fish, bite wins!

July 23, 2025

The strategy has hit the highest market cap since the Rally Bitcoin rally.

July 17, 2025
Add A Comment

Comments are closed.

Recent Posts

$ 3.5 billion in 2020 Bitcoin attack discovered by Arkham Intel

August 3, 2025

Stablecoins are finally legal

August 3, 2025

SOLANA DEX Volume Co -founder Slam Mim Coin 20% deep

August 2, 2025

DLMining Releases 2025 ETH Contract Innovation Plan, Ushering In A New Era Of Inclusive Mining

August 2, 2025

XRP Rebounds On ETF Hopes As CryptoMining Firm Launches $8,100/Day Cloud Contracts

August 2, 2025

Since April, Telegram Growth and Stacking have driven Funtoken’s price soaring

August 2, 2025

Best visa stable coin encryption card

August 1, 2025

Hamieverse Taps Abstract To Power Its Debut Blockchain Game And Purpose-Driven Ecosystem

August 1, 2025

Pepe Dollar ($PEPD) Presale Picks Up Pace As Ethereum (ETH) Hovers Over $3,600

August 1, 2025

Meme Coin ‘$SATOSHI’ Heralding The Return Of Satoshi Nakamoto’s Vision Launches First Presale

August 1, 2025

Bitcoin falls to $ 115K with the third main wave of profit, a new tariff tension.

August 1, 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

$ 3.5 billion in 2020 Bitcoin attack discovered by Arkham Intel

August 3, 2025

Stablecoins are finally legal

August 3, 2025

SOLANA DEX Volume Co -founder Slam Mim Coin 20% deep

August 2, 2025
Most Popular

ZK-based Layer-2 launched using Polygon CDK via Fuse Network

December 19, 2023

BYBIT leads the inflow of capital in March and regains twice in the volume of trading.

April 1, 2025

Easily earned $ 9,800 a day, attracting investors’ attention

February 20, 2025
  • Home
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Terms and Conditions
© 2025 Crypto Flexs

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