Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: crazyideas21 on February 11, 2015, 12:25:08 AM



Title: Blockchain different from source code
Post by: crazyideas21 on February 11, 2015, 12:25:08 AM
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 (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.)


Title: Re: Blockchain different from source code
Post by: crazyideas21 on February 11, 2015, 04:46:20 AM
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 (http://blockexperts.com/ttc/tx/93841752430473b1aec3965de8642f2fbc7edddb043464c4013636010f28f643)


Title: Re: Blockchain different from source code
Post by: tittiecoin on February 11, 2015, 12:50:57 PM
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 (http://blockexperts.com/ttc/tx/93841752430473b1aec3965de8642f2fbc7edddb043464c4013636010f28f643)

Thanks for clearing that up :)


Title: Re: Blockchain different from source code
Post by: BTC_ISTANBUL on September 24, 2016, 08:43:14 AM
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 (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.


Title: Re: Blockchain different from source code
Post by: iGotSpots on September 24, 2016, 03:34:40 PM
Fees yo

Edit: Sorry, I see you figured it out already