// paycoin: fees are not collected by miners as in bitcoin
// paycoin: fees are destroyed to compensate the entire network
if (fDebug && GetBoolArg("-printcreation"))
printf("ConnectBlock() : destroy=%s nFees=%"PRI64d"\n", FormatMoney(nFees).c_str(), nFees);
You need to track where the variable nFees goes.
PRI* macros just guarantee a platform-independent read-and-print of a certain-sized variable. You can't used the standard %ld (long decimal) because it could be 32-bit sized on some machines, 64-bit or 128-bit sized on other machines, between compilers such as gcc or MSVC -- which causes printf stack-problems as nFees is always a 64-bit-sized number.
https://github.com/GAWMiners/paycoin/search?utf8=%E2%9C%93&q=pri64d
Now it's kinda dumb to copy those macros into src/util.h as they already exist in inttypes.h on all modern compilers.
https://github.com/GAWMiners/paycoin/blob/03cac171991c2ce075d0148f592512843c206082/src/bitcoinrpc.cpp looks more interesting and that's where the fee calculations are.
--
The candle should be green only if that block, on its windowed-average, actually moved the price up. Since the majority was a sell, it should've been a red candle.