fix: vanishing balance — RestoreHeightLookup used monero block time (120s/720-per-day) to extrapolate the date->height table past 2023, computing restore heights ~400k blocks INTO THE FUTURE for 2026 wallets. Restore height > chain tip => wallet skips output-scan on every real block => received funds never recorded (pool scan unaffected, hence pool-shows-then-vanishes). Use wownero 300s/288-per-day. Also: block explorers -> explore.wownero.com / explore.wowne.ro

This commit is contained in:
jwinterm
2026-06-19 10:08:46 -04:00
parent 519187b8a1
commit 8686e9bfe8
2 changed files with 8 additions and 10 deletions
+5 -4
View File
@@ -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<time_t> 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
}
+3 -6
View File
@@ -97,12 +97,9 @@ static const QHash<Config::ConfigKey, ConfigDirective> 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}},