mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 07:11:29 +02:00
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:
@@ -27,9 +27,10 @@ struct RestoreHeightLookup {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int blockTime = 120;
|
int blockTime = 300; // wownero: 5-minute blocks (monero is 120s)
|
||||||
int blocksPerDay = 720;
|
int blocksPerDay = 288; // wownero: 86400/300 (monero is 720). Using monero's 720/120 here put
|
||||||
int blockCalcClearance = blocksPerDay * 5;
|
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();
|
QList<time_t> values = this->data.keys();
|
||||||
|
|
||||||
@@ -72,7 +73,7 @@ struct RestoreHeightLookup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
while (heightData < height) {
|
while (heightData < height) {
|
||||||
heightData += 720; // blocks per day
|
heightData += 288; // wownero blocks per day (monero is 720)
|
||||||
timestamp += 86400; // seconds in day
|
timestamp += 86400; // seconds in day
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -97,12 +97,9 @@ static const QHash<Config::ConfigKey, ConfigDirective> configStrings = {
|
|||||||
{Config::writeStackTraceToDisk, {QS("writeStackTraceToDisk"), true}},
|
{Config::writeStackTraceToDisk, {QS("writeStackTraceToDisk"), true}},
|
||||||
{Config::writeRecentlyOpenedWallets, {QS("writeRecentlyOpenedWallets"), true}},
|
{Config::writeRecentlyOpenedWallets, {QS("writeRecentlyOpenedWallets"), true}},
|
||||||
|
|
||||||
{Config::blockExplorers, {QS("blockExplorers"), QStringList{"https://xmrchain.net/tx/%txid%",
|
{Config::blockExplorers, {QS("blockExplorers"), QStringList{"https://explore.wownero.com/tx/%txid%",
|
||||||
"https://moneroblocks.info/tx/%txid%",
|
"https://explore.wowne.ro/tx/%txid%"}}},
|
||||||
"https://blockchair.com/monero/transaction/%txid%",
|
{Config::blockExplorer,{QS("blockExplorer"), "https://explore.wownero.com/tx/%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::lastPath, {QS("lastPath"), QDir::homePath()}},
|
{Config::lastPath, {QS("lastPath"), QDir::homePath()}},
|
||||||
|
|
||||||
{Config::URmsPerFragment, {QS("URmsPerFragment"), 80}},
|
{Config::URmsPerFragment, {QS("URmsPerFragment"), 80}},
|
||||||
|
|||||||
Reference in New Issue
Block a user