mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2024-11-15 20:49:21 +00:00
Fix the description of OP_TUCK.
The code is https://github.com/bitcoin/bitcoin/blob/master/src/script/interpreter.cpp#L686-L693 valtype vch = stacktop(-1); stack.insert(stack.end()-2, vch); which looks to me like it turns bottom-> ..., D, C, B, A <-top into bottom-> ..., D, C, A, B, A <-top
This commit is contained in:
parent
f8b883dcd4
commit
e9e2b53769
@ -81,7 +81,7 @@ Tables and descriptions sourced from https://en.bitcoin.it/wiki/Script[].
|
||||
| OP_ROLL | 0x7a | Pop value N from top, then move the Nth item to the top of the stack
|
||||
| OP_ROT | 0x7b | Rotate the top three items in the stack
|
||||
| OP_SWAP | 0x7c | Swap the top three items in the stack
|
||||
| OP_TUCK | 0x7d | Copy the top item and insert it between the top and second item.
|
||||
| OP_TUCK | 0x7d | Insert a copy of the top item just below the second item
|
||||
|=======
|
||||
|
||||
<<tx_script_ops_table_splice>> shows string operators.
|
||||
|
Loading…
Reference in New Issue
Block a user