This commit is contained in:
jl777
2018-04-07 14:40:38 +03:00
parent f9155fec3c
commit 7313172ace

View File

@@ -660,9 +660,13 @@ uint64_t komodo_commission(const CBlock &block)
for (j=0; j<n; j++)
{
if ( i != 0 || j != 1 )
{
fprintf(stderr,"%.8f ",dstr(block.vtx[i].vout[j].nValue));
total += block.vtx[i].vout[j].nValue;
}
}
}
fprintf(stderr,"commission total %.8f -> %.8f\n",dstr(total),dstr((total * ASSETCHAINS_COMMISSION) / COIN));
return((total * ASSETCHAINS_COMMISSION) / COIN);
}