More specifically, there is a piece of code that fetches the last checkpoint from CheckpointManager and feeds it into the block store. Just remove that line.
On 08/07/2017 11:06 PM, 'Jean-Pierre Rupp' via bitcoinj wrote: > Hello, > > Delete the checkpoints if you wish to sync from Genesis. > > Cheers! > > > Sent with ProtonMail <https://protonmail.com> Secure Email. > >> -------- Original Message -------- >> Subject: Why block header starts at block 421344 >> Local Time: August 7, 2017 9:50 PM >> UTC Time: August 7, 2017 8:50 PM >> From: levduc...@gmail.com >> To: bitcoinj <bitcoinj@googlegroups.com> >> >> I tried to run the bitcoinj toy wallet app and sniff those packets >> that were sent by the app. >> >> However, it seems that when the wallet app first connects to the >> network, the bitcoinj sends a getheader that starts at block 421344 >> ( 2016-07-18 23:22:42 ). >> I understand that it may help reduce the time and works required to >> sync the header chain, and it seems difficult for an adversary to >> provide a long valid header chain. >> But still ? >> >> 1. What else can go wrong with this approach? >> >> 2. Can I modify the code so it starts at block 1? I just want to test >> how long it may take. >> >> Thanks, >> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "bitcoinj" group. >> To unsubscribe from this group and stop receiving emails from it, send >> an email to bitcoinj+unsubscr...@googlegroups.com >> <mailto:bitcoinj+unsubscr...@googlegroups.com>. >> For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google > Groups "bitcoinj" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to bitcoinj+unsubscr...@googlegroups.com > <mailto:bitcoinj+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "bitcoinj" group. To unsubscribe from this group and stop receiving emails from it, send an email to bitcoinj+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.