diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 47da3f08c..e4d0e9c81 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -329,7 +329,7 @@ struct LP_utxoinfo *LP_addutxo(int32_t amclient,struct LP_peerinfo *mypeer,int32 memcpy(&key[sizeof(txid)],&vout,sizeof(vout)); memcpy(utxo->key,key,sizeof(key)); portable_mutex_lock(&LP_utxomutex); - HASH_ADD(hh,LP_utxoinfos,key,sizeof(key),utxo); + HASH_ADD_KEYPTR(hh,LP_utxoinfos,utxo->key,sizeof(key),utxo); if ( mypeer != 0 ) mypeer->numutxos++; portable_mutex_unlock(&LP_utxomutex);