bitcoinj-cash / bitcoinj

A library for working with Bitcoin
http://bitcoinj.cash
Apache License 2.0
66 stars 35 forks source link

error in BlockFileLoader #57

Open gambol opened 6 years ago

gambol commented 6 years ago

While loading blk files before 2017.8.1, org.bitcoinj.utils.BlockFileLoader#loadNextBlock does not work well.

It looks like that the magic number for block before 2017.8.1 is 0xf9beb4d9L, instead of 0xe3e1f3e8L.

HashEngineering commented 6 years ago

That will require a code change.

brad1121 commented 6 years ago

I started playing around with ideas around this here . Far from complete.