Consensus: Remove calls to error() and FormatStateMessage()
Consensus: Remove calls to error() and FormatStateMessage()

- backports bitcoin/bitcoin@93fc58c7426b5f3c68f2657626698846fb512ee8
Darknet-Crypto/Darknet,PIVX-Project/PIVX,Darknet-Crypto/Darknet,PIVX-Project/PIVX,Darknet-Crypto/Darknet,PIVX-Project/PIVX,PIVX-Project/PIVX,PIVX-Project/PIVX,PIVX-Project/PIVX,PIVX-Project/PIVX,Darknet-Crypto/Darknet,PIVX-Project/PIVX,Darknet-Crypto/Darknet,Darknet-Crypto/Darknet,PIVX-Project/PIVX