message: allow specification of ntime in peercoin-tx
diff: @@ -48,6 +48,7 @@ static void SetupBitcoinTxArgs()
  gArgs.AddArg("in=TXID:VOUT(:SEQUENCE_NUMBER)", "Add input to TX", ArgsManager::ALLOW_ANY, OptionsCategory::COMMANDS);
  gArgs.AddArg("locktime=N", "Set TX lock time to N", ArgsManager::ALLOW_ANY, OptionsCategory::COMMANDS);
  gArgs.AddArg("nversion=N", "Set TX version to N", ArgsManager::ALLOW_ANY, OptionsCategory::COMMANDS);
  + gArgs.AddArg("ntime=N", "Set TX timestamp to N", ArgsManager::ALLOW_ANY, OptionsCategory::COMMANDS);
  gArgs.AddArg("outaddr=VALUE:ADDRESS", "Add address-based output to TX", ArgsManager::ALLOW_ANY, OptionsCategory::COMMANDS);
  gArgs.AddArg("outdata=[VALUE:]DATA", "Add data-based output to TX", ArgsManager::ALLOW_ANY, OptionsCategory::COMMANDS);
  gArgs.AddArg("outmultisig=VALUE:REQUIRED:PUBKEYS:PUBKEY1:PUBKEY2:....[:FLAGS]", "Add Pay To n-of-m Multi-sig output to TX. n = REQUIRED, m = PUBKEYS. "
  @@ -207,6 +208,15 @@ static void MutateTxLocktime(CMutableTransaction& tx, const std::string& cmdVal)
  tx.nLockTime = (unsigned int) newLocktime;
  }
  +static void MutateTxTime(CMutableTransaction& tx, const std::string& cmdVal)
  +{
  + int64_t newTime;
  + if (!ParseInt64(cmdVal, &newTime) || newTime < 0LL || newTime > 0xffffffffLL)
  + throw std::runtime_error("Invalid TX time requested: '" + cmdVal + "'");
  +
  + tx.nTime = (unsigned int) newTime;
  +}
  +
  static void MutateTxAddInput(CMutableTransaction& tx, const std::string& strInput)
  {
  std::vector<std::string> vStrInputParts;
  @@ -657,6 +667,8 @@ static void MutateTx(CMutableTransaction& tx, const std::string& command,
  MutateTxVersion(tx, commandVal);
  else if (command == "locktime")
  MutateTxLocktime(tx, commandVal);
  + else if (command == "ntime")
  + MutateTxTime(tx, commandVal);
  else if (command == "delin")
  MutateTxDelInput(tx, commandVal);
  