Update chain state with best block.
Update chain state with best block.

Rather than updating the new chain state with the hash and height of the
block that was just processed, query the database for the best block.
This is needed because the block that was just processed might be a side
chain block or have caused a reorg.

soapboxsys/ombfullnode,btcsuite/btcd,cjepson/btcd,danoctavian/btcd,dajohi/btcd,jimmysong/btcd,Dirbaio/btcd,jongillham/btcd,hectorj/btcd,ppcsuite/ppcd-old,jcmincke/dcrd,runeaune/btcd,ppcsuite/ppcd,decred/dcrd,runeaune/btcd,ppcsuite/ppcd,ltcsuite/ltcd,btcsuitereleases/btcd,sysbot/btcd,hectorj/btcd,ppcsuite/ppcd-old,adiabat/btcd,CryptocurrencyCabal/htcd,qchain/btcd,btcsuitereleases/btcd,qchain/btcd,wallclockbuilder/btcd,pkothbauer/btcd,Stash-Crypto/btcd,jrick/dcrd,cqswxj2013/btcd,DanielKrawisz/btcd,dan-da/btcd,jrick/btcd,toddfries/btcd,BitGo/prova,Evil-Coin/Evil,Dirbaio/btcd,jrick/btcd,jongillham/btcd,Cleawing/btcd,mathiasrw/btcd,jimmysong/btcd,glv2/ppcd,davecgh/btcd,soapboxsys/ombfullnode,FactomProject/btcd,danoctavian/btcd,jcmincke/dcrd,Evil-Coin/Evil,aakselrod/btcd,tb00/btcd,stevenroose/btcd,DanielKrawisz/btcd,btcsuite/btcd,cjepson/btcd,decred/dcrd,BitGo/prova,ltcsuite/ltcd,dajohi/btcd,pkothbauer/btcd,dan-da/btcd,Roasbeef/btcd,cqswxj2013/btcd,1d4Nf6/btcd,dajohi/btcd,Dirbaio/btcd,Cleawing/btcd,Roasbeef/btcd,adiabat/btcd,tb00/btcd,CryptocurrencyCabal/htcd,stevenroose/btcd,Stash-Crypto/btcd,aakselrod/btcd,FactomProject/btcd,wallclockbuilder/btcd,davecgh/btcd,mathiasrw/btcd,sysbot/btcd,jrick/dcrd,glv2/ppcd,jrick/btcd,1d4Nf6/btcd,toddfries/btcd,jcmincke/dcrd