Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CWalletTx wtx;
- std::string sNarr;
- sNarr="";
- /*
- if (params.size() > 2 && params[2].type() != null_type && !params[2].get_str().empty())
- sNarr = params[2].get_str();
- if (sNarr.length() > 24)
- throw runtime_error("Narration must be 24 characters or less.");
- */
- // Wallet comments
- if (params.size() > 2 && params[2].type() != null_type && !params[2].get_str().empty())
- wtx.mapValue["comment"] = params[2].get_str();
- if (params.size() > 3 && params[3].type() != null_type && !params[3].get_str().empty())
- wtx.mapValue["to"] = params[3].get_str();
- if (pwalletMain->IsLocked())
- 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