From 1133ccc2126cc6974711af018c59a33ee73e7ac6 Mon Sep 17 00:00:00 2001 From: Shannon Appelcline Date: Thu, 1 Jun 2017 11:54:28 -0700 Subject: [PATCH] Update 8_3_Running_a_Bitcoin_Script_with_P2SH.md --- 8_3_Running_a_Bitcoin_Script_with_P2SH.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/8_3_Running_a_Bitcoin_Script_with_P2SH.md b/8_3_Running_a_Bitcoin_Script_with_P2SH.md index d7a5ed1..b85a4c0 100644 --- a/8_3_Running_a_Bitcoin_Script_with_P2SH.md +++ b/8_3_Running_a_Bitcoin_Script_with_P2SH.md @@ -46,12 +46,14 @@ Script: OP_HASH160 OP_EQUAL Stack: [ 1 98 ] Script: OP_EQUAL +Running: OP_HASH160 Stack: [ 1 98 ] Script: OP_EQUAL Stack: [ 1 98 ] Script: +Running: OP_EQUAL Stack: [ 1 98 True ] ``` The Script ends with a `True` on top of the stack, and so it succeeds ... even though there's other cruft below it. @@ -73,12 +75,14 @@ Script: OP_ADD 99 OP_EQUAL Stack: [ 1 98 ] Script: 99 OP_EQUAL +Running: 1 98 OP_ADD Stack: [ 99 ] Script: OP_EQUAL Stack: [ 99 99 ] Script: +Running: 99 99 OP_EQUAL Stack: [ True ] ``` With that second validation _also_ true, the UTXO can now be spent!