-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wallet: make the segregation height settable #3419
Conversation
src/wallet/wallet2.cpp
Outdated
@@ -2594,6 +2597,9 @@ bool wallet2::store_keys(const std::string& keys_file_name, const epee::wipeable | |||
value2.SetInt(m_key_reuse_mitigation2 ? 1 : 0); | |||
json.AddMember("key_reuse_mitigation2", value2, json.GetAllocator()); | |||
|
|||
value2.SetInt(m_segregation_height); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SetUint
?
src/wallet/wallet2.cpp
Outdated
@@ -125,6 +126,7 @@ namespace | |||
dir /= ".shared-ringdb"; | |||
return dir.string(); | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intentional?
src/simplewallet/simplewallet.cpp
Outdated
const auto pwd_container = get_and_verify_password(); | ||
if (pwd_container) | ||
{ | ||
parse_bool_and_use(args[1], [&](bool r) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The expected value isn't bool but uint64_t.
return m_segregation_height; | ||
|
||
static const bool use_dns = true; | ||
if (use_dns) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean that those who don't want to use the DNS have to compile the code themselves?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The user setting takes precedence
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see the need for this if (use_dns) { ... }
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is because there will likely be a --no-dns flag
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, OK.
89167c5
to
c4122ac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed
via user setting first, then DNS TXT record, hardcoded fallback
c4122ac
to
1e393f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed
1e393f4 wallet: make the segregation height settable (moneromooo-monero)
via user setting first, then DNS TXT record, hardcoded fallback