From 9e41101f1d258a57d6b83956a4c75edef1ac5fff Mon Sep 17 00:00:00 2001 From: Shannon Appelcline Date: Wed, 21 Jun 2017 12:08:49 -0700 Subject: [PATCH] Update 12_3_Programming_Bitcoind_with_C.md --- 12_3_Programming_Bitcoind_with_C.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/12_3_Programming_Bitcoind_with_C.md b/12_3_Programming_Bitcoind_with_C.md index 4e70078..46ab696 100644 --- a/12_3_Programming_Bitcoind_with_C.md +++ b/12_3_Programming_Bitcoind_with_C.md @@ -85,6 +85,9 @@ json_t *lu_result = NULL; lu_response = bitcoinrpc_resp_get (btcresponse); lu_result = json_object_get(lu_response,"result"); ``` + +> **WARNING:** You only get a result if there wasn't an error. Here's another place for better error checking for production code. + Then, you go into a loop, examining each unspent transaction, which appears as an element in your JSON result array: ``` int i;