w0w denominations
This commit is contained in:
parent
83b06a7ef8
commit
8ab87421d9
|
@ -1013,9 +1013,9 @@ namespace cryptonote
|
||||||
switch (decimal_point)
|
switch (decimal_point)
|
||||||
{
|
{
|
||||||
case 11:
|
case 11:
|
||||||
case 9:
|
case 8:
|
||||||
case 6:
|
case 5:
|
||||||
case 3:
|
case 2:
|
||||||
case 0:
|
case 0:
|
||||||
default_decimal_point = decimal_point;
|
default_decimal_point = decimal_point;
|
||||||
break;
|
break;
|
||||||
|
@ -1037,14 +1037,14 @@ namespace cryptonote
|
||||||
{
|
{
|
||||||
case 11:
|
case 11:
|
||||||
return "wownero";
|
return "wownero";
|
||||||
case 9:
|
case 8:
|
||||||
return "millinero";
|
return "verywow";
|
||||||
case 6:
|
case 5:
|
||||||
return "micronero";
|
return "muchwow";
|
||||||
case 3:
|
case 2:
|
||||||
return "nanonero";
|
return "suchwow";
|
||||||
case 0:
|
case 0:
|
||||||
return "piconero";
|
return "dust";
|
||||||
default:
|
default:
|
||||||
ASSERT_MES_AND_THROW("Invalid decimal point specification: " << decimal_point);
|
ASSERT_MES_AND_THROW("Invalid decimal point specification: " << decimal_point);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2683,13 +2683,13 @@ bool simple_wallet::set_unit(const std::vector<std::string> &args/* = std::vecto
|
||||||
|
|
||||||
if (unit == "wownero")
|
if (unit == "wownero")
|
||||||
decimal_point = CRYPTONOTE_DISPLAY_DECIMAL_POINT;
|
decimal_point = CRYPTONOTE_DISPLAY_DECIMAL_POINT;
|
||||||
else if (unit == "millinero")
|
else if (unit == "verywow")
|
||||||
decimal_point = CRYPTONOTE_DISPLAY_DECIMAL_POINT - 3;
|
decimal_point = CRYPTONOTE_DISPLAY_DECIMAL_POINT - 4;
|
||||||
else if (unit == "micronero")
|
else if (unit == "muchwow")
|
||||||
decimal_point = CRYPTONOTE_DISPLAY_DECIMAL_POINT - 6;
|
decimal_point = CRYPTONOTE_DISPLAY_DECIMAL_POINT - 7;
|
||||||
else if (unit == "nanonero")
|
else if (unit == "suchwow")
|
||||||
decimal_point = CRYPTONOTE_DISPLAY_DECIMAL_POINT - 9;
|
decimal_point = CRYPTONOTE_DISPLAY_DECIMAL_POINT - 10;
|
||||||
else if (unit == "piconero")
|
else if (unit == "dust")
|
||||||
decimal_point = 0;
|
decimal_point = 0;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -3355,7 +3355,7 @@ simple_wallet::simple_wallet()
|
||||||
"ask-password <0|1|2 (or never|action|decrypt)>\n "
|
"ask-password <0|1|2 (or never|action|decrypt)>\n "
|
||||||
" action: ask the password before many actions such as transfer, etc\n "
|
" action: ask the password before many actions such as transfer, etc\n "
|
||||||
" decrypt: same as action, but keeps the spend key encrypted in memory when not needed\n "
|
" decrypt: same as action, but keeps the spend key encrypted in memory when not needed\n "
|
||||||
"unit <wownero|millinero|micronero|nanonero|piconero>\n "
|
"unit <wownero|verywow|muchwow|suchwow|dust>\n "
|
||||||
" Set the default wownero (sub-)unit.\n "
|
" Set the default wownero (sub-)unit.\n "
|
||||||
"min-outputs-count [n]\n "
|
"min-outputs-count [n]\n "
|
||||||
" Try to keep at least that many outputs of value at least min-outputs-value.\n "
|
" Try to keep at least that many outputs of value at least min-outputs-value.\n "
|
||||||
|
@ -3854,7 +3854,7 @@ bool simple_wallet::set_variable(const std::vector<std::string> &args)
|
||||||
CHECK_SIMPLE_VARIABLE("refresh-type", set_refresh_type, tr("full (slowest, no assumptions); optimize-coinbase (fast, assumes the whole coinbase is paid to a single address); no-coinbase (fastest, assumes we receive no coinbase transaction), default (same as optimize-coinbase)"));
|
CHECK_SIMPLE_VARIABLE("refresh-type", set_refresh_type, tr("full (slowest, no assumptions); optimize-coinbase (fast, assumes the whole coinbase is paid to a single address); no-coinbase (fastest, assumes we receive no coinbase transaction), default (same as optimize-coinbase)"));
|
||||||
CHECK_SIMPLE_VARIABLE("priority", set_default_priority, tr("0, 1, 2, 3, or 4, or one of ") << join_priority_strings(", "));
|
CHECK_SIMPLE_VARIABLE("priority", set_default_priority, tr("0, 1, 2, 3, or 4, or one of ") << join_priority_strings(", "));
|
||||||
CHECK_SIMPLE_VARIABLE("ask-password", set_ask_password, tr("0|1|2 (or never|action|decrypt)"));
|
CHECK_SIMPLE_VARIABLE("ask-password", set_ask_password, tr("0|1|2 (or never|action|decrypt)"));
|
||||||
CHECK_SIMPLE_VARIABLE("unit", set_unit, tr("wownero, millinero, micronero, nanonero, piconero"));
|
CHECK_SIMPLE_VARIABLE("unit", set_unit, tr("wownero, verywow, muchwow, suchwow, dust"));
|
||||||
CHECK_SIMPLE_VARIABLE("min-outputs-count", set_min_output_count, tr("unsigned integer"));
|
CHECK_SIMPLE_VARIABLE("min-outputs-count", set_min_output_count, tr("unsigned integer"));
|
||||||
CHECK_SIMPLE_VARIABLE("min-outputs-value", set_min_output_value, tr("amount"));
|
CHECK_SIMPLE_VARIABLE("min-outputs-value", set_min_output_value, tr("amount"));
|
||||||
CHECK_SIMPLE_VARIABLE("merge-destinations", set_merge_destinations, tr("0 or 1"));
|
CHECK_SIMPLE_VARIABLE("merge-destinations", set_merge_destinations, tr("0 or 1"));
|
||||||
|
|
Loading…
Reference in New Issue