message: Miner: use std methods instead of boost for timing conditions
diff: @@ -445,7 +445,7 @@ UniValue getblocktemplate(const UniValue& params, bool fHelp)
  if (!lpval.isNull()) {
  // Wait to respond until either the best block changes, OR a minute has passed and there are more transactions
  uint256 hashWatchedChain;
  - boost::system_time checktxtime;
  + std::chrono::steady_clock::time_point checktxtime;
  unsigned int nTransactionsUpdatedLastLP;
  if (lpval.isStr()) {
  @@ -463,15 +463,16 @@ UniValue getblocktemplate(const UniValue& params, bool fHelp)
  // Release the wallet and main lock while waiting
  LEAVE_CRITICAL_SECTION(cs_main);
  {
  - checktxtime = boost::get_system_time() + boost::posix_time::minutes(1);
  + checktxtime = std::chrono::steady_clock::now() + std::chrono::minutes(1);
  boost::unique_lock<boost::mutex> lock(csBestBlock);
  while (chainActive.Tip()->GetBlockHash() == hashWatchedChain && IsRPCRunning()) {
  - if (!cvBlockChange.timed_wait(lock, checktxtime)) {
  + if (cvBlockChange.wait_until(lock, checktxtime) == std::cv_status::timeout)
  + {
  // Timeout: Check transactions for update
  if (mempool.GetTransactionsUpdated() != nTransactionsUpdatedLastLP)
  break;
  - checktxtime += boost::posix_time::seconds(10);
  + checktxtime += std::chrono::seconds(10);
  }
  }
  }
  