Title: Test Coin going wrong Post by: Egoista on January 08, 2014, 11:18:00 PM Hello, I was trying to run an altcoin I compiled but ran into a problem.
According to this guide: https://bitcointalk.org/index.php?topic=225690.0, Quote from: fisheater 7. Create genesis block. Some people get stuck there, it's really easy: - find LoadBlockIndex() function, inside, change: - paraphrase (pszTimestamp) to any recent news phase. - get the latest unix time (do a google), and put in block.nTime. - set any nNonce (doesn't really matter) you can change the time/nonce for testnet too, if you want to use it. After you are done, save it. Now the genesis block will not match the hash check and merkle root check, it doesn't matter. The first time you run the compiled code (daemon or qt), it will say "assertion failed". Just exit the program, go to config dir (under AppData/Roaming), open the debug.log, get the hash after "block.GetHash() = ", copy and paste it to the beginnig of main.cpp, hashGenesisBlock. Also get the merkle root in the same log file, paste it to the ... position in the following code, in LoadBlockIndex() Quote assert(block.hashMerkleRoot == uint256("0x...")); recompile the code, and genesis block created! BTW, don't forget to change "txNew.vout[0].nValue = " to the coin per block you defined, it doesn't matter to leave as 50, just be consistent with your coin per block (do this before adjust the hash and m-root, otherwise they will be changed again). I don't see "block.GetHash()=" or the merkle root anywhere in the debug.log. What I get is this? Code: test version v1.4.0.0-g3aaa7ba-beta () Has anyone ran into this problem? What was your fix? Thanks in advance. EDIT: I suppose that it is also worth mentioning that I am running on Debian Stable. Title: Re: Test Coin going wrong Post by: energeez on January 09, 2014, 01:40:59 AM i've neva had this problem , try to hire a developer about it
Title: Re: Test Coin going wrong Post by: best-miner.com on January 09, 2014, 02:51:43 AM Sorry for not help, up for more guys to check
Title: Re: Test Coin going wrong Post by: Egoista on January 10, 2014, 07:59:51 PM Thank you for at least trying. Well now that I see that this doesn't happen very often, I changed it back to what it was to when it actually ran, so now it runs.
So I guess now my question would be: How do I start a new genesis block? What would I have to change? I need this to test a coin out. Thanks in advance :) |