btcs

bitcoin script parser/evaluator/compiler/decompiler
git clone git://jb55.com/btcs
Log | Files | Refs | README | LICENSE

commit 06038df822e747e70fe79198de08b036123fbc50
parent 302276fab1bffdba8c21c1ee9b5ca825c2376b38
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 21 Dec 2017 07:02:50 -0800

tuck: copy

Diffstat:
Mscript.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/script.c b/script.c @@ -469,7 +469,7 @@ script_eval(const u8 *script, size_t script_size, struct stack *stack, SCRIPTERR("INVALID_STACK_OPERATION"); struct val val = stack_top_val(stack, -1); stack_swap(stack, -2, -1); - stack_push(stack, stack_top(stack, -2)); + stack_push_val(stack, val_copy(val)); } break;