From 8686e9bfe8b6514b9743397258f48cf20b256e8a Mon Sep 17 00:00:00 2001 From: jwinterm Date: Fri, 19 Jun 2026 10:08:46 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20vanishing=20balance=20=E2=80=94=20Restor?= =?UTF-8?q?eHeightLookup=20used=20monero=20block=20time=20(120s/720-per-da?= =?UTF-8?q?y)=20to=20extrapolate=20the=20date->height=20table=20past=20202?= =?UTF-8?q?3,=20computing=20restore=20heights=20~400k=20blocks=20INTO=20TH?= =?UTF-8?q?E=20FUTURE=20for=202026=20wallets.=20Restore=20height=20>=20cha?= =?UTF-8?q?in=20tip=20=3D>=20wallet=20skips=20output-scan=20on=20every=20r?= =?UTF-8?q?eal=20block=20=3D>=20received=20funds=20never=20recorded=20(poo?= =?UTF-8?q?l=20scan=20unaffected,=20hence=20pool-shows-then-vanishes).=20U?= =?UTF-8?q?se=20wownero=20300s/288-per-day.=20Also:=20block=20explorers=20?= =?UTF-8?q?->=20explore.wownero.com=20/=20explore.wowne.ro?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/RestoreHeightLookup.h | 9 +++++---- src/utils/config.cpp | 9 +++------ 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/utils/RestoreHeightLookup.h b/src/utils/RestoreHeightLookup.h index 209a84b3..7f71cd0b 100644 --- a/src/utils/RestoreHeightLookup.h +++ b/src/utils/RestoreHeightLookup.h @@ -27,9 +27,10 @@ struct RestoreHeightLookup { return 1; } - int blockTime = 120; - int blocksPerDay = 720; - int blockCalcClearance = blocksPerDay * 5; + int blockTime = 300; // wownero: 5-minute blocks (monero is 120s) + int blocksPerDay = 288; // wownero: 86400/300 (monero is 720). Using monero's 720/120 here put + int blockCalcClearance = blocksPerDay * 5; // post-table creation dates ~400k blocks into the FUTURE + // => restore height > chain tip => wallet scans NOTHING => balance always 0 QList values = this->data.keys(); @@ -72,7 +73,7 @@ struct RestoreHeightLookup { } while (heightData < height) { - heightData += 720; // blocks per day + heightData += 288; // wownero blocks per day (monero is 720) timestamp += 86400; // seconds in day } diff --git a/src/utils/config.cpp b/src/utils/config.cpp index 8a2925bc..09910f90 100644 --- a/src/utils/config.cpp +++ b/src/utils/config.cpp @@ -97,12 +97,9 @@ static const QHash configStrings = { {Config::writeStackTraceToDisk, {QS("writeStackTraceToDisk"), true}}, {Config::writeRecentlyOpenedWallets, {QS("writeRecentlyOpenedWallets"), true}}, - {Config::blockExplorers, {QS("blockExplorers"), QStringList{"https://xmrchain.net/tx/%txid%", - "https://moneroblocks.info/tx/%txid%", - "https://blockchair.com/monero/transaction/%txid%", - "http://blkchairbknpn73cfjhevhla7rkp4ed5gg2knctvv7it4lioy22defid.onion/monero/transaction/%txid%", - "http://127.0.0.1:31312/tx?id=%txid%"}}}, - {Config::blockExplorer,{QS("blockExplorer"), "https://xmrchain.net/tx/%txid%"}}, + {Config::blockExplorers, {QS("blockExplorers"), QStringList{"https://explore.wownero.com/tx/%txid%", + "https://explore.wowne.ro/tx/%txid%"}}}, + {Config::blockExplorer,{QS("blockExplorer"), "https://explore.wownero.com/tx/%txid%"}}, {Config::lastPath, {QS("lastPath"), QDir::homePath()}}, {Config::URmsPerFragment, {QS("URmsPerFragment"), 80}},