A transaction output may have multiple OP_RETURNs.

This commit is contained in:
peacekeeper
2015-08-09 18:30:50 +02:00
committed by Andreas Schildbach
parent cf980bc68c
commit 5dcf643975

View File

@@ -750,7 +750,7 @@ public class Script {
}
public boolean isOpReturn() {
return chunks.size() == 2 && chunks.get(0).equalsOpCode(OP_RETURN);
return chunks.size() > 0 && chunks.get(0).equalsOpCode(OP_RETURN);
}
/**