message: [RPC][Bug] Fix masternodecurrent: return next winner, not rank-1 mn
diff: @@ -198,7 +198,7 @@ UniValue masternodecurrent (const UniValue& params, bool fHelp)
  if (fHelp || (params.size() != 0))
  throw std::runtime_error(
  "masternodecurrent\n"
  - "\nGet current masternode winner\n"
  + "\nGet current masternode winner (scheduled to be paid next).\n"
  "\nResult:\n"
  "{\n"
  @@ -212,10 +212,11 @@ UniValue masternodecurrent (const UniValue& params, bool fHelp)
  "\nExamples:\n" +
  HelpExampleCli("masternodecurrent", "") + HelpExampleRpc("masternodecurrent", ""));
  - CMasternode* winner = mnodeman.GetCurrentMasterNode(1);
  + const int nHeight = WITH_LOCK(cs_main, return chainActive.Height() + 1);
  + int nCount = 0;
  + CMasternode* winner = mnodeman.GetNextMasternodeInQueueForPayment(nHeight, true, nCount);
  if (winner) {
  UniValue obj(UniValue::VOBJ);
  -
  obj.push_back(Pair("protocol", (int64_t)winner->protocolVersion));
  obj.push_back(Pair("txhash", winner->vin.prevout.hash.ToString()));
  obj.push_back(Pair("pubkey", CBitcoinAddress(winner->pubKeyCollateralAddress.GetID()).ToString()));
  