I'm trying to sync from scratch with the current master, but my client seems to be progressively banning every node, because of errors like this:
2017-11-14 15:48:55 UTC received block 20f4e74f88f6f3b8a7bc
2017-11-14 15:48:55 UTC CBlock(hash=20f4e74f88f6f3b8a7bc, ver=1, hashPrevBlock=0000000fa61257904829, hashMerkleRoot=75e63f919b, nTime=1401358630, nBits=1d2eb643, nNonce=0, vtx=1, vchBlockSig=304402201ede3d80083db34e712389ba2a0d3ebfb27262341bba1cd59adccae30fc69217022069b8dec9b062db5046e0281c2264d8c28974c84a58cdf707f72e74d71d8dcc48)
2017-11-14 15:48:55 UTC CBlock General PoB(nBurnBits=1e243c7f nEffectiveBurnCoins=23149722 (formatted 23.149722))
2017-11-14 15:48:55 UTC CBlock Specific PoB(fProofOfBurn true, burnBlkHeight 523, burnCTx 6, burnCTxOut 1)
2017-11-14 15:48:55 UTC Coinbase(hash=75e63f919b, nTime=1401358630, ver=1, vin.size=1, vout.size=1, nLockTime=0)
CTxIn(COutPoint(0000000000, -1), coinbase 04260987530102062f503253482f)
CTxOut(nValue=153.34, scriptPubKey=02734c43be100f26664777b5473adadc666798241d7d7e0daaf85c65797c5eb99a OP_CHECKSIG)
vMerkleTree:
2017-11-14 15:48:55 UTC ERROR: CheckBlock() : coinbase reward exceeded 153.34 > 50.00
2017-11-14 15:48:55 UTC ERROR: ProcessBlock() : CheckBlock FAILED
2017-11-14 15:48:55 UTC disconnecting node 203.59.19.234:58643
2017-11-14 15:48:55 UTC socket select error 9
2017-11-14 15:48:55 UTC Disconnected 203.59.19.234:58643 for misbehavior (score=100)
It has banned 20 different peers so far. It has only synced 530 blocks in 2 hours.
I'm not sure if (for example) 20f4e74f88f6f3b8a7bc is a block at the very start of the chain, or it's a peer offering a current block, which may be why it is being rejected. Could there be an issue with the code verifying very old blocks, performing post-0.4 validation on pre-0.4 blocks? Has anyone tried a sync from scratch with the current code?
----
Update: deleted the blockchain, it has stalled again at block 530:
2017-11-14 16:07:32 UTC SetBestChain: new best=0000000c805e33073348 height=530 trust=531 moneysupply=10490.80 nEffectiveBurnCoins=7.109914
2017-11-14 16:07:32 UTC ProcessBlock: ACCEPTED
2017-11-14 16:07:32 UTC received block cb1adbc10b7df830d01b
2017-11-14 16:07:32 UTC CBlock(hash=cb1adbc10b7df830d01b, ver=1, hashPrevBlock=0000000c805e33073348, hashMerkleRoot=e7a965efef, nTime=1401357962, nBits=1d331d49, nNonce=0, vtx=1, vchBlockSig=304402200cf99e01f0ff2beb278a549d59fff05132bf8c5b1d2102d84d135f8c58ed780d02206ab3fe330fb43e100d51afc732b9f71fa73d47e41277c7074191a18e5f3e025a)
2017-11-14 16:07:32 UTC CBlock General PoB(nBurnBits=1e75fc12 nEffectiveBurnCoins=7109914 (formatted 7.109914))
2017-11-14 16:07:32 UTC CBlock Specific PoB(fProofOfBurn true, burnBlkHeight 523, burnCTx 1, burnCTxOut 1)
2017-11-14 16:07:32 UTC Coinbase(hash=e7a965efef, nTime=1401357962, ver=1, vin.size=1, vout.size=1, nLockTime=0)
CTxIn(COutPoint(0000000000, -1), coinbase 048a0687530101062f503253482f)
CTxOut(nValue=205.98, scriptPubKey=038a52f85595a8d8e7c1d8c256baeee2c9ea7ad0bf7fe534575be4eb47cdbf18f6 OP_CHECKSIG)
vMerkleTree:
2017-11-14 16:07:32 UTC ERROR: CheckBlock() : coinbase reward exceeded 205.98 > 50.00
2017-11-14 16:07:32 UTC ERROR: ProcessBlock() : CheckBlock FAILED
The following block seems to link back to 530 (hashPrevBlock=0000000c805e33073348) but it is rejected by CheckBlock()