• About
  • FAQ
  • Privacy Policy
  • Support Forum
  • Disclaimer
  • Contact Us
Newsletter
Token Alytics
  • Home
  • Bitcoin
  • Blockchain
  • Cryptocurrency
  • Defi
  • Ripple
  • Ethereum
  • Metaverse
No Result
View All Result
  • Home
  • Bitcoin
  • Blockchain
  • Cryptocurrency
  • Defi
  • Ripple
  • Ethereum
  • Metaverse
No Result
View All Result
Token Alytics
No Result
View All Result
Home Bitcoin

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

thecryptogoblin by thecryptogoblin
September 9, 2024
in Bitcoin
0
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter


Bitcoin core hard-codes the coinbase transaction to 1 output coinbaseTx.vout.resize(1) as outlined in src/node/miner.cpp

     // Create coinbase transaction.
    CMutableTransaction coinbaseTx;
    coinbaseTx.vin.resize(1);
    coinbaseTx.vin[0].prevout.SetNull();

****************************************************
//Referring to the road of code under 
    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::transfer(coinbaseTx));
    pblocktemplate->vchCoinbaseCommitment = m_chainstate.m_chainman.GenerateCoinbaseCommitment(*pblock, pindexPrev);
    pblocktemplate->vTxFees[0] = -nFees;

    LogPrintf("CreateNewBlock(): block weight: %u txs: %u charges: %ld sigops %dn", GetBlockWeight(*pblock), nBlockTx, nFees, nBlockSigOpsCost);

Nevertheless, lately in block 860062 the Mining Pool paid a number of distant miners straight from the coin-base transaction.
https://mempool.house/tx/aff7c9b18666c0a51c66013642e24bfcb8b721a674e0f4ce3afa3004b55b0156

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

Related articles

DEGEN Crypto Up +20% On The Week: Are We Set For A Base Szn?

DEGEN Crypto Up +20% On The Week: Are We Set For A Base Szn?

July 8, 2025
Spot Solana ETF Poised To Come ‘Manner Forward’ Of Schedule

Spot Solana ETF Poised To Come ‘Manner Forward’ Of Schedule

July 8, 2025


Bitcoin core hard-codes the coinbase transaction to 1 output coinbaseTx.vout.resize(1) as outlined in src/node/miner.cpp

     // Create coinbase transaction.
    CMutableTransaction coinbaseTx;
    coinbaseTx.vin.resize(1);
    coinbaseTx.vin[0].prevout.SetNull();

****************************************************
//Referring to the road of code under 
    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::transfer(coinbaseTx));
    pblocktemplate->vchCoinbaseCommitment = m_chainstate.m_chainman.GenerateCoinbaseCommitment(*pblock, pindexPrev);
    pblocktemplate->vTxFees[0] = -nFees;

    LogPrintf("CreateNewBlock(): block weight: %u txs: %u charges: %ld sigops %dn", GetBlockWeight(*pblock), nBlockTx, nFees, nBlockSigOpsCost);

Nevertheless, lately in block 860062 the Mining Pool paid a number of distant miners straight from the coin-base transaction.
https://mempool.house/tx/aff7c9b18666c0a51c66013642e24bfcb8b721a674e0f4ce3afa3004b55b0156

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

Tags: BitcoinCoinbaseCoreCreateMinerMultipleoutputstransaction
Share76Tweet47

Related Posts

DEGEN Crypto Up +20% On The Week: Are We Set For A Base Szn?

DEGEN Crypto Up +20% On The Week: Are We Set For A Base Szn?

by thecryptogoblin
July 8, 2025
0

One of many main meme cash on the Base community, DEGEN crypto, is up practically 20% within the final seven...

Spot Solana ETF Poised To Come ‘Manner Forward’ Of Schedule

Spot Solana ETF Poised To Come ‘Manner Forward’ Of Schedule

by thecryptogoblin
July 8, 2025
0

Trusted Editorial content material, reviewed by main trade consultants and seasoned editors. Advert Disclosure The US Securities and Alternate Fee...

Dogecoin Resistance Partitions Forward: Analyst Flags 3 Key Ranges

Dogecoin Resistance Partitions Forward: Analyst Flags 3 Key Ranges

by thecryptogoblin
July 8, 2025
0

An analyst has identified three key resistance ranges for Dogecoin that might be to control, primarily based on on-chain knowledge....

GUNZ Proclaims $GUN Token Enlargement to Solana

GUNZ Proclaims $GUN Token Enlargement to Solana

by thecryptogoblin
July 7, 2025
0

Robinson Level, Singapore, July seventh, 2025, ChainwireGUNZ, the L1 blockchain ecosystem that powers the groundbreaking AAA recreation Off The Grid...

Webpack subject with tiny-secp256k1 and ECPair

Webpack subject with tiny-secp256k1 and ECPair

by thecryptogoblin
July 7, 2025
0

I'm growing a browser extension utilizing Webpack v5 and incorporating the bitcoinjs-lib and ecpair libraries to create a Bitcoin pockets....

Load More
  • Trending
  • Comments
  • Latest
CryptoRank Telegram Airdrop Information | How To Take part

CryptoRank Telegram Airdrop Information | How To Take part

September 7, 2024

bitcoin core – mandatory-script-verify-flag-failed (Script evaluated with out error however completed with a false/empty prime stack component) on wrapped SegWit enter

December 24, 2024
How Essential is Jito Solana MEV Bot Growth for the Cryptocurrency Ecosystem?

How Essential is Jito Solana MEV Bot Growth for the Cryptocurrency Ecosystem?

August 1, 2024
Lumina Hunt Telegram Sport Airdrop Information

Lumina Hunt Telegram Sport Airdrop Information

October 23, 2024

Ethereum Whales Quickly Accumulate ETH Amid Worth Decline

0

How Can a Web3 Neobanking Platform Be Useful for the Decentralized Enterprise Area?

0

2024 Recreation Growth Traits: Alternatives & Challenges | by Jon Radoff | Constructing the Metaverse

0

Prime Ethereum Analyst Says DOGE, PEPE, and RCOF Are About to Expertise a ‘Historic Breakout’

0
DEGEN Crypto Up +20% On The Week: Are We Set For A Base Szn?

DEGEN Crypto Up +20% On The Week: Are We Set For A Base Szn?

July 8, 2025
Trump’s Fact Social Recordsdata for Crypto Blue Chip ETF With SEC

Trump’s Fact Social Recordsdata for Crypto Blue Chip ETF With SEC

July 8, 2025
Spot Solana ETF Poised To Come ‘Manner Forward’ Of Schedule

Spot Solana ETF Poised To Come ‘Manner Forward’ Of Schedule

July 8, 2025
Ethereum Each day Chart Indicators Power As Bulls Reclaim Momentum

Ethereum Each day Chart Indicators Power As Bulls Reclaim Momentum

July 8, 2025

Token Alytics

We are a team of dedicated enthusiasts, analysts, and writers with a shared interest in the dynamic and fast-paced world of digital assets and blockchain innovation. Our diverse backgrounds in finance, technology, and media give us a unique perspective on the developments in the crypto space.

Categories

  • Bitcoin
  • Blockchain
  • Cryptocurrency
  • Defi
  • Ethereum
  • Metaverse
  • Ripple

Follow Us

  • 643 Followers

Recent News

DEGEN Crypto Up +20% On The Week: Are We Set For A Base Szn?

DEGEN Crypto Up +20% On The Week: Are We Set For A Base Szn?

July 8, 2025
Trump’s Fact Social Recordsdata for Crypto Blue Chip ETF With SEC

Trump’s Fact Social Recordsdata for Crypto Blue Chip ETF With SEC

July 8, 2025
  • About
  • FAQ
  • Privacy Policy
  • Support Forum
  • Disclaimer
  • Contact Us

© 2018- tokenalytics.io, All rights reserved

No Result
View All Result
  • Home
  • Bitcoin
  • Blockchain
  • Cryptocurrency
  • Defi
  • Ripple
  • Ethereum
  • Metaverse

© 2018- tokenalytics.io, All rights reserved