From 71c64efcea781477aa8532864bee6361172931b8 Mon Sep 17 00:00:00 2001 From: Shannon Appelcline Date: Wed, 21 Jun 2017 11:10:13 -0700 Subject: [PATCH] Update 12_3_Programming_Bitcoind_with_C.md --- 12_3_Programming_Bitcoind_with_C.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/12_3_Programming_Bitcoind_with_C.md b/12_3_Programming_Bitcoind_with_C.md index 79aae13..c56414a 100644 --- a/12_3_Programming_Bitcoind_with_C.md +++ b/12_3_Programming_Bitcoind_with_C.md @@ -53,8 +53,8 @@ printf("Sending %4.8f BTC to %s\n",tx_amount,tx_recipient); We're just setting the 0.0005 BTC fee that we've reguarly used to ensure that our test transactions go through quickly: ``` -float tx_fee = 0.0005; -float tx_total = tx_amount + tx_fee; +float tx_fee = 0.0005; +float tx_total = tx_amount + tx_fee; ``` > **WARNING:** A real program would calculate a fee that minimized cost while ensuring the speed was sufficient for the sender. @@ -106,7 +106,7 @@ Is the UTXO large enough to pay out your transaction? If so, grab it! ``` if (tx_amount > tx_total) { - json_t *lu_txid = NULL; + json_t *lu_txid = NULL; lu_txid = json_object_get(lu_data,"txid"); tx_id = strdup(json_string_value(lu_txid));