message: Fix getwork with wrong header size
diff: @@ -389,10 +389,14 @@ Value getwork(const Array& params, bool fHelp)
  {
  // Parse parameters
  vector<unsigned char> vchData = ParseHex(params[0].get_str());
  - if (vchData.size() != 128)
  + for(int i = 0; i < 4; i++)
  + {
  + vchData.insert(vchData.begin(), 0);
  + }
  +
  + if (vchData.size() != 132)
  throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter");
  CBlock* pdata = (CBlock*)&vchData[0];
  -
  // Byte reverse
  for (int i = 0; i < 128/4; i++)
  ((unsigned int*)pdata)[i] = ByteReverse(((unsigned int*)pdata)[i]);
  