Post
Topic
Board Announcements (Altcoins)
Re: [ANN][MOON] Mooncoin: You know where it's headed! KGW exploit FIXED 4/3/2014
by
Mooncoin_Foundation
on 11/06/2016, 17:28:41 UTC
Does MOONcoin still give extra rewards every lunar cycle ?

"Every block number based on the lunar cycle will be awarded a 2x payout bonus!"

Currently a block reward is a 29531 MOON (fixed) since a few months. "That's based on the number of days, the moon needs to orbit the earth: 29.531 days on average. Plus possible fees for the transactions of course (e.g. when combining many "dust transactions" to one big amount)".


Edit: sorry, not completely correct, currently a block reward is a 29531 MOON indeed, but

if you read an original code:
if (nHeight % 29531 == 0) {
                // a prize for ever lunar cycle
                nSubsidy = nSubsidy * 2;
        }

nHeight  is a current block
nSubsidy is a block reward
nSubsidy is 29531 Mooncoins currently

nHeight % 29531
% is a modulus operator or remainder operator,
if you had, say, 10 % 5 the answer would be 0 (10/5=2, remainder 0).
if 10 % 6 the answer would be 4 (10/6=1, remainder 4).

so if it is a block, say, 800 000,
800 000/29531=27, remainder =2663 so remainder is not = 0 and nSubsidy=nSubsidy=29531
but every 29531 block we have a result %29531=0,
for example, 767806/29531=26.000, 797337/29531=27.000, 826868/29531=28.000
which means that for these blocks (767806, 797337, 826868 etc with an interval of 29531 blocks) and ONLY for these blocks
the rewards are nSubsidy * 2 or 29531*2=59062.

That means that approximately one block per month gives miners a double reward and about 350,000 Mooncoins every year come from:

  • Every block number based on the lunar cycle will be awarded a 2x payout bonus!