3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-07 23:03:04 +00:00

Properly uncache scriptSig in TransactionInput.setScriptBytes

This commit is contained in:
Matt Corallo 2013-05-13 18:57:24 +02:00 committed by Mike Hearn
parent 70685745c3
commit fad5356bd9

View File

@ -237,6 +237,7 @@ public class TransactionInput extends ChildMessage implements Serializable {
*/
void setScriptBytes(byte[] scriptBytes) {
unCache();
this.scriptSig = null;
int oldLength = length;
this.scriptBytes = scriptBytes;
// 40 = previous_outpoint (36) + sequence (4)