there is a bug in code, full sync is broken.
Log:
ERROR: ConnectBlock() : coinbase reward exceeded (actual=500000000000 vs calculated=50000000000)
InvalidChainFound: invalid block=0000000006aaf635de85b86559f87f772d207d0116ecf4a8253539552ff56806 height=980950 trust=4845407660789531761261460 blocktrust=130028193633 date=07/07/21 01:
InvalidChainFound: current best=000000000781f9a50f68def6a53a2d641029faaaac3f3201b37f999c3a99b39e height=980949 trust=4845407660789401733067827 blocktrust=118207235452 date=07/07/21 01:
the 980950 block is here:
https://explorer.espers.io/block/0000000006aaf635de85b86559f87f772d207d0116ecf4a8253539552ff56806the reward is 5000.
Block is in blockchain, but
this code reject the reward:
if (nHeight >= 980950) {
nSubsidy = (500 * COIN);
}
This sould be:
if (nHeight > 980950) {