Title: Blocktester question Post by: grau on February 23, 2013, 08:09:15 PM Edit: Solved.
Mike Hearn pointed me to the relevant comment in bitcoinj. While adapting the bitcoinj block tester to bitsofproof. I struggle to get the meaning of the following comment: FullBlocktestGenerator.java (line 715) // Exploit the SigHash.SINGLE bug to avoid having to make more than one signature Would you please elaborate? What bug? I see that the transaction generated has two inputs and only only output e.g.: Code: { "hash" : "1b4ef446fa472102ceac746719776b763dd7738034345f601258a57e00bc91f1", Reading the Satoshi code I would assume that this does not evaluate to true for input 1 since: script.cpp: Code: else if ((nHashType & 0x1f) == SIGHASH_SINGLE) but apparently it does. Why? |