From 4bf1879cd575cf51829e78b5394bd203b782739f Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 27 Oct 2017 13:38:05 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_utxos.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_utxos.c b/iguana/exchanges/LP_utxos.c index c91088ca2..49c11c283 100644 --- a/iguana/exchanges/LP_utxos.c +++ b/iguana/exchanges/LP_utxos.c @@ -762,7 +762,7 @@ void LP_privkey_updates(void *ctx,int32_t pubsock,char *passphrase) int32_t LP_passphrase_init(char *passphrase,char *gui) { - static void *ctx; int32_t iambob; struct LP_utxoinfo *utxo,*tmp; + static void *ctx; int32_t iambob,counter; struct LP_utxoinfo *utxo,*tmp; if ( ctx == 0 ) ctx = bitcoin_ctx(); if ( G.LP_pendingswaps != 0 ) @@ -770,6 +770,7 @@ int32_t LP_passphrase_init(char *passphrase,char *gui) G.initializing = 1; if ( gui == 0 ) gui = "cli"; + counter = G.USERPASS_COUNTER; while ( G.waiting == 0 ) { printf("waiting for G.waiting\n"); @@ -800,6 +801,7 @@ int32_t LP_passphrase_init(char *passphrase,char *gui) init_hexbytes_noT(G.LP_myrmd160str,G.LP_myrmd160,20); G.LP_sessionid = (uint32_t)time(NULL); safecopy(G.gui,gui,sizeof(G.gui)); + G.USERPASS_COUNTER = counter; return(0); }