Title: Can you review this code and tell me if it would work? Post by: utclover on January 01, 2015, 11:18:06 AM right now the block reward for the coin i launched is :
but it does not work the way i expected it to. Code: // block reward between 500 and 20 depending on the difficulty. if i change that part of the code to this: would it work? like would it hard fork at block 550? i mean can you look through the changes and the if and else statments and the "{" and "}" to see if it would work? thank you. Code: int64 nSubsidy = 0; Title: Re: Can you review this code and tell me if it would work? Post by: utclover on January 01, 2015, 02:44:16 PM i commited the changes https://github.com/tuxcoindev/tuxcoin/commit/5799698144a59252648cd8bd06a7beb331f4602f
we'll see if it works. Title: Re: Can you review this code and tell me if it would work? Post by: muddafudda on January 01, 2015, 03:47:53 PM all your nSubsidy should finish in coin.
e.g. if (nSubsidy > 100) nSubsidy = 100; if (nSubsidy > 100) nSubsidy = 100 * COIN; The rest look broken also with the double ifs and other things. Title: Re: Can you review this code and tell me if it would work? Post by: utclover on January 01, 2015, 03:58:59 PM all your nSubsidy should finish in coin. what do you mean?e.g. if (nSubsidy > 100) nSubsidy = 100; if (nSubsidy > 100) nSubsidy = 100 * COIN; The rest look broken also with the double ifs and other things. it wont work? it hard forks at block 550 and now is block 467 i think it will work. can you tell me what you mean about the ifs being broken? to me it looks they are not broken, why do you think its broken? can you give me an example? thank you sorry if i am asking alot of questions. this is the first time i make a coin Title: Re: Can you review this code and tell me if it would work? Post by: utclover on January 02, 2015, 01:23:39 AM It worked ;D
|