From 1e25835880e53a8c27cdb9afc1500efea0b0aa8b Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 25 Jul 2018 23:44:56 -1100 Subject: [PATCH] Test --- src/cc/CCassetsCore.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cc/CCassetsCore.cpp b/src/cc/CCassetsCore.cpp index 44fd7f261..e46325d24 100644 --- a/src/cc/CCassetsCore.cpp +++ b/src/cc/CCassetsCore.cpp @@ -130,6 +130,8 @@ bool SetAskFillamounts(uint64_t &received_assetoshis,uint64_t &remaining_nValue, },*/ unitprice = (double)(total_nValue * COIN) / orig_assetoshis; received_assetoshis = (paid_nValue * COIN) / unitprice; + fprintf(stderr,"remaining_nValue %llu (%llu - %llu)\n",(long long)remaining_nValue,(long long)total_nValue,(long long)paid_nValue); + fprintf(stderr,"unitprice %llu received_assetoshis %llu orig %llu\n",(long long)unitprice,(long long)received_assetoshis,(long long)orig_assetoshis); if ( unitprice > 0 && received_assetoshis > 0 && received_assetoshis <= orig_assetoshis ) { remaining_assetoshis = (orig_assetoshis - received_assetoshis);