private void check_wallet_has_passphrase()
{
if (!can_exit)
{
JObject j = bc.WalletPassphrase("a_string_which_is_definitely_not_the_password", 1);
if (j.HasValues)
{
string error = j["error"]["message"].ToString();
if (error.Contains("incorrect"))
{
//Nothing to do - they have made a passphrase
}
else
{
TopMostMessageBox.Show("You must set a passphrase on your wallet.\n\nOpen the client and select Settings > Encrypt Wallet.", "Bticoin QR Popup", MessageBoxButtons.OK); //TODO translate
can_exit = true;
}
}
}
}