message: Fix bad scope in miner check causing failure to create blocks.
diff: @@ -115,10 +115,11 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& sc
  std::shared_ptr<CWallet> pwalletMain = nullptr;
  if (fProofOfStake) {
  pwalletMain = GetMainWallet();
  - if (!pwalletMain)
  + if (!pwalletMain) {
  error("Failing to get the Main Wallet for CreateNewBlock with Proof of Stake\n");
  return nullptr;
  }
  + }
  pblocktemplate.reset(new CBlockTemplate());
  