Title: Version different coin client's relations? Post by: wsxdrfv on March 16, 2018, 09:25:40 AM So lets say there is 0.1 version coin client and window build.
Run well. After, I revised sourcecode a little(delete some lines at main.cpp about genesis block) and some icons, and make 0.1.1 version. And made 0.1.1 windows build. But this window client(0.1.1) does not catching up block? Connection icon shows, but catching up block icon does not appears so (out of sync) status now, even after few minutes. What is problem and how to fix? Thanks. Title: Re: Version different coin client's relations? Post by: jnano on March 16, 2018, 01:47:48 PM I don't think anyone can tell but you? It's your custom modified version. Start debugging. :)
For starters I'd say, without knowing anything, see if you're identified to the network the same as the version that works. Title: Re: Version different coin client's relations? Post by: DannyHamilton on March 16, 2018, 04:45:46 PM delete some lines at main.cpp about genesis block . . . does not catching up . . . What is problem and how to fix? It sounds like you broke it when you deleted the lines. Perhaps you should not have done that? Put the lines back, and see if it starts catching up again. Then, figure out which line you shouldn't have deleted. Title: Re: Version different coin client's relations? Post by: shunsaitakahashi on March 16, 2018, 06:14:39 PM Does the client you modified have tests? If yes, run all the tests. If the tests have any good coverage, there should be some failures. That will help you isolate the problem.
Unfortunately, many blockchains are shortchanging the development process by not building a full set of tests with high code coverage. In that case, manual debugging is your only option. Title: Re: Version different coin client's relations? Post by: wsxdrfv on March 20, 2018, 06:35:30 AM Does the client you modified have tests? If yes, run all the tests. If the tests have any good coverage, there should be some failures. That will help you isolate the problem. Yes I deleted premine, genesis block generation code at main.cpp. Then the client does not sync with current chain. Unfortunately, many blockchains are shortchanging the development process by not building a full set of tests with high code coverage. In that case, manual debugging is your only option. After I restore the main.cpp file to original, client sync well. So this means, I should not delete any lines from main.cpp? What is standard of existing client recognize new source-revised client as different with them and not to accept them? Title: Re: Version different coin client's relations? Post by: starmyc on March 20, 2018, 06:50:44 AM And made 0.1.1 windows build. But this window client(0.1.1) does not catching up block? Connection icon shows, but catching up block icon does not appears so (out of sync) status now, even after few minutes. If you modify the genesis block, you're building a brand new blockchain with a brand new protocol, and it will be totally incompatible with the old chain. So you've to delete/move your old data directory to let your new chain working. |