novitski / bitcoinj

Automatically exported from code.google.com/p/bitcoinj
Apache License 2.0
0 stars 0 forks source link

Headers-only sync IllegalArgumentException's on orphans #432

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Due to the checkArgument in OrphanBlock's constructor:
            Preconditions.checkArgument((block.transactions == null && filtered)
                                        || (block.transactions != null && !filtered));

Original issue reported on code.google.com by BlueMatt...@gmail.com on 16 Jul 2013 at 3:15

GoogleCodeExporter commented 9 years ago
I'm not sure how we'd obtain orphan headers, that shouldn't be possible. But 
OK, it can't hurt to be robust against them in case a peer does send.

Original comment by hearn@google.com on 16 Jul 2013 at 3:16

GoogleCodeExporter commented 9 years ago
For the records: I had that happening to my own testnet wallet yesterday when I 
tried to get payment channels running.

Original comment by andreas....@gmail.com on 16 Jul 2013 at 3:26