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}},