From 72af1b7ea5ddf5ed89effc4adcff163bba6cb1b3 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 7 Apr 2018 14:44:09 +0300 Subject: [PATCH] Test --- src/komodo_gateway.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index f061a5dbe..b40d0dad1 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -652,7 +652,7 @@ void komodo_passport_iteration(); uint64_t komodo_commission(const CBlock &block) { - int32_t i,j,n,txn_count; uint64_t total = 0; + int32_t i,j,n=0,txn_count; uint64_t total = 0; txn_count = block.vtx.size(); for (i=0; i %.8f\n",dstr(total),dstr((total * ASSETCHAINS_COMMISSION) / COIN)); + fprintf(stderr,"txn.%d n.%d commission total %.8f -> %.8f\n",txn_count,n,dstr(total),dstr((total * ASSETCHAINS_COMMISSION) / COIN)); return((total * ASSETCHAINS_COMMISSION) / COIN); }