wallet: on first refresh, start off with a quantized height

for privacy reasons, so an untrusted node can't easily track
wallets from IP address to IP address, etc. The granularity
is 1024 blocks, which is about a day and a half.
This commit is contained in:
moneromooo-monero 2018-06-13 12:16:07 +01:00
parent 62f3f0480a
commit 8db23df581
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
5 changed files with 36 additions and 29 deletions

View file

@ -104,7 +104,7 @@ namespace tools
m_stop = false;
m_net_server.add_idle_handler([this](){
try {
if (m_wallet) m_wallet->refresh();
if (m_wallet) m_wallet->refresh(m_trusted_daemon);
} catch (const std::exception& ex) {
LOG_ERROR("Exception at while refreshing, what=" << ex.what());
}
@ -2986,7 +2986,7 @@ int main(int argc, char** argv) {
wal->stop();
});
wal->refresh();
wal->refresh(command_line::get_arg(*vm, arg_trusted_daemon));
// if we ^C during potentially length load/refresh, there's no server loop yet
if (quit)
{