novitski / bitcoinj

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

H2FullPrunedBlockStore - Failed to Verify 000000000000000b7e48f88e86ceee3e97b4df7c139f5411d14735c1b3c36791 #531

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Tx; ebc9fa1196a59e192352d76c0f6e73167046b9d37b8302b6bb6968dfd279b767

See:
https://bitcointalk.org/index.php?topic=315509.0

Looks like in checkSigOps we need to ignore this error?

Causing below issue.

    at com.google.bitcoin.core.AbstractBlockChain.add(AbstractBlockChain.java:262)
    at com.google.bitcoin.core.Peer.processBlock(Peer.java:791)
    at com.google.bitcoin.core.Peer.processMessage(Peer.java:311)
    at com.google.bitcoin.core.PeerSocketHandler.receiveBytes(PeerSocketHandler.java:139)
    at com.google.bitcoin.net.ConnectionHandler.handleKey(ConnectionHandler.java:216)
    at com.google.bitcoin.net.NioClientManager.handleKey(NioClientManager.java:74)
    at com.google.bitcoin.net.NioClientManager.run(NioClientManager.java:110)
    at com.google.common.util.concurrent.AbstractExecutionThreadService$1$1.run(AbstractExecutionThreadService.java:52)
    at java.lang.Thread.run(Unknown Source)
Caused by: com.google.bitcoin.core.ScriptException: Push of data element that 
is larger than remaining data
    at com.google.bitcoin.script.Script.parse(Script.java:198)
    at com.google.bitcoin.script.Script.<init>(Script.java:86)
    at com.google.bitcoin.store.H2FullPrunedBlockStore.addUnspentTransactionOutput(H2FullPrunedBlockStore.java:680)
    at com.google.bitcoin.core.FullPrunedBlockChain.connectTransactions(FullPrunedBlockChain.java:222)
    at com.google.bitcoin.core.AbstractBlockChain.connectBlock(AbstractBlockChain.java:441)
    at com.google.bitcoin.core.AbstractBlockChain.add(AbstractBlockChain.java:397)
    at com.google.bitcoin.core.AbstractBlockChain.add(AbstractBlockChain.java:252)
    ... 8 more

bitcoin-qt decoderawtransaction gives:

{
"txid" : "ebc9fa1196a59e192352d76c0f6e73167046b9d37b8302b6bb6968dfd279b767",
"version" : 1,
"locktime" : 0,
"vin" : [
{
"txid" : "6d7ed9914625c73c0288694a6819196a27ef6c08f98e1270d975a8e65a3dc09a",
"vout" : 1,
"scriptSig" : {
"asm" : 
"30450221009d41dc793ba24e65f571473d40b299b6459087cea1509f0d381740b1ac863cb602203
9c425906fcaf51b2b84d8092569fb3213de43abaff2180e2a799d4fcb4dd0aa01 
02d5ede09a8ae667d0f855ef90325e27f6ce35bbe60a1e6e87af7f5b3c652140fd",
"hex" : 
"4830450221009d41dc793ba24e65f571473d40b299b6459087cea1509f0d381740b1ac863cb6022
039c425906fcaf51b2b84d8092569fb3213de43abaff2180e2a799d4fcb4dd0aa012102d5ede09a8
ae667d0f855ef90325e27f6ce35bbe60a1e6e87af7f5b3c652140fd"
},
"sequence" : 4294967295
}
],
"vout" : [
{
"value" : 0.00000001,
"n" : 0,
"scriptPubKey" : {
"asm" : "[error]",
"hex" : "01",
"type" : "nonstandard"
}
},
{
"value" : 0.00000001,
"n" : 1,
"scriptPubKey" : {
"asm" : "[error]",
"hex" : "0201",
"type" : "nonstandard"
}
},
{
"value" : 0.00000001,
"n" : 2,
"scriptPubKey" : {
"asm" : "[error]",
"hex" : "4c",
"type" : "nonstandard"
}
},
{
"value" : 0.00000001,
"n" : 3,
"scriptPubKey" : {
"asm" : "[error]",
"hex" : "4c0201",
"type" : "nonstandard"
}
},
{
"value" : 0.00000001,
"n" : 4,
"scriptPubKey" : {
"asm" : "[error]",
"hex" : "4d",
"type" : "nonstandard"
}
},
{
"value" : 0.00000001,
"n" : 5,
"scriptPubKey" : {
"asm" : "[error]",
"hex" : "4dffff01",
"type" : "nonstandard"
}
},
{
"value" : 0.00000001,
"n" : 6,
"scriptPubKey" : {
"asm" : "[error]",
"hex" : "4e",
"type" : "nonstandard"
}
},
{
"value" : 0.00000001,
"n" : 7,
"scriptPubKey" : {
"asm" : "[error]",
"hex" : "4effffffff01",
"type" : "nonstandard"
}
}
]
}

Original issue reported on code.google.com by i...@pinballcoin.com on 5 Mar 2014 at 9:50

GoogleCodeExporter commented 9 years ago
Ignore the above analysis! Totally wrong!
There is an issue in this block but not this issue!

Original comment by i...@pinballcoin.com on 5 Mar 2014 at 9:55

GoogleCodeExporter commented 9 years ago
Please CLOSE this issue.
It is actually in my code!
I added some code to push the address into the openoutputs table. And this is 
failing on this tx. So I just need a try/catch round for this issue where a 
script can not be parsed.

Thanks

Original comment by i...@pinballcoin.com on 5 Mar 2014 at 10:25

GoogleCodeExporter commented 9 years ago

Original comment by andreas....@gmail.com on 5 Mar 2014 at 10:29

GoogleCodeExporter commented 9 years ago
Good to hear you got it figured out!

Original comment by mh.in.en...@gmail.com on 6 Mar 2014 at 9:12