Add checkBlock() to Mining interface (mining)

https://github.com/bitcoin/bitcoin/pull/31981

Host: ismaelsadeeq  -  PR author: Sjors

Notes and questions to follow soon!