message: [wallet] Fix a bug where autocombinerewards was generating too big TXs
diff: @@ -3644,6 +3644,10 @@ void CWallet::AutoCombineDust()
  vector<COutput> vCoins, vRewardCoins;
  vCoins = it->second;
  + // We don't want the tx to be refused for being too large
  + // we use 50 bytes as a base tx size (2 output: 2*34 + overhead: 10 -> 90 to be certain)
  + unsigned int txSizeEstimate = 90;
  +
  //find masternode rewards that need to be combined
  CCoinControl* coinControl = new CCoinControl();
  CAmount nTotalRewardsValue = 0;
  @@ -3659,6 +3663,10 @@ void CWallet::AutoCombineDust()
  coinControl->Select(outpt);
  vRewardCoins.push_back(out);
  nTotalRewardsValue += out.Value();
  + // Around 180 bytes per input. We use 190 to be certain
  + txSizeEstimate += 190;
  + if (txSizeEstimate >= MAX_STANDARD_TX_SIZE - 200)
  + break;
  }
  //if no inputs found then return
  