The reason why this fails is because the method was checking that everything after the OP_RETURN is only push data, which is something that is not actually needed.
This PR change that behavior by just checking if the first element is an OP_RETURN opcode.
The method
Script#isOpReturn
had a really unexpected behavior:The reason why this fails is because the method was checking that everything after the OP_RETURN is only push data, which is something that is not actually needed.
This PR change that behavior by just checking if the first element is an OP_RETURN opcode.