From c83e66e128a9136d4ac8e52f3be05bd82f5c9b37 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 26 Mar 2017 21:42:20 +0300 Subject: [PATCH] Test --- src/komodo_gateway.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 6956314e3..9de8bb545 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -941,8 +941,10 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above if ( strcmp(ASSETCHAINS_SYMBOL,CURRENCIES[baseids[i-1]]) == 0 ) { //check deposit validates AUD.1047 [3] 0.14585530 -> 0.01000000 (0.14585530 0.01000000 0.01000000) - checktoshis = komodo_paxprice(&seed,pax->height,CURRENCIES[baseids[i-1]],(char *)"KMD",(uint64_t)pax->komodoshis); - if ( komodo_paxcmp(CURRENCIES[baseids[i-1]],pax->height,pax->fiatoshis,checktoshis,0) == 0 ) + char destaddr[64],coinaddr[64]; uint8_t pubkey33[33]; + checktoshis = PAX_fiatdest(&seed,0,destaddr,pubkey33,coinaddr,pax->height,CURRENCIES[baseids[i-1]],pax->fiatoshis); + //checktoshis = komodo_paxprice(&seed,pax->height,CURRENCIES[baseids[i-1]],(char *)"KMD",(uint64_t)pax->komodoshis); + if ( komodo_paxcmp(CURRENCIES[baseids[i-1]],pax->height,pax->komodoshis,checktoshis,0) == 0 ) printf("paxcmp PASS "); else printf("paxcmp FAIL ");