Bitcoin Forum
July 28, 2024, 11:42:52 PM *
News: Help 1Dq create 15th anniversary forum artwork.
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: I can mine blocks but no coins are made  (Read 642 times)
DJFML (OP)
Newbie
*
Offline Offline

Activity: 32
Merit: 0


View Profile
June 16, 2014, 09:41:24 PM
 #1

I have been mining my own coin I have created for this networks I'm with and I have been generating blocks but no coins are coming out, I have set it to 1 confirmation but that still doesn't work

Is there something I am doing wrong on making my coin?

My coin is on git https://github.com/flightcoin/flightcoin
Not sure what exactly is going on with it but I hope I can get some help.
HashEngineering
Sr. Member
****
Offline Offline

Activity: 350
Merit: 250

Independent Cryptoveloper


View Profile WWW
June 16, 2014, 11:23:08 PM
 #2

For any block less than 17280, the reward is 0. 

Code:
int64 static GetBlockValue(int nHeight, int64 nFees)
{
    int64 nSubsidy = 10000 * COIN; // 10 000 Coins each block


    if(nHeight < 17280) // no block reward within the first 3 days
        nSubsidy = 0;
    if(nHeight > 10519200) // no block reward after 5 years
        nSubsidy = 0;

    return nSubsidy + nFees;
}

GRS:  FrFpTbfEAni5Ruf8mNdwVQazJVJaQyEM2Y
BTC:  128Ptecsv4j6NoxdBxdvGzBtipfaAarZMJ
https://bitcointalk.org/index.php?topic=336215 - Android Wallet Creation Service
Neotox
Legendary
*
Offline Offline

Activity: 1120
Merit: 1000


Free & Fast Neotox Escrow http://bit.ly/1OGVykp


View Profile WWW
June 18, 2014, 05:33:54 AM
 #3

For any block less than 17280, the reward is 0. 

Code:
int64 static GetBlockValue(int nHeight, int64 nFees)
{
    int64 nSubsidy = 10000 * COIN; // 10 000 Coins each block


    if(nHeight < 17280) // no block reward within the first 3 days
        nSubsidy = 0;
    if(nHeight > 10519200) // no block reward after 5 years
        nSubsidy = 0;

    return nSubsidy + nFees;
}

change the block rewards structure and it should be working fine

Available
PM me to rent this space.
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!