]> Git Repo - VerusCoin.git/commitdiff
test
authorjl777 <[email protected]>
Sat, 3 Dec 2016 12:23:50 +0000 (09:23 -0300)
committerjl777 <[email protected]>
Sat, 3 Dec 2016 12:23:50 +0000 (09:23 -0300)
src/komodo_gateway.h
src/komodo_pax.h

index 83c004f5d56582ee2cef86d27ecc6e6ef4831625..3a7496ff2793a4a229d5b109aac2d8afd974df32 100644 (file)
@@ -527,7 +527,7 @@ int32_t komodo_paxcmp(char *symbol,int32_t kmdheight,uint64_t value,uint64_t che
             return(-1);
         }
     }
-    if ( value != checkvalue )
+    if ( 0 && value != checkvalue )
         printf("%s.%d seed.%llx paxcmp value %llu != checkvalue %llu\n",symbol,kmdheight,(long long)seed,(long long)value,(long long)checkvalue);
     return(value != checkvalue);
 }
@@ -589,7 +589,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3
                                 basesp->deposited += fiatoshis;
                                 didstats = 1;
                                 if ( strcmp(base,ASSETCHAINS_SYMBOL) == 0 )
-                                    printf("########### %p deposited %s += %.8f\n",basesp,base,dstr(fiatoshis));
+                                    printf("########### %p deposited %s += %.8f kmdheight.%d %.8f\n",basesp,base,dstr(fiatoshis),kmdheight,dstr(value));
                             }
                         }
                         if ( didstats != 0 )
@@ -716,8 +716,8 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3
                         strcpy(pax->source,(char *)&opretbuf[opretlen-4]);
                     }
                 }
-            } //else printf("opreturn none issued?\n");
-        } //else printf("opreturn matches KMD? %s\n",(char *)&opretbuf[opretlen-4]);
+            } else printf("opreturn none issued?\n");
+        } else printf("opreturn matches KMD? %s\n",(char *)&opretbuf[opretlen-4]);
     }
     else if ( opretbuf[0] == 'X' )
     {
index 09eb6c01b9d0c85de7bf1782ab9cd016c7555a97..1f7e23a038236e09f6fa6c58096bcb7bd05a31b6 100644 (file)
@@ -527,7 +527,7 @@ uint64_t PAX_fiatdest(uint64_t *seedp,int32_t tokomodo,char *destaddr,uint8_t pu
     if ( fiatoshis < 0 )
         shortflag = 1, fiatoshis = -fiatoshis;
     komodoshis = komodo_paxprice(seedp,height,base,(char *)"KMD",(uint64_t)fiatoshis);
-    printf("PAX_fiatdest ht.%d price %s %.8f -> KMD %.8f seed.%llx\n",height,base,(double)fiatoshis/COIN,(double)komodoshis/COIN,(long long)*seedp);
+    //printf("PAX_fiatdest ht.%d price %s %.8f -> KMD %.8f seed.%llx\n",height,base,(double)fiatoshis/COIN,(double)komodoshis/COIN,(long long)*seedp);
     if ( bitcoin_addr2rmd160(&addrtype,rmd160,coinaddr) == 20 )
     {
         PAX_pubkey(1,pubkey33,&addrtype,rmd160,base,&shortflag,tokomodo != 0 ? &komodoshis : &fiatoshis);
This page took 0.029973 seconds and 4 git commands to generate.