Meshbits / pirate-chain-ios-wallet

iOS version of the Pirate Wallet
MIT License
3 stars 2 forks source link

Need new and more checkpoints for Pirate Chain to make it easier and faster to sync with network #2

Closed satindergrewal closed 3 years ago

satindergrewal commented 3 years ago

Right now the checkpoints for Pirate chain are with the difference of 100k to sync with the network, and the last or recent one starts from height 1,000,000. Whereas the current height is somewhere about 1,390,000+. That's near to 400k block headers which needs to download and make mobile wallet sync with the network.

I used this file to get required blockheight and sapling_tree relevant data to update the dependency of this iOS wallet updated: https://raw.githubusercontent.com/piratenetwork/piratewallet-light-cli/merge_upstream/coin-checkpoint.json

Checkpoints set for this iOS wallet, based on blocks info taken from piratewallet-light-cli: https://github.com/Meshbits/ZcashLightClientKit/blob/shield-funds-poc/ZcashLightClientKit/Stencil/WalletBirthday+saplingtree.stencil

I need more checkpoints with the same info to add to the list, which will make syncing wallet faster with the network:

height: 300000, 
hash: "000000001598dc03f64b36169a482dfa3d85a10d42cde06aa6cc6a75707389b2", 
time: 1553764949, 
sapling_tree: "01d7243618851dc06cc59ec16c6d77d8e352af3793cd21c0a9938372bb7157670500120001945ae5bdc14a29faa8e2fd50f01ef6a3a8da167584ce9e82063d4ed17416196f0103ed7a6d19f12d1c442c0057fd078903ef6cd3e3306044d7c0f8fdd36f6fe06a01447f859be85701d6871e2480b5036ea63b6f47c144cf29436e7294be603e1c3001b4ec68e46936f3aebb175fb332509326e8d2a182d1449d53777b4a7e2c29fa5801cfc6e9fbf8f0ca810b0e45cdcebc6e765faaaeb8fa0be187be895e683f0504540000000152ccf74ce6806b561418faa131c772506c83acd3b896cab2663fcfb94d09a45801d5ad937c911d34f096261bf38ccee013ccf89dd50bfe5e54465e3b9506a8a62a01984f57016d4a2bd43c417aab49679e5dd79daba0e1caa26f1f3ce84cf18a54260000013953b793f6fae2bab55d9ab9f8ae549285e768bd97b55e2720922a13c470084e0000013fe4d9c4934ce4be54bd7e7b988c600405efd8ff50c137f63c386f7eab596a0d"
CryptoForge commented 3 years ago

https://github.com/PirateNetwork/piratewallet-light-cli/blob/master/coin-checkpoint.json

This file has newer checkpoints

satindergrewal commented 3 years ago

https://github.com/PirateNetwork/piratewallet-light-cli/blob/master/coin-checkpoint.json

This file has newer checkpoints

Thanks @CryptoForge!

I also got other checkpoints from local debug log file of piratewallet-lite-cli lite client, and used them in the iOS wallet as well. Now wallet syncs up with network very quick! 👍 Here's relevant git commit link: https://github.com/Meshbits/ZcashLightClientKit/commit/e425414fdeb98f057cbd52602589e4add80d5189