Browse Source

Test

etomic
jl777 7 years ago
parent
commit
ff808f857a
  1. 4
      iguana/exchanges/LP_nativeDEX.c
  2. 2
      iguana/exchanges/LP_transaction.c

4
iguana/exchanges/LP_nativeDEX.c

@ -446,7 +446,7 @@ void command_rpcloop(void *myipaddr)
void utxosQ_loop(void *myipaddr) void utxosQ_loop(void *myipaddr)
{ {
strcpy(utxosQ_loop_stats.name,"utxosQ_loop"); strcpy(utxosQ_loop_stats.name,"utxosQ_loop");
utxosQ_loop_stats.threshold = 50.; utxosQ_loop_stats.threshold = 150.;
while ( 1 ) while ( 1 )
{ {
LP_millistats_update(&utxosQ_loop_stats); LP_millistats_update(&utxosQ_loop_stats);
@ -880,7 +880,7 @@ void LP_reserved_msgs(void *ignore)
bits256 zero; int32_t flag,nonz; struct nn_pollfd pfd; bits256 zero; int32_t flag,nonz; struct nn_pollfd pfd;
memset(zero.bytes,0,sizeof(zero)); memset(zero.bytes,0,sizeof(zero));
strcpy(LP_reserved_msgs_stats.name,"LP_reserved_msgs"); strcpy(LP_reserved_msgs_stats.name,"LP_reserved_msgs");
LP_reserved_msgs_stats.threshold = 50.; LP_reserved_msgs_stats.threshold = 150.;
while ( 1 ) while ( 1 )
{ {
nonz = 0; nonz = 0;

2
iguana/exchanges/LP_transaction.c

@ -648,7 +648,7 @@ char *basilisk_swap_bobtxspend(bits256 *signedtxidp,uint64_t txfee,char *name,ch
satoshis = value - 3*txfee/4; satoshis = value - 3*txfee/4;
printf("reduce satoshis %.8f by txfee %.8f to value %.8f\n",dstr(satoshis),dstr(txfee),dstr(value)); printf("reduce satoshis %.8f by txfee %.8f to value %.8f\n",dstr(satoshis),dstr(txfee),dstr(value));
} }
else if ( value == satoshis && (double)txfee/value < 0.001 ) else if ( value == satoshis && (double)txfee/value < 0.1 )
{ {
satoshis = value - txfee; satoshis = value - txfee;
printf("txfee allocation from value %.8f identical to satoshis: %.8f txfee %.8f\n",dstr(value),dstr(satoshis),dstr(txfee)); printf("txfee allocation from value %.8f identical to satoshis: %.8f txfee %.8f\n",dstr(value),dstr(satoshis),dstr(txfee));

Loading…
Cancel
Save