示例#1
0
        public static EXECUTION_RESULT?CHECKLOCKTIME(ref ExecutionStack stack)
        {
            if (stack.Transaction == null)
            {
                return(EXECUTION_RESULT.NO_TRANSACTION_GIVEN);
            }
            if (stack.Count() < 1)
            {
                return(EXECUTION_RESULT.INVALID_STACK);
            }
            if (stack.Peek().Length != 4)
            {
                return(EXECUTION_RESULT.INVALID_BYTE_SIZE);
            }

            uint size = stack.PopUInt();

            stack.Push(stack.Transaction.lockTime >= size);
            return(null);
        }