From 33479e6e8b434c498f1b047f95577c98b77082da Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 6 Nov 2016 19:35:52 -0300 Subject: [PATCH] test --- iguana/dpow/dpow_rpc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iguana/dpow/dpow_rpc.c b/iguana/dpow/dpow_rpc.c index 959d077e4..75b4be03e 100755 --- a/iguana/dpow/dpow_rpc.c +++ b/iguana/dpow/dpow_rpc.c @@ -540,6 +540,8 @@ void dpow_issuer_withdraw(struct dpow_info *dp,char *coinaddr,uint64_t fiatoshis pax = (struct pax_transaction *)calloc(1,sizeof(*pax)); pax->txid = txid; pax->vout = vout; + if ( dp->PAX == 0 ) + HASH_ADD_KEYPTR(hh,dp->PAX,&pax->txid,sizeof(pax->txid),pax); HASH_ADD_KEYPTR(hh,dp->PAX,&pax->txid,sizeof(pax->txid),pax); printf("ADD PAX.%p (%p %p) pax.%p\n",dp->PAX,dp->PAX->hh.next,dp->PAX->hh.prev,pax); }