Hello dnp,
it's a fresh wallet.dat too, it ran okay earlier in the day and was all caught up with the one node at that time.
The "network" primarily has been the node I published earlier in the week and one Windows 7 node which is connected with it.
About 10 hours ago, I rebooted my hypervisor and had forgot to restart the Windows wallet so that there would be at least one connection to the other node.
I've started it back up and also ran another test with the updated code on Ubuntu 18.04 LTS and it is syncing now too.
I see you're not exactly running my build. There are some key differences in your output compared to what is produced by the published code.
testcoins@carpdiem:~$ rc.ndl2 start
nice --adjustment=2 /usr/local/bin/noodly2d-0862 -port=24021 -rpcport=12022 -txindex
testcoins@carpdiem:~$ Noodlyappendagecoin server starting
noodly2d-0862: main.cpp:1802: bool SetBestChain(CValidationState&, CBlockIndex*): Assertion `pfork != NULL' failed.
2018-10-20 17:49:08 Noodlyappendagecoin version v0.8.6.21-unk-dnp (Oct 20 2018, 13:17:03)
2018-10-20 17:49:08 Using OpenSSL version OpenSSL 1.0.2p 14 Aug 2018
2018-10-20 17:49:21 nFileVersion = 80621
Notably, the src/main.cpp line cited in your assertion error does not match up here. Your code suggests SetBestChain is defined starting in line 1802 while in the code I've shared it is declared in line 1784.
There are some other notable differences during startup I have highlighted above from your post.
Here is what a debug.log startup sequence looks like with the code I have shared.
2018-10-21 05:09:48 Noodlyappendagecoin version v0.8.6.2 (2018-10-16 00:37:04 -0500)
2018-10-21 05:09:48 Using OpenSSL version OpenSSL 1.0.1 14 Mar 2012
2018-10-21 05:09:48 Default data directory /home/ubuntu/.noodlyappendagecoin
2018-10-21 05:09:48 Using data directory /home/ubuntu/.noodlyappendagecoin
2018-10-21 05:09:48 Using at most 125 connections (1024 file descriptors available)
2018-10-21 05:09:48 Using 6 threads for script verification
2018-10-21 05:09:48 init message: Verifying wallet...
2018-10-21 05:09:48 dbenv.open LogDir=/home/ubuntu/.noodlyappendagecoin/database ErrorFile=/home/ubuntu/.noodlyappendagecoin/db.log
2018-10-21 05:09:48 Bound to [::]:40021
2018-10-21 05:09:48 Bound to 0.0.0.0:40021
2018-10-21 05:09:48 scrypt: using scrypt-sse2 as built.
2018-10-21 05:09:48 init message: Loading block index...
2018-10-21 05:09:48 Opening LevelDB in /home/ubuntu/.noodlyappendagecoin/blocks/index
2018-10-21 05:09:48 Opened LevelDB successfully
2018-10-21 05:09:48 Opening LevelDB in /home/ubuntu/.noodlyappendagecoin/chainstate
2018-10-21 05:09:48 Opened LevelDB successfully
2018-10-21 05:09:48 LoadBlockIndexDB(): last block file = 0
2018-10-21 05:09:48 LoadBlockIndexDB(): transaction index disabled
2018-10-21 05:09:48 Initializing databases...
2018-10-21 05:09:48 45e34031cd491ea08d7224b91435c465cd40e0837642d6cfd1cccad93122e901
2018-10-21 05:09:48 45e34031cd491ea08d7224b91435c465cd40e0837642d6cfd1cccad93122e901
2018-10-21 05:09:48 4fc0120077bbf01025690bb2b924f60729b43be8e63888c1be84d6efdeb48c74
2018-10-21 05:09:48 CBlock(hash=45e34031cd491ea08d7224b91435c465cd40e0837642d6cfd1cccad93122e901, input=010000000000000000000000000000000000000000000000000000000000000000000000748cb4deefd684bec18838e6e83bb42907f624b9b20b692510f0bb770012c04f18dac452f0ff0f1e3a6c1a00, PoW=0000040936beff57487bfa2a3705ead129933e72e57eaff1789ec4155e5fb358, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000, hashMerkleRoot=4fc0120077bbf01025690bb2b924f60729b43be8e63888c1be84d6efdeb48c74, nTime=1388632600, nBits=1e0ffff0, nNonce=1731642, vtx=1)
2018-10-21 05:09:48 CTransaction(hash=4fc0120077bbf01025690bb2b924f60729b43be8e63888c1be84d6efdeb48c74, ver=1, vin.size=1, vout.size=1, nLockTime=0)
CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000, 4294967295), coinbase 04ffff001d0104404e657720596f726b2054696d65732033312d31322d32303133203a20536f205 6616c7561626c652c20497420436f756c6420416c6d6f7374204265205265616c)
CTxOut(nValue=50.00000000, scriptPubKey=040184710fa689ad5023690c80f3a4)
vMerkleTree: 4fc0120077bbf01025690bb2b924f60729b43be8e63888c1be84d6efdeb48c74
2018-10-21 05:09:48 Pre-allocating up to position 0x1000000 in blk00000.dat
2018-10-21 05:09:48 SetBestChain: new best=45e34031cd491ea08d7224b91435c465cd40e0837642d6cfd1cccad93122e901 height=0 log2_work=20.000022 tx=1 date=2014-01-02 03:16:40 progress=0.000001
2018-10-21 05:09:48 init message: Verifying blocks...
2018-10-21 05:09:48 block index 86ms
2018-10-21 05:09:48 init message: Loading wallet...
2018-10-21 05:09:49 nFileVersion = 80602
2018-10-21 05:09:49 Performing wallet upgrade to 60000
2018-10-21 05:09:49 keypool added key 1, size=1
.
.
.
2018-10-21 05:09:49 keypool added key 101, size=101
2018-10-21 05:09:49 keypool reserve 1
2018-10-21 05:09:49 keypool keep 1
2018-10-21 05:09:49 wallet 633ms
2018-10-21 05:09:49 init message: Loading addresses...
2018-10-21 05:09:49 ERROR: CAddrman::Read() : open failed
2018-10-21 05:09:49 Invalid or missing peers.dat; recreating
2018-10-21 05:09:49 Loaded 0 addresses from peers.dat 0ms
2018-10-21 05:09:49 mapBlockIndex.size() = 1
2018-10-21 05:09:49 nBestHeight = 0
2018-10-21 05:09:49 setKeyPool.size() = 100
2018-10-21 05:09:49 mapWallet.size() = 0
2018-10-21 05:09:49 mapAddressBook.size() = 1
2018-10-21 05:09:49 upnp thread start
2018-10-21 05:09:49 dnsseed thread start
2018-10-21 05:09:49 Loading addresses from DNS seeds (could take a while)
2018-10-21 05:09:49 0 addresses found from DNS seeds
2018-10-21 05:09:49 dnsseed thread exit
2018-10-21 05:09:49 net thread start
2018-10-21 05:09:49 addcon thread start
2018-10-21 05:09:49 opencon thread start
The sources in the repository are nearly identical to the original code published in 2014.
The changes are all cleanly visible in the commit history.
I have also prepared a Linux binary.
You may find it on the releases page of the repository
here.
Please note it too is linked with Berkeley DB v5.3.
i'm also a bit unclear, it this simply a 'test' network or a serious attempt at hardforking everyone over to the new pch value?
This is a transparent and serious attempt to repair the network and to prevent unintentional forks due to the error reports and failures shared here last weekend.
In terms of inspecting the changes to the original code and seeing what was modified is exactly what was advertised - I think the commits make this possible for most people quite easily.
I was motivated to do the work because it would have a serious impact on the health and longevity of the Noodlyappendagecoin network.
Best Regards,
-Chicago