Bitcoin Forum
August 02, 2024, 11:20:41 AM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Version different coin client's relations?  (Read 138 times)
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 405
Merit: 5


View Profile WWW
March 16, 2018, 09:25:40 AM
Last edit: March 16, 2018, 09:52:18 AM by wsxdrfv
 #1

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.
jnano
Member
**
Offline Offline

Activity: 301
Merit: 74


View Profile
March 16, 2018, 01:47:48 PM
 #2

I don't think anyone can tell but you? It's your custom modified version. Start debugging. Smiley

For starters I'd say, without knowing anything, see if you're identified to the network the same as the version that works.

DannyHamilton
Legendary
*
Offline Offline

Activity: 3472
Merit: 4763



View Profile
March 16, 2018, 04:45:46 PM
 #3

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.
shunsaitakahashi
Member
**
Offline Offline

Activity: 94
Merit: 16

Research, Analyze and Invent Crypto Systems


View Profile WWW
March 16, 2018, 06:14:39 PM
Merited by Foxpup (1)
 #4

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.

Twitter @shunsatakahashi
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 405
Merit: 5


View Profile WWW
March 20, 2018, 06:35:30 AM
 #5

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.
Yes I deleted premine, genesis block generation code at main.cpp. Then the client does not sync with current chain.

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?
starmyc
Full Member
***
Offline Offline

Activity: 198
Merit: 130

Some random software engineer


View Profile
March 20, 2018, 06:50:44 AM
 #6

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.

Hi, I'm just some random software engineer.
You can check my projects: Bitcoin & altcoin balances/addresses listing dumps: https://balances.crypto-nerdz.org/
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!