Author

Topic: bitcoinj started barfing on parsing blocks >= 481824 (Read 1611 times)

member
Activity: 75
Merit: 10
...and now I see there is a segwit branch for bitcoinj which I'm sure deals with the issue.  Sorry to bug everyone.  Case closed.
member
Activity: 75
Merit: 10
....and this is probably due to segwit2x activation @ 481824...doh!
member
Activity: 75
Merit: 10
I noticed since block #481824 and onward, my bitcoinj library started throwing this exception when trying to parse blocks:

Exception in thread "main" java.lang.NegativeArraySizeException
        at org.bitcoinj.core.Message.readBytes(Message.java:334)
        at org.bitcoinj.core.TransactionOutput.parse(TransactionOutput.java:163)
        at org.bitcoinj.core.Message.(Message.java:96)
        at org.bitcoinj.core.Message.(Message.java:128)
        at org.bitcoinj.core.ChildMessage.(ChildMessage.java:57)
        at org.bitcoinj.core.TransactionOutput.(TransactionOutput.java:79)
        at org.bitcoinj.core.Transaction.parse(Transaction.java:569)
        at org.bitcoinj.core.Message.(Message.java:96)
        at org.bitcoinj.core.Message.(Message.java:128)
        at org.bitcoinj.core.ChildMessage.(ChildMessage.java:57)
        at org.bitcoinj.core.Transaction.(Transaction.java:228)
        at org.bitcoinj.core.Block.parseTransactions(Block.java:242)
        at org.bitcoinj.core.Block.parse(Block.java:266)
        at org.bitcoinj.core.Message.(Message.java:96)
        at org.bitcoinj.core.Message.(Message.java:128)
        at org.bitcoinj.core.Block.(Block.java:162)
        at org.bitcoinj.core.BitcoinSerializer.makeBlock(BitcoinSerializer.java:270)
        at org.bitcoinj.core.MessageSerializer.makeBlock(MessageSerializer.java:72)
        at org.bitcoinj.utils.BlockFileLoader.loadNextBlock(BlockFileLoader.java:154)
        at org.bitcoinj.utils.BlockFileLoader.hasNext(BlockFileLoader.java:87)

I was able to parse blocks before this point no problem.  Anyone have the same problem?
Jump to: