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); }