diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 127983a17..991cc1333 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -137,7 +137,7 @@ void *chainparams_commandline(void *ptr) { sleep(1); } - fprintf(stderr,">>>>>>>> port.%u\n",ASSETCHAINS_PORT); + //fprintf(stderr,">>>>>>>> port.%u\n",ASSETCHAINS_PORT); if ( ASSETCHAINS_SYMBOL[0] != 0 ) { mainParams.SetDefaultPort(ASSETCHAINS_PORT); diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 352971965..6e147e650 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -40,7 +40,7 @@ uint64_t komodo_paxtotal() { struct pax_transaction *pax,*tmp; uint64_t total = 0; tmp = 0; - while ( (pax= (struct pax_transaction *)PAX->hh.next) != 0 && pax != tmp ) + while ( PAX != 0 && (pax= (struct pax_transaction *)PAX->hh.next) != 0 && pax != tmp ) { if ( pax->marked == 0 ) total += pax->fiatoshis; @@ -153,7 +153,7 @@ void komodo_gateway_deposits(CMutableTransaction *txNew,int32_t shortflag,char * opcode = 'I'; else opcode = 'X'; tmp = 0; - while ( (pax= (struct pax_transaction *)PAX->hh.next) != 0 && pax != tmp ) + while ( PAX != 0 && (pax= (struct pax_transaction *)PAX->hh.next) != 0 && pax != tmp ) { if ( pax->marked != 0 ) continue;