Advertisement
Guest User

Untitled

a guest
Sep 15th, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. CWalletTx wtx;
  2.  
  3. std::string sNarr;
  4. sNarr="";
  5. /*
  6. if (params.size() > 2 && params[2].type() != null_type && !params[2].get_str().empty())
  7. sNarr = params[2].get_str();
  8.  
  9. if (sNarr.length() > 24)
  10. throw runtime_error("Narration must be 24 characters or less.");
  11. */
  12.  
  13. // Wallet comments
  14. if (params.size() > 2 && params[2].type() != null_type && !params[2].get_str().empty())
  15. wtx.mapValue["comment"] = params[2].get_str();
  16. if (params.size() > 3 && params[3].type() != null_type && !params[3].get_str().empty())
  17. wtx.mapValue["to"] = params[3].get_str();
  18.  
  19. if (pwalletMain->IsLocked())
  20. throw JSONRPCError(RPC_WALLET_UNLOCK_NEEDED, "Error: Please enter the wallet passphrase with walletpassphrase first.");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement