fix: regenerate stale restore-height table (fixes vanishing balance)

restore_heights_wownero_mainnet.txt was last updated 2023-12-15 (h587048).
For wallets created after that, RestoreHeightLookup::dateToHeight extrapolates
forward at 288 blk/day; 2.5y past the last anchor overshoots the chain tip, so
the computed restore height lands ABOVE the current height. The wallet then
skips output-scan on every real block => received funds are never recorded,
while the tx pool still shows them: coins appear pending, then vanish.

Same bug class as 8686e9bf (which fixed the block-time CONSTANT from monero's
120s/720-per-day to wownero's 300s/288); here the constant was right but the
TABLE went stale. Regenerated with contrib/generate-restore-heights/heights.py
to h849000 (2026-06-19). Verified dateToHeight < tip for all dates 2019..today.
This commit is contained in:
jwinterm
2026-06-23 21:25:18 -04:00
parent 0d5d745311
commit 6cd7e8bad9
+397 -309
View File
@@ -168,312 +168,400 @@
1601257433:250500
1601710572:252000
1602154921:253500
1609825674:279148
1609816860:279048
1610116800:280048
1610420700:281048
1610715120:282048
1611017160:283048
1611314940:284048
1611616080:285048
1611911760:286048
1612211940:287048
1612515660:288048
1612810500:289048
1613115540:290048
1613414820:291048
1613709300:292048
1614008280:293048
1614307380:294048
1614603060:295048
1614902280:296048
1615204740:297048
1615505100:298048
1615807020:299048
1616108820:300048
1616402280:301048
1616706720:302048
1617003960:303048
1617611100:305048
1617911640:306048
1618191900:307048
1618522560:308048
1618816620:309048
1619098740:310048
1619390520:311048
1619695500:312048
1619985120:313048
1620290220:314048
1620586260:315048
1620885360:316048
1621183620:317048
1621482300:318048
1621782840:319048
1622079960:320048
1622380260:321048
1622678460:322048
1622974380:323048
1623269760:324048
1623567420:325048
1623869820:326048
1624167180:327048
1624473000:328048
1624767600:329048
1625065980:330048
1625366940:331048
1625439000:332048
1625706420:333048
1626101160:334048
1626365940:335048
1626660360:336048
1626966840:337048
1627231740:338048
1627541700:339048
1627810440:340048
1628078820:341048
1628406780:342048
1628709420:343048
1629011100:344048
1629283260:345048
1629582540:346048
1629874620:347048
1630168440:348048
1630465980:349048
1630756800:350048
1631060460:351048
1631393400:352048
1631699460:353048
1632012480:354048
1632289920:355048
1632602820:356048
1632923220:357048
1633203180:358048
1633491000:359048
1633811400:360048
1634113140:361048
1634430300:362048
1634722260:363048
1635035460:364048
1635368760:365048
1635639660:366048
1635957840:367048
1636245240:368048
1636535820:369048
1636863900:370048
1637160360:371048
1637457780:372048
1637793240:373048
1638062460:374048
1638407580:375048
1638675240:376048
1638981360:377048
1639273140:378048
1639612740:379048
1639928760:380048
1640242500:381048
1640530620:382048
1640838000:383048
1641136800:384048
1641437400:385048
1641716040:386048
1642030680:387048
1642330500:388048
1642714260:389048
1643040360:390048
1643344560:391048
1643612040:392048
1643913360:393048
1644223920:394048
1644491820:395048
1644794760:396048
1645110660:397048
1645379400:398048
1645693500:399048
1645981080:400048
1646301360:401048
1646576220:402048
1646919420:403048
1647208320:404048
1647506640:405048
1647768840:406048
1648082520:407048
1648391700:408048
1648686240:409048
1649002860:410048
1649282820:411048
1649599860:412048
1649959980:413048
1650248280:414048
1650528840:415048
1650809340:416048
1651118280:417048
1651432260:418048
1651740360:419048
1652031600:420048
1652351400:421048
1652639520:422048
1652954640:423048
1653252600:424048
1653549840:425048
1653862740:426048
1654161060:427048
1654461900:428048
1654782600:429048
1655076960:430048
1655441820:431048
1655740500:432048
1656030240:433048
1656324720:434048
1656624060:435048
1656925920:436048
1657236840:437048
1657526700:438048
1657816740:439048
1658135940:440048
1658434440:441048
1658715780:442048
1659010080:443048
1659318120:444048
1659611040:445048
1659914940:446048
1660204260:447048
1660505220:448048
1660831740:449048
1661114940:450048
1661397720:451048
1661708760:452048
1661997180:453048
1662335640:454048
1662630120:455048
1662908820:456048
1663213380:457048
1663501140:458048
1663832400:459048
1664109480:460048
1664412600:461048
1664724720:462048
1665004620:463048
1665305460:464048
1665600480:465048
1665894960:466048
1666213620:467048
1666527600:468048
1666816380:469048
1667123160:470048
1667427180:471048
1667720640:472048
1668021000:473048
1668334740:474048
1668649440:475048
1668946680:476048
1669247100:477048
1669560960:478048
1669852800:479048
1670164020:480048
1670467860:481048
1670767440:482048
1671063480:483048
1671363960:484048
1671639900:485048
1671950940:486048
1672248180:487048
1672566480:488048
1672859400:489048
1673179080:490048
1673451120:491048
1673759520:492048
1674053100:493048
1674374100:494048
1674658440:495048
1674978420:496048
1675249380:497048
1675559460:498048
1675847160:499048
1676178900:500048
1676463600:501048
1676782680:502048
1677074640:503048
1677385020:504048
1677686160:505048
1677996420:506048
1678277700:507048
1678564680:508048
1678852920:509048
1679178960:510048
1679473500:511048
1679780220:512048
1680075120:513048
1680415620:514048
1680715500:515048
1681014240:516048
1681314240:517048
1681628940:518048
1681919940:519048
1682226660:520048
1682528460:521048
1682838000:522048
1683149040:523048
1683448680:524048
1683750540:525048
1684050540:526048
1684346940:527048
1684659780:528048
1684960560:529048
1685261880:530048
1685565420:531048
1685865660:532048
1686178020:533048
1686480060:534048
1686776820:535048
1687078860:536048
1687379580:537048
1687685100:538048
1687993320:539048
1688293380:540048
1688598420:541048
1688898120:542048
1689208500:543048
1689503940:544048
1689802800:545048
1690109040:546048
1690414320:547048
1690721280:548048
1691025480:549048
1691325720:550048
1691633940:551048
1691931480:552048
1692233280:553048
1692532620:554048
1692843420:555048
1693147020:556048
1693453140:557048
1693749540:558048
1694054460:559048
1694348940:560048
1694661120:561048
1694961240:562048
1695270600:563048
1695572880:564048
1695891600:565048
1696201200:566048
1696506300:567048
1696833360:568048
1697119860:569048
1697424660:570048
1697728620:571048
1698030720:572048
1698328680:573048
1698640800:574048
1698955800:575048
1699261560:576048
1699561560:577048
1699873800:578048
1700185680:579048
1700481900:580048
1700801820:581048
1701103860:582048
1701414900:583048
1701721080:584048
1702027260:585048
1702332300:586048
1702641960:587048
1602596617:255000
1603053507:256500
1603501419:258000
1603951028:259500
1604397604:261000
1604844178:262500
1605289509:264000
1605742395:265500
1606192218:267000
1606638968:268500
1607083718:270000
1607539961:271500
1607991764:273000
1608439952:274500
1608890342:276000
1609334849:277500
1609777306:279000
1610229306:280500
1610678028:282000
1611129205:283500
1611578787:285000
1612024723:286500
1612479368:288000
1612925285:289500
1613378445:291000
1613818784:292500
1614269634:294000
1614718724:295500
1615167437:297000
1615619299:298500
1616071879:300000
1616517919:301500
1616969191:303000
1617419137:304500
1617878649:306000
1618306800:307500
1618784409:309000
1619210159:310500
1619658329:312000
1620103337:313500
1620558729:315000
1621002710:316500
1621453789:318000
1621895697:319500
1622347075:321000
1622790315:322500
1623238613:324000
1623686218:325500
1624135035:327000
1624588247:328500
1625034084:330000
1625387596:331500
1625683505:333000
1626206520:334500
1626634887:336000
1627067110:337500
1627510005:339000
1627915694:340500
1628363606:342000
1628827297:343500
1629250950:345000
1629688820:346500
1630145454:348000
1630591816:349500
1631025927:351000
1631515284:352500
1631986172:354000
1632422703:355500
1632890624:357000
1633326321:358500
1633775768:360000
1634233650:361500
1634693889:363000
1635139294:364500
1635617950:366000
1636079519:367500
1636497795:369000
1636997495:370500
1637418065:372000
1637897948:373500
1638376658:375000
1638790941:376500
1639235224:378000
1639757854:379500
1640218491:381000
1640646944:382500
1641106951:384000
1641544811:385500
1641989328:387000
1642443489:388500
1643009648:390000
1643455341:391500
1643876044:393000
1644333115:394500
1644747412:396000
1645196998:397500
1645649589:399000
1646107975:400500
1646543179:402000
1647017449:403500
1647475207:405000
1647881079:406500
1648354637:408000
1648816244:409500
1649261814:411000
1649734559:412500
1650212215:414000
1650656774:415500
1651081594:417000
1651543047:418500
1651999579:420000
1652464011:421500
1652926487:423000
1653376589:424500
1653829783:426000
1654287342:427500
1654747411:429000
1655193349:430500
1655710653:432000
1656134720:433500
1656592570:435000
1657054346:436500
1657494432:438000
1657939752:439500
1658390870:441000
1658822838:442500
1659286786:444000
1659718822:445500
1660176142:447000
1660639818:448500
1661083112:450000
1661517325:451500
1661970076:453000
1662446938:454500
1662873827:456000
1663336599:457500
1663789611:459000
1664221220:460500
1664685037:462000
1665126666:463500
1665557872:465000
1666034414:466500
1666495833:468000
1666929111:469500
1667394182:471000
1667835975:472500
1668288340:474000
1668766046:475500
1669214111:477000
1669665943:478500
1670117908:480000
1670586033:481500
1671029494:483000
1671465279:484500
1671904526:486000
1672376519:487500
1672822751:489000
1673269600:490500
1673719076:492000
1674182057:493500
1674626828:495000
1675085613:496500
1675521264:498000
1675977630:499500
1676426332:501000
1676890583:502500
1677344883:504000
1677795450:505500
1678241156:507000
1678685201:508500
1679136670:510000
1679592119:511500
1680041240:513000
1680537447:514500
1680981131:516000
1681434379:517500
1681894205:519000
1682345821:520500
1682805333:522000
1683258937:523500
1683714088:525000
1684168676:526500
1684616632:528000
1685076954:529500
1685528631:531000
1685980354:532500
1686442998:534000
1686893463:535500
1687341403:537000
1687800345:538500
1688260852:540000
1688713555:541500
1689164934:543000
1689616311:544500
1690075687:546000
1690533856:547500
1690984681:549000
1691444970:550500
1691897459:552000
1692352014:553500
1692807402:555000
1693259665:556500
1693718708:558000
1694169620:559500
1694621215:561000
1695073751:562500
1695544139:564000
1696010948:565500
1696480073:567000
1696934545:568500
1697383183:570000
1697850119:571500
1698298303:573000
1698763478:574500
1699224283:576000
1699683095:577500
1700138177:579000
1700593190:580500
1701074336:582000
1701528794:583500
1701994567:585000
1702441199:586500
1702920637:588000
1703388368:589500
1703830741:591000
1704284418:592500
1704734515:594000
1705184380:595500
1705643726:597000
1706087617:598500
1706539628:600000
1706999159:601500
1707446328:603000
1707920134:604500
1708380012:606000
1708845016:607500
1709293588:609000
1709748870:610500
1710202528:612000
1710647834:613500
1711098409:615000
1711550139:616500
1712000662:618000
1712465889:619500
1712914193:621000
1713366831:622500
1713821520:624000
1714275415:625500
1714718068:627000
1715165016:628500
1715625858:630000
1716087656:631500
1716542805:633000
1716996296:634500
1717442953:636000
1717899613:637500
1718343607:639000
1718798893:640500
1719259600:642000
1719715208:643500
1720171971:645000
1720619357:646500
1721076296:648000
1721532239:649500
1721987052:651000
1722437031:652500
1722888953:654000
1723343110:655500
1723795513:657000
1724247189:658500
1724705009:660000
1725165021:661500
1725617360:663000
1726071946:664500
1726522439:666000
1726979451:667500
1727430507:669000
1727884081:670500
1728334947:672000
1728789282:673500
1729231059:675000
1729687775:676500
1730150813:678000
1730607377:679500
1731052869:681000
1731502177:682500
1731953584:684000
1732397467:685500
1732857103:687000
1733305492:688500
1733757932:690000
1734213761:691500
1734665858:693000
1735109323:694500
1735571098:696000
1736017391:697500
1736470274:699000
1736922413:700500
1737375374:702000
1737822863:703500
1738278318:705000
1738734744:706500
1739188167:708000
1739646442:709500
1740096952:711000
1740548052:712500
1741000180:714000
1741453599:715500
1741905136:717000
1742364662:718500
1742812126:720000
1743264843:721500
1743714525:723000
1744175390:724500
1744626378:726000
1745080531:727500
1745536519:729000
1745985232:730500
1746429926:732000
1746893280:733500
1747344244:735000
1747800382:736500
1748256803:738000
1748720133:739500
1749171722:741000
1749626761:742500
1750075168:744000
1750529452:745500
1750980136:747000
1751430178:748500
1751884163:750000
1752336519:751500
1752789487:753000
1753244800:754500
1753695473:756000
1754167218:757500
1754620759:759000
1755063742:760500
1755512182:762000
1755966558:763500
1756408673:765000
1756867066:766500
1757321935:768000
1757781405:769500
1758227963:771000
1758690444:772500
1759142623:774000
1759597441:775500
1760050166:777000
1760517211:778500
1760966094:780000
1761425868:781500
1761871754:783000
1762332424:784500
1762788746:786000
1763241559:787500
1763691073:789000
1764148322:790500
1764600720:792000
1765052466:793500
1765508447:795000
1765967616:796500
1766426715:798000
1766881106:799500
1767332242:801000
1767779604:802500
1768229063:804000
1768689528:805500
1769142523:807000
1769587539:808500
1770045670:810000
1770505705:811500
1770956798:813000
1771407979:814500
1771860479:816000
1772315752:817500
1772768810:819000
1773214642:820500
1773666005:822000
1774124830:823500
1774579737:825000
1775029537:826500
1775486297:828000
1775943681:829500
1776404619:831000
1776859398:832500
1777309533:834000
1777768990:835500
1778220072:837000
1778676940:838500
1779131063:840000
1779582902:841500
1780038251:843000
1780489721:844500
1780940799:846000
1781397311:847500
1781853697:849000