libethcore/Transactionbase.cpp
In function baseGasRequired
, print the initial g
, it can be 'transaction cost' or 'create cost', and print g
again before it gets returned, now it will contain the cost for the sent in the transaction.
libethereum/Executive.cpp