Revert "Bitcoin code simplification"
Revert "Bitcoin code simplification"

This reverts commit 6c3d43b7dddf40d5ae1272bedfee7a40d2a7aca2.

coinfoundry/miningcore,coinfoundry/miningcore,coinfoundry/miningcore,coinfoundry/miningcore