Bitcoin Forum
December 14, 2024, 07:28:34 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Question on code Re:block reward  (Read 561 times)
bones261 (OP)
Legendary
*
Offline Offline

Activity: 1806
Merit: 1828



View Profile
September 03, 2015, 12:08:26 AM
 #1

I'm just curious, exactly what code in BTC and it's many clones, prevents someone from changing the block reward code, compile their own wallet, and mine at a higher reward?  I'm probably missing something very fundamental here, but the only stupid question is one that isn't asked. Cheesy




jwinterm
Legendary
*
Offline Offline

Activity: 3164
Merit: 1117



View Profile
September 03, 2015, 12:40:01 AM
 #2

Every block that's mined has to be validated by peers. If it doesn't pass validation, then other miners won't build blocks on top of it. Obviously changing coinbase reward might be something that makes a block fail validation.
bones261 (OP)
Legendary
*
Offline Offline

Activity: 1806
Merit: 1828



View Profile
September 03, 2015, 12:59:21 AM
 #3

Every block that's mined has to be validated by peers. If it doesn't pass validation, then other miners won't build blocks on top of it. Obviously changing coinbase reward might be something that makes a block fail validation.

Thanks, that makes sense.

If anyone can point me to the files that contain the code, that does this magic. I'd appreciate it.
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
September 03, 2015, 08:10:11 AM
 #4

Every block that's mined has to be validated by peers. If it doesn't pass validation, then other miners won't build blocks on top of it. Obviously changing coinbase reward might be something that makes a block fail validation.

Thanks, that makes sense.

If anyone can point me to the files that contain the code, that does this magic. I'd appreciate it.

https://github.com/bitcoin/bitcoin/blob/master/src/main.cpp#L1799-L1804

“God does not play dice"
monsterer
Legendary
*
Offline Offline

Activity: 1008
Merit: 1007


View Profile
September 03, 2015, 08:12:31 AM
 #5

The answer lies in consensus. Unless the network agrees with your changes, they will be rejected.
Outlander
Legendary
*
Offline Offline

Activity: 1218
Merit: 1000



View Profile
September 03, 2015, 08:27:17 AM
 #6

The answer lies in consensus. Unless the network agrees with your changes, they will be rejected.
Code changed software will be rejected by others and its user are mining altcoins!

iGotSpots
Legendary
*
Offline Offline

Activity: 2548
Merit: 1054


CPU Web Mining 🕸️ on webmining.io


View Profile WWW
September 03, 2015, 10:02:56 AM
 #7

They will be immediately rejected and become orphans

The second you mine a block with different parameters that is accepted by other nodes running the same code, you are on your own fork

username18333
Sr. Member
****
Offline Offline

Activity: 378
Merit: 250


Knowledge could but approximate existence.


View Profile WWW
September 06, 2015, 12:18:54 AM
 #8

Writcoin[™] . . . defines a blockbase™ transaction as being any coinbase transaction with only one, unspendable output.

One's efforts would prove fruitless within the network referenced above.

Escape the plutocrats’ zanpakutō, Flower in the Mirror, Moon on the Water: brave “the ascent which is rough and steep” (Plato).
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!