From 408f2e4d5d5fa1982e69004d0df6b026ee4c27c2 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 10 Nov 2017 23:32:16 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_socket.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_socket.c b/iguana/exchanges/LP_socket.c index e6bc5ad02..74a9bb364 100644 --- a/iguana/exchanges/LP_socket.c +++ b/iguana/exchanges/LP_socket.c @@ -327,7 +327,11 @@ int32_t electrum_process_array(struct iguana_info *coin,struct electrum_info *ep if (tx->height <= 0 ) { tx->height = ht; - //printf("%s %s >>>>>>>>>> set %s <- height %d\n",coin->symbol,coinaddr,bits256_str(str,txid),tx->height); + if ( ep != 0 && coin != 0 && tx->SPV == 0 ) + { + tx->SPV = LP_merkleproof(coin,ep,txid,tx->height); + printf("%s %s >>>>>>>>>> set %s <- height %d\n",coin->symbol,coinaddr,bits256_str(str,txid),tx->height); + } } if ( v >= 0 && v < tx->numvouts ) {