Author

Topic: Where are block rewards distributed in Bitcoin core? (Read 193 times)

newbie
Activity: 4
Merit: 0
Thanks! I'll take a look.
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
I mean it's just a fork I'm learning with for fun. So is there documentation for this then?
Most miners don't actually use getblocktemplate anymore and they have their own software written to accommodate for their needs (ASICBoost, custom msg in coinbase etc).

The documentation is here: https://developer.bitcoin.org/reference/rpc/getblocktemplate.html. The code is written here: https://github.com/bitcoin/bitcoin/blob/793e0ff22cbace2a0fbe1e4a2e88a7bc6bf44502/src/rpc/mining.cpp#L488.
newbie
Activity: 4
Merit: 0
oh.
well bloating the blockchain with meaningless data is not really a good thing to do
no one is going to happily advertise how to a newbie. otherwise everyone would be doing it

I mean it's just a fork I'm learning with for fun. So is there documentation for this then?
legendary
Activity: 4424
Merit: 4794
Oh ok thanks. I want to try to clarify though because I might've come across as misunderstood. My end goal is to put info on the blockchain that might not necessarily be a TX. I've looked for documentation on how to do this but everything seems pretty empty.

oh.
well bloating the blockchain with meaningless data is not really a good thing to do
no one is going to happily advertise how to a newbie. otherwise everyone would be doing it
newbie
Activity: 4
Merit: 0
Oh ok thanks. I want to try to clarify though because I might've come across as misunderstood. My end goal is to put info on the blockchain that might not necessarily be a TX. I've looked for documentation on how to do this but everything seems pretty empty.
legendary
Activity: 4424
Merit: 4794
the particular miner who is mining the block chooses what transactions to add to the block and also puts in the address for where they want the block reward to go to.

core doesnt really do the mining (block consolidation/creation) side of things any more its just validates a received block follows the rules.

the block consolidation/creation code is usually in mining pool software which is different to the main core code

look at the 'blocktemplate' for where it goes (getblocktemplate)
newbie
Activity: 4
Merit: 0
Hey everyone! I'm taking a look at Bitcoin core and am looking for where the TX is effectively "generated" and send out to an address. I've found the nSubsidy block reward, but I'm currently looking for where the transaction is sent out and recorded on the blockchain. If I don't understand something right, please correct me, otherwise, if you have an answer please tell me!

Thanks, Whoffie
Jump to: