I have two local bitcoin nodes, node1(192.168.105) and node2(192.168.1.101). Firstly, I start node1 to connect the bitcoin network to download some blocks. Then I delete the static dns seeds in file chainparam.cpp for both two nodes. So they both cannot connect to the bitcoin network.
I started node1 with “./src/bitcoind -datadir=/bitcoin_block -listen=1" and node2 with "./src/qt/bitcoin-qt -datadir=/bitcoin_block". And in order to connecting node1, using command "addnode 192.168.1.105:8333" on node2 through the debug window/console.
I checked the node2's debug.log and found "Ignoring getheaders from peer=0 because node is in initial block download". Then I changed the nMinimumChainWork value to a more smaller one and provide -maxtipage when starting node2 to make the following check failed(suggestions from Altcoin connecting nodes). But it still won't sych.
"chainActive.Tip()->GetBlockTime() < (GetTime() - nMaxTipAge)".
Is there anyone can give some advices here? It really stuck me here. Appreciate your help.