Author

Topic: Blockchain different from source code (Read 3089 times)

legendary
Activity: 2548
Merit: 1054
CPU Web Mining 🕸️ on webmining.io
September 24, 2016, 10:34:40 AM
#5
Fees yo

Edit: Sorry, I see you figured it out already
sr. member
Activity: 331
Merit: 250
September 24, 2016, 03: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.
hero member
Activity: 901
Merit: 501
https://freebitco.in/?r=49693
February 11, 2015, 07:50:57 AM
#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
newbie
Activity: 33
Merit: 0
February 10, 2015, 11:46:20 PM
#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
newbie
Activity: 33
Merit: 0
February 10, 2015, 07:25:08 PM
#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.)
Jump to: