novitski / bitcoinj

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

Block 268118 fails to verify in FullPrunedBlockChain #478

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Error is:
Caused by: com.google.bitcoin.core.VerificationException: Bug in 
Script.correctlySpends, likely script malformed in some new and interesting way.
        at com.google.bitcoin.core.FullPrunedBlockChain.connectTransactions(FullPrunedBlockChain.java:241)
        at com.google.bitcoin.core.AbstractBlockChain.connectBlock(AbstractBlockChain.java:431)
        at com.google.bitcoin.core.AbstractBlockChain.add(AbstractBlockChain.java:384)
        at com.google.bitcoin.core.AbstractBlockChain.add(AbstractBlockChain.java:239)
        ... 26 more
Caused by: java.util.concurrent.ExecutionException: 
java.lang.IllegalArgumentException: 1 > -80
        at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
        at java.util.concurrent.FutureTask.get(FutureTask.java:111)
        at com.google.bitcoin.core.FullPrunedBlockChain.connectTransactions(FullPrunedBlockChain.java:236)
        ... 29 more
Caused by: java.lang.IllegalArgumentException: 1 > -80
        at java.util.Arrays.copyOfRange(Arrays.java:3076)
        at com.google.bitcoin.script.Script.removeAllInstancesOf(Script.java:497)
        at com.google.bitcoin.script.Script.executeCheckSig(Script.java:1059)
        at com.google.bitcoin.script.Script.executeScript(Script.java:1010)
        at com.google.bitcoin.script.Script.correctlySpends(Script.java:1180)
        at com.google.bitcoin.core.FullPrunedBlockChain$Verifyer.call(FullPrunedBlockChain.java:121)
        at com.google.bitcoin.core.FullPrunedBlockChain$Verifyer.call(FullPrunedBlockChain.java:108)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        ... 3 more

Original issue reported on code.google.com by murexcon...@googlemail.com on 7 Nov 2013 at 6:23

GoogleCodeExporter commented 9 years ago
Well, at least the error message is cheerful about it. It'd be nice if the tx 
hash was included so we can more easily see what is bogus.

Original comment by hearn@google.com on 7 Nov 2013 at 10:35

GoogleCodeExporter commented 9 years ago
Yes, its always best to plan ahead for having to debug ridiculous errors, so 
make your error messages cheerful and life gets more fun :).
Anyway, Ill see if I can put down my new Glass to debug this today.

Original comment by BlueMatt...@gmail.com on 7 Nov 2013 at 4:40

GoogleCodeExporter commented 9 years ago
This issue was closed by revision b9363999aea8.

Original comment by BlueMatt...@gmail.com on 9 Nov 2013 at 10:39