diff --git a/lib/src/lightclient/checkpoints.rs b/lib/src/lightclient/checkpoints.rs index 53fd5fe..455b471 100644 --- a/lib/src/lightclient/checkpoints.rs +++ b/lib/src/lightclient/checkpoints.rs @@ -22,33 +22,16 @@ fn get_test_checkpoint(height: u64) -> Option<(u64, &'static str, &'static str) fn get_main_checkpoint(height: u64) -> Option<(u64, &'static str, &'static str)> { let checkpoints: Vec<(u64, &str, &str)> = vec![ - // (610000, "000000000218882f481e3b49ca3df819734b8d74aac91f69e848d7499b34b472", - // "0192943f1eca6525cea7ea8e26b37c792593ed50cfe2be7a1ff551a08dc64b812f001000000001deef7ae5162a9942b4b9aa797137c5bdf60750e9548664127df99d1981dda66901747ad24d5daf294ce2a27aba923e16e52e7348eea3048c5b5654b99ab0a371200149d8aff830305beb3887529f6deb150ab012916c3ce88a6b47b78228f8bfeb3f01ff84a89890cfae65e0852bc44d9aa82be2c5d204f5aebf681c9e966aa46f540e000001d58f1dfaa9db0996996129f8c474acb813bfed452d347fb17ebac2e775e209120000000001319312241b0031e3a255b0d708750b4cb3f3fe79e3503fe488cc8db1dd00753801754bb593ea42d231a7ddf367640f09bbf59dc00f2c1d2003cc340e0c016b5b13" - // ), - // (630000, "00000000015493abba3e3bb384562f09141548f60581e06d4056993388d2ea2f", - // "019b01066bae720ce88b4252c3852b0160ec4c4dcd6110df92e76de5cb23ab2f540109c3001b823fc745328a89a47fc5ace701bbd4dc1e9692e918a125ca48960545100001b2ba91c0f96777e735ded1ba9671003a399d435db3a0746bef3b2c83ba4d953f01d4c31130d2013fb57440d21fba0a8af65e61cd1405a8e2d9b987c02df8fc6514011c44ba36710e293ddf95e6715594daa927883d48cda6a3a5ee4aa3ef141ec55b0001cd9540592d39094703664771e61ce69d5b08539812886e0b9df509c80f938f6601178b3d8f9e7f7af7a1f4a049289195001abd96bb41e15b4010cecc1468af4e4b01ffe988e63aba31819640175d3fbb8c91b3c42d2f5074b4c075411d3a5c28e62801cb2e8d7f7387a9d31ba38697a9564808c9aff7d018a4cbdcd1c635edc3ab3014000001060f0c26ee205d7344bda85024a9f9a3c3022d52ea30dfb6770f4acbe168406d0103a7a58b1d7caef1531d521cc85de6fcb18d3590f31ad4486ca1252dac2c96020001319312241b0031e3a255b0d708750b4cb3f3fe79e3503fe488cc8db1dd00753801754bb593ea42d231a7ddf367640f09bbf59dc00f2c1d2003cc340e0c016b5b13" - // ), - // (650000, "0000000000a0a3fbbd739fb4fcbbfefff44efffc2064ca69a59d5284a2da26e2", - // "01a6224d30bd854bb14e06b650e887e9ee3a45067dde6af8fdbca004b416accf0b001000018363c4cef8b386c64e759aba8380e950cae17e839da07426966b74ba23b06c350001ba6759797b2db9fbb295a6443f66e85a8f7b2f5895a6b5f5c328858e0af3bd4e00013617c00a1e03fb16a22189949e4888d3f105d10d9a7fcc0542d7ff62d9883e490000000000000163ab01f46a3bb6ea46f5a19d5bdd59eb3f81e19cfa6d10ab0fd5566c7a16992601fa6980c053d84f809b6abcf35690f03a11f87b28e3240828e32e3f57af41e54e01319312241b0031e3a255b0d708750b4cb3f3fe79e3503fe488cc8db1dd00753801754bb593ea42d231a7ddf367640f09bbf59dc00f2c1d2003cc340e0c016b5b13" - // ), - // (690000, "0000000000b1e6422ecd9292951b36ebb94e8926bbd33df8445b574b4be14f79", - // "0117ffc074ef0f54651b2bc78d594e5ff786d9828ae78b1db972cd479669e8dd2401cc1b37d13f3b7d1fa2ead08493d275bfca976dd482e8dd879bf62b987652f63811013d84614158c7810753cc663f7a3da757f84f77744a24490eb07ce07af1daa92e0000017472a22c4064648ff260cbec8d85c273c5cd190dab7800f4978d473322dab1200001c7a1fd3786de051015c90f39143f3cfb89f2ea8bb5155520547ecfbefcdc382a0000000001d0c515cd513b49e397bf96d895a941aed4869ff2ff925939a34572c078dc16470121c1efd29f85680334050ee2a7e0d09fde474f90e573d85b7c9d337a5465625a0000000001d2ea556f49fb934dc76f087935a5c07788000b4e3aae24883adfec51b5f4d260" - // ), - // (750000, "00000000028522f87172ecefd79b5f54547c8a756976585f29e4dc182a19c46a", - // "01a069618d376feebdbf39030c254a1a3cb46d19369837e44b6ad9afb43763167300110000010c256f47b493d8d94dd5ad09a6829a0a5e346400430b222072583afad8ce847101b261be33d5db156d09fa73031e8f37b4fe4193d21c909e2c8e58d86c7e48690a016b4a7608e90189275f7bb8e70f525c333431ceaa8de9d5b119e66ce2faeb79290000017d730339d1d4bf490eda3c1fca77d7b8a769fff083318ec46a81404fef45f046013ad81619e96171627f27cd6e7755c4d8261dc7017a65753f06c6cf9a29af116201474991dfe7d598257dae28820c6058e389a897e232e737c90a5427e8f24e355e0163734115d47b641de26abf2cad5c4ac1cb438869fc91d50e66444980647aed24000000017d066851cc49b2ea0cf9fb6af00adbb1cc3a0b15cb02d39e0a66f031b2dc1f230001d2ea556f49fb934dc76f087935a5c07788000b4e3aae24883adfec51b5f4d260" - // ), - // (780000, "00000000010b38c91627aeb8aadf44694220c904f443ddbbd8a4c6b71670b06c", - // "01e2b62355ee2ff200c4fbee907ed9f1a35d0c79c4350b81d3f0a4326715022b0801a2a51439699ad5b3fc4b05497fa6563ea7302a674970e97bc5367c4d677f7b4411000000000196e5f4889d5487cf26623b27b5cb0cc9f07cb07bff97f0acf8e95dd4d70da63f0116b26415fa86d2ca9954fd959dec4a45617e6a3eb8bf66b7c817a508793eef1401f691350cf164f3f31e8857af98f612c2d6145bb375f11451b50a8de9b4f54f4e01ff661d9b20b556f96b0d3396bca15f6aa56e7e7b64b871d8c632538cb8980b44000106cd1b467e72f8fe72ce6d2d4e07180636ae582368d02c3d3565ec96f50d3f210172c15bb2d34dd3408b34b3ca6c7ab86f886cf64e4bfacf1435601c7526302b2a0183d162c2033fa5f8848429e2c38b6cca8333a41971178e00ce3abf663d8c496c01e07372caea187301a24f9dbbe3b6a8981bb4225b7f4b362b01000d4b0a0eb071011545fef7ddad5a52664dff5a73fbbb26c2cdf42aec9292349773079432d5bc46017d066851cc49b2ea0cf9fb6af00adbb1cc3a0b15cb02d39e0a66f031b2dc1f230001d2ea556f49fb934dc76f087935a5c07788000b4e3aae24883adfec51b5f4d260" - // ), - // (810000, "000000000288d460756352efd73bdffd34a686c2a6de2c75fc4ced2ede108fcd", - // "01f3c97857d707d1b4be8bf323061e6c2e901dd8a9f75731c88e2d0c326a94262e014478d25f683bacae03664c72840cdd2c89eeb2206d3e23c48ad538bdeb2ea7541101a4641a722bf5b845e42ad03a80ec75b74a0bf5c8f44ab4ccec240aa05e6c5b120001c1bc6535533a3d698855a3946cf962bfd74f41aab868e4f450882afe9ff5df5500013a89db2ae718d644a2724a74b65f6f6af59f71528f33c65d67b39a76096cb82c012f6e7ac1ccbc575a9b16cd98fdc214e80b88905eb65aee511635b76499c1ca380155a9f8a53376407d03e995d28264924cffedca826a8eb508845c520dee82ab0600018d702b85682815a8a0c7da62a221148c03b1a77e64d773d1af5ba458e1b0b22d0001adb716a07c0268781317d5bf4d3ed65e5838f3111e86d937049eccccdee8f83a01f8f596c518693801a918f1ed44db811bd345a14e9cc2a038b6164cbcc679ca4301d278b23e92a9b00400f94eb0147f215acf22cd1f24a0b61329ca186cb4917b14014da3714363acb83872f51c87fed3d42a1093420c3cb96b74ad65966ce27e8c4e0001e2bf698f5ac10b44da560d11a5e1d5c191a82a968a2be0a6948aa8748b54516001d2ea556f49fb934dc76f087935a5c07788000b4e3aae24883adfec51b5f4d260" - // ), - // (840000, "00000000000a0b9a8753dfd46e1205590d35f4d365437a0d20d29317b33743c0", - // "01101f7b8112735869abc0e74dac1f272935d09725ff03cd8cb63d472e112fa82a01d635e219273ade2859554e5191898ce9a79cb80f62c272dede1c2a71e183e21e120000000000000000000000000000000000011323ddf890bfd7b94fc609b0d191982cb426b8bf4d900d04709a8b9cb1a27625" - // ), - // (870000, "0000000001097864030cac84b7bb93d12739ce9391612c66758c76e3243f0306", - // "01302886fbfdb837d575fc8fc2d8a7f74cb62a19ca60d2651eb19c5e6f486a4e22014408f734c0d7c683f37021404694b91dba5a0831c19035041c6bea83889af76912013cfc980f1a52aa4f2eb962c0b7bbd89e1a7e1f00dd1c8a62c0e03f118b4eb65b01cfe618a71029cf0bc39e796eeedc70ff9402959487f5825b5b15ede34b36021401bd79f262082e6a1ebdf586cd9c5b4726afd2d85bfb951eef97fb90537de86723012bc7fba59d8ac7d6c7d8538446b2dfcde28ee3c26f445938c8966196da9d456e019a599970b9798b4dc0f0ee59dd273a70b209515d95c510117db7eecebb36e80301c70fe44f3142eb00cc4f28d13d42173ce9e7f316e987c8fc3a2e01ee3b71bd2400000108348cb2dfc1ff7af214ad16c6bdb1d49ace2176a6aacea4d6ddc9d3a7cb9334000000000001166bb2e71749ab956e549119ce9099df3dbb053409ff89d0d86a17d5b02d015d0000011323ddf890bfd7b94fc609b0d191982cb426b8bf4d900d04709a8b9cb1a27625" - // ), + (500000, "000000c642fda400a464c50dcf310e65efa2627799b9b0c378524205ba2307b7","014819ca94dac152e7caad1c4fe0fb339343d30084775a10d792f50e56d85e893e018a6e949342beea95fce4d646a09b5ee792531779d866d1e082ff80f62c6028030b01f6fb9b8cef82c92b949324abfa1c8afb82c73e4b48ee59b5284f396de74f632001ad515dd43a07ad98474e165b44c6281060904bf116d70ecb96acffa3c2551713000188153113124a17b84f77ee3bee893be274f2686a454f66208f3cce49877572160000000001832e857dfe5e64d324e7f3f9b2017860dade173bba1cdd8709dad497d6d8ed4c0001ffbcedcff498ad3d7bef07a93a8d601cb5b6de9b87f62e7629c6583def950d57"), + (550000, "000003cb1f3c128819bdf84632fd31058014542af64eea8959d5139fc26c21cd","011e084d9028f86423e20c3957b741c21101463fd1318a46f0217800da52b6982601a2689b9659e3b3b2e92e13ebdb2e5c745625f107153e0e8ee17430819a9181240d000001582f5de14bbe65e3b4365deeb42a074b9e89733150f9e6c702c5e73b16eb9e27015355ec98f61a65805b304b5f4f01b6a6b550b0ff90654c3bb14d37ea66d2d25b016e96a1699966f4be5958d39ccf4a80fd9c8bfc791a26b04e64b92b68e74c5d6f00000001bef355e062338cc8b1c728aba1a09a892d15f0cec6e66b1dce3bf683f46fe3710194f4d0df7683fccc0fe400aab264eef1be8273e952e40f94eeff15dd71778f0b00000161d449385412557da75d1a6fd3adb2755c90d379b474ffda2da7996d5880bc20"), + (600000, "000000a0e6efed6a536c2c5063c666102fb2f9ddb4a226b34a0894c723519e48","019c80fa055af06b00b2e62234dc88d0f20eb5bdd029f27db5015ac5421c0d971a01843776c7c19531a4b70fd74a2f5300125d93697fb1df874f01860967043ae90d0e000170203c0ea694d0ec23c2b330e38d8a72be85f7cda2433e228938a08f0d357d5301a2f0efece5d0ef22101f1a88856d8263b813c47843af6fdeed8745ebf479f202012aaa5eb3f4659c96c07961311425f6d2469f8f161abdf1cd6050cc9cc1650d3c016a4d5df54decf298a6b83be00f130cec069ea3ef38c8d97dc8c5867dfe5a862501b801046295a11ecd1497a55348057912ce9cce5114466181feb55036a38ee342014cc662fdebea6b1557428d407f28fafdae278480525959863b4a096981178e0b017443ea389a059650f310567225e4626b97c4f7eb4de7f43acd9c5d69392d086f01d108cf831f1721b23323c94d1112f47da6b6c5162d09e3c4afe8d8618c604565012071da2937f4c0d6bdf355976e110708d23ef8f103704cd84f748dba12d6174000015ea99a4cbe8cd1e9b09149545388d53ac264c0e7206bc3251d62aab090aea72a0001c9ee5f761f861d9babfe591dc31ef10cde7f4c42f7c26fdf07ea409f1155262a"), + (650000, "00000437dd0e913b3ee3f9f7d785ca02403fe9621bf65e593889f1c74bd67a14","010642a2aac1ea411fac9498ee7ecf27917c8c366ecb61b55ab3d1c4e5608c472e000f0001d1da78af6ff64e1fd6c432a625e9f4abe513911005a9cf06908e0a935632360001834f3ad29fa60183c223520ccbd0f5f555823017f8d4e7f9ab5d79c7c6b6e731016fad879cc5c43e6a05488449772681987372a17c9188d2309ac0d1ea8066b60700013b7dd01550b9f1ea6ae183cee3f9e4d328df9540670b04e2565a1504a16fe247000167ea7809d5a824aa6b6d3a0f5b645d342cc56ab4a439c0a9f1db698864def14d00000173ffa7e42100bee60ec93ca40b73de89f095ec1e9c864d59f8f71fd414afd24001a058f8f22a15871367aa0a46838696747d3ab6cdce77d07d309343955beede68000001034691170b96f4c7750ce0c1b59bf81193290025e7bf2af91d9f372a9a36d10f"), + (700000, "000001bee8c5bc29fb8d6c3642662ecb479ec85df648e851edaaa0e090b2c797","01ceff4af4f1b52be90b6c7f47b5163a525406ed5cc9ee162a4553ac78f6cadf5b013f22df3d99d52c4a02b5fdde2963eae56d2fd5eb1b2e361ba3e226edf0277005100127ba111aaaccce8f68b1b6941792030921aec1feac1e00aedcc2b147068499410001a81f9b610ea96322730db5a4ef0564d20b5f48bd1a4c1c6c9686904ab542e24500018d28843019ca5028fd6b2b6a0aa94a1df668cc8f75d6feb9aac84d750e39691000015e186c88c3b0bf1eefa57f0cb0c293524366c8d96dd7a04f987aa196234e2c4900017c27144ffb06b60cda7d646861fca487d6a956633e2792c9ab34d7e59125d46c0000011d3e9aeec6ff15da7578faf9a23d8ea894e7aa1a25b80108faecb7b47a66bc0e0000000166d62135626ff20d77abeef13ec68d89e313de4195995cb0d0516bfd5af17b33"), + (750000, "00000154c6a43da617c853c6df9cb1435aedb80e8bbc76d47357c341c264840f","0104e11cbea21d2a11531cb06a16de6a09b85be2a32b68f965940a5418a404677001e3338aca2e46f0757646b59d514ed0d329ede54f0a5017c91b1af4a934c55c3010018d6f7a24db3e70842821fee80ffb0a407b0cf81978ac4c1b567c72545feccc040001dc1e23340b5291e85fceef83b62fcacb8c20043abdb802fd11e09d18725f30670187eaae8febe7b86f61554592e30d15695cd7d300a66b3764f506465a7a17c825012fe6cb8e15ebef0eed22f438771022b80c02af9fb086eb9fbc34ee5d535cd0400000011f8d2789cdf1277c4504f58779685e4cbe0cba2d168d4409126f04f76f7aec610001b9a0a6cf94e6d71bf4a266ea84ef24c4a04361f64c67413aed14591853f2d05300000150a69065c06bad655cdcf191f0f65d8cc1ca8bb1f35426d46c0ccad6b7754c590174c516df639398fc949d34a1b71412454f42a2bc92d6c918df4f7d5582d8ac68000166d62135626ff20d77abeef13ec68d89e313de4195995cb0d0516bfd5af17b33"), + (800000, "000001a76b58c2bd8748849ee402d7bb010c862aa20cb82bacdf1008c5a2e2a6","015eb92aa340b783e007fbc59440f58a692983b4df45fcb4bed15f4b0eafeb3438012ec53175dd0c73cb07731c9be676a94a842dd9594b99f23b80a70b56810e1f53100000000001b9162a75faeddb2c05667a0d842586d5cd6a72aae8fa57b5ca70ebcbfb1c532f01ebd3d41b0abe75ef18b40ebc87aa58ed5b9a334fd298c809b9674f2f8948d767017293df4117ab33229928942df3229b1995e9be887e0ba7d023d5e62a49b8d75e0149fdc53dd29217661abcda93b6b66b4eb240778cf5dd361ec5e8314b9c1c4e6c00011202a0c6e857e95ec95473baaf9b2225506c2fdc59d687d6053bf4bc603f347000000101f34ab1470100f029cbc911a899c038c4e1d3c512ab1237bf2e5acb008f696a00012970748afdd3fe833b33c062a30566cccefd8584db94db7cbdfc929c3a06691d0166d62135626ff20d77abeef13ec68d89e313de4195995cb0d0516bfd5af17b33"), + (850000, "000001eb727c5b8598c20ed93daf60b3e77ed6a91a2b7a18891468dcdbfe7796","01d7e34604e3bfe16b9d9db00a035b9b9c5908cb2d8617a9cd0b2f0aa985c3784b001000000000000161632e3bbc414fc9da858ec9e31f7045d5f14c733e8e0d6f65c372427dcc4d340001910363995296c76f488586c34fb07f81f13d0131c0e84b40e6d8b6c0647d5505016aa7cae4f5a3ff0acec91c22d76a95eb4d23e31ac7c9c0282739097a07f0150a0001c91f78eedc950040276b03b7bfedbcbbc63f56b17d133df9e05184d6adebb52b01ba027141de6eec6be10307b245741660a32b237b3c3bd545cc429425a817792801cfe97171b0120d477eea190aa3a7e3f8aadf3053cc00298bf845e411b5f8b832012908fa845f893de23b144e6f63ad8dfa4db3a57fe3d9630183154d4651d95909012970748afdd3fe833b33c062a30566cccefd8584db94db7cbdfc929c3a06691d0166d62135626ff20d77abeef13ec68d89e313de4195995cb0d0516bfd5af17b33"), + (900000, "000007b665259adb7cda27acc031c275419b9bcdd8e2aec276adf13244d2216d","014c32057f5f4a9aa19024bd5da7b90e49ec97592c50b634f36edc2dd1b3c0ab1501554efd44243576b55a50c0dc6015834defa3746296507ab81847a418439ec70511000000019a0fed69087c96dccc24cebfcf604ae006ad71ac6ee2211c1a4f1acd0b06936a0124b2a98dd05896655cce70c149b88da85e367f5ca463c11226bb1f4353d5af3301a674c227b6f9845da40a9e613d8b83a77de4e7bdf50917af41fbb1260e87034601ce1dbe60dcbc2d0ff7414c081b75f7e937327f4cf986d4c054ec66ebbad8a95a000169bd72a5264f2d3a3b0d105f5991524455a46de9f4ebb22f17d776aee55f5a4f015c5a0dd38c70e45e84a3b0af98531d87114f69387d557f36270aa98684ea1a640119bbc12a1f05fb36a5d790665511dc2e79c2830606269629030b3d6ba0e07e02016165ac2b7b2427242a8001b7914066693def577f7ff9d9edafad352079af334f0001406b73dc4c25c134d606f35c9bac4143889427b9b9a3581df5c3d18d3dc27b110000018d94e637ad75835c34c7c278d4659387cb14e10e3bce05d0d3d046b22a259908"), + ]; find_checkpoint(height, checkpoints)