From 8662bb58ef47c12831b148309a023c1fe953cba2 Mon Sep 17 00:00:00 2001 From: hh Date: Thu, 25 Jan 2024 21:03:54 +0800 Subject: [PATCH] add colort tips --- docs/advanced/how-to-debug-scriptcontext.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/advanced/how-to-debug-scriptcontext.md b/docs/advanced/how-to-debug-scriptcontext.md index 30fdf4dc2..e470ff745 100644 --- a/docs/advanced/how-to-debug-scriptcontext.md +++ b/docs/advanced/how-to-debug-scriptcontext.md @@ -36,4 +36,11 @@ and you will see the comparison result: ![diffoutputs](../../static/img/diffoutputs.png) + +If the outputs of the transaction is inconsistent with the outputs expected by the contract: + +1. Outputs of the transaction is marked green. +2. Outputs expected by the contract is marked red. +3. Identical parts are marked in gray. + Through the printed comparison results, we can intuitively see that the number of satoshis included in the output calculated in the contract is different from the number of satoshis included in the output actually added when constructing the transaction. Now, we have found the source of the error.