Skip to content

Commit 90b7e09

Browse files
majectymergify[bot]
authored andcommitted
Update timelock spec to use the next script byte
1 parent 336cdaa commit 90b7e09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/CodeChain-Virtual-Machine.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ The specification about the tag is [here](Tag-encoding.md)
103103

104104
## Timelock
105105
* CHKTIMELOCK(0xb0)
106-
1. Pop one item from the stack, which is the encoded number for the 4 types of timelock. It must be between 1 and 4. The script will fail otherwise.
106+
1. Read the next script byte which is the encoded number for the 4 types of timelock. It must be between 1 and 4. The script will fail otherwise.
107107
- 1: Block
108108
- 2: BlockAge
109109
- 3: Time
110110
- 4: TimeAge
111-
2. Pop one more item from stack, which is the value of the timelock. It must be a 64-bit unsigned integer. The script will fail if the length of the item exceeds 8.
111+
2. Pop one item from stack, which is the value of the timelock. It must be a 64-bit unsigned integer. The script will fail if the length of the item exceeds 8.
112112
2. Check the condition given the type and the value referring to the block number and the timestamp of the best block. See the `Timelock` section in [Transaction](Transaction.md) for more details.
113113
3. Push true if the condition is met, false otherwise.

0 commit comments

Comments
 (0)