Bitcoin Forum
April 19, 2024, 09:02:20 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Blockchain different from source code  (Read 3054 times)
crazyideas21 (OP)
Newbie
*
Offline Offline

Activity: 33
Merit: 0


View Profile WWW
February 11, 2015, 12:25:08 AM
 #1

I'm an academic researcher on cryptocurrencies. TittieCoin has come to my attention lately, because its blockchain is different from the source code.

The source code defines the block reward as follows, where there is one pre-mined block at height 2, and the rest of the blocks have rewards 8008 (halved every two years) plus fees.

Code:
int64 static GetBlockValue(int nHeight, int64 nFees)
{
    int64 nSubsidy = 8008 * COIN;

if (nHeight == 2)
nSubsidy = 73644076 * COIN;

// Block reward halves every 2 years
    nSubsidy >>= (nHeight / 350400);

    return nSubsidy + nFees;
}

(Reference: https://github.com/tittiecoin/tittiecoin/blob/master/src/main.cpp#L830-L841)

However, this is not what actually happens on the blockchain. While most of the other blocks have a typical reward of 8008 coins (plus fees), the following blocks are somewhat atypical: Their rewards are much higher than 8008!

Code:
              block_reward  difficulty           timestamp
block_height
1779                 18009    7.805143 2014-02-01 18:08:39
1819                 18008    6.574982 2014-02-01 20:14:57
1949                 18038    7.750942 2014-02-02 03:19:27
2372                 18010    2.374759 2014-02-03 02:11:18
66574                12598    0.207160 2014-07-21 08:44:00
66696                11658    0.313181 2014-07-21 14:29:27

I looked through the commit history on Github. I cannot find any source code that would explain the behavior above.

Why did this happen? Thank you!

(To replicate my result, you can check blockexperts.com or run your own official client.)
1713560540
Hero Member
*
Offline Offline

Posts: 1713560540

View Profile Personal Message (Offline)

Ignore
1713560540
Reply with quote  #2

1713560540
Report to moderator
Be very wary of relying on JavaScript for security on crypto sites. The site can change the JavaScript at any time unless you take unusual precautions, and browsers are not generally known for their airtight security.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713560540
Hero Member
*
Offline Offline

Posts: 1713560540

View Profile Personal Message (Offline)

Ignore
1713560540
Reply with quote  #2

1713560540
Report to moderator
1713560540
Hero Member
*
Offline Offline

Posts: 1713560540

View Profile Personal Message (Offline)

Ignore
1713560540
Reply with quote  #2

1713560540
Report to moderator
1713560540
Hero Member
*
Offline Offline

Posts: 1713560540

View Profile Personal Message (Offline)

Ignore
1713560540
Reply with quote  #2

1713560540
Report to moderator
crazyideas21 (OP)
Newbie
*
Offline Offline

Activity: 33
Merit: 0


View Profile WWW
February 11, 2015, 04:46:20 AM
 #2

Update: It turns out that the sudden increase in block reward is due to transaction fees. For example, for TTC block 2372, the block reward is 8008 TTC. However, one transaction pays a transaction fee of more than 58% of the transferred value. This results in a transaction fee of 10000 TTC, which goes to the lucky miner of this block.

See details below:

http://blockexperts.com/ttc/tx/93841752430473b1aec3965de8642f2fbc7edddb043464c4013636010f28f643
tittiecoin
Hero Member
*****
Offline Offline

Activity: 901
Merit: 501


It's a lifestyle


View Profile WWW
February 11, 2015, 12:50:57 PM
 #3

Update: It turns out that the sudden increase in block reward is due to transaction fees. For example, for TTC block 2372, the block reward is 8008 TTC. However, one transaction pays a transaction fee of more than 58% of the transferred value. This results in a transaction fee of 10000 TTC, which goes to the lucky miner of this block.

See details below:

http://blockexperts.com/ttc/tx/93841752430473b1aec3965de8642f2fbc7edddb043464c4013636010f28f643

Thanks for clearing that up Smiley

Limitless - VIP is a lifestyle and entertainment agency, leveraging blockchain technology as one of its payment options for services. Masternodes, Proof of stake and Privacy.
BTC_ISTANBUL
Sr. Member
****
Offline Offline

Activity: 331
Merit: 250


View Profile
September 24, 2016, 08:43:14 AM
 #4

Update: It turns out that the sudden increase in block reward is due to transaction fees. For example, for TTC block 2372, the block reward is 8008 TTC. However, one transaction pays a transaction fee of more than 58% of the transferred value. This results in a transaction fee of 10000 TTC, which goes to the lucky miner of this block.

See details below:

http://blockexperts.com/ttc/tx/93841752430473b1aec3965de8642f2fbc7edddb043464c4013636010f28f643

If BTC experiences so many halvings and not profitable to mine with any miners, can the transaction fee be more then reward and each miner acts individually for the amount offered by the parts.

If the situation is that (perhaps it is me only who is not aware of that) things will change a lot.Only big data centers with huge TH power will survive.
iGotSpots
Legendary
*
Offline Offline

Activity: 2548
Merit: 1054


CPU Web Mining 🕸️ on webmining.io


View Profile WWW
September 24, 2016, 03:34:40 PM
 #5

Fees yo

Edit: Sorry, I see you figured it out already

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!