VM tracing:

+ slight invoke trace fix
This commit is contained in:
romanman 2014-06-21 01:02:03 +01:00
parent ca2d542a28
commit 09fdc66458
1 changed files with 10 additions and 9 deletions

View File

@ -113,13 +113,14 @@ public class ProgramInvokeFactory {
"difficulty={}\n" + "difficulty={}\n" +
"gaslimit={}\n" "gaslimit={}\n"
, ,
Hex.toHexString(address), Hex.toHexString(address),
Hex.toHexString(origin), Hex.toHexString(origin),
Hex.toHexString(caller), Hex.toHexString(caller),
Hex.toHexString(balance), new BigInteger(balance).longValue(),
Hex.toHexString(gasPrice), new BigInteger(gasPrice).longValue(),
Hex.toHexString(gas), new BigInteger(gas).longValue(),
Hex.toHexString(callValue), new BigInteger(callValue).longValue(),
Hex.toHexString(data), Hex.toHexString(data),
Hex.toHexString(lastHash), Hex.toHexString(lastHash),
Hex.toHexString(coinbase), Hex.toHexString(coinbase),
@ -187,17 +188,17 @@ public class ProgramInvokeFactory {
Hex.toHexString(address.getData()), Hex.toHexString(address.getData()),
Hex.toHexString(origin.getData()), Hex.toHexString(origin.getData()),
Hex.toHexString(caller.getData()), Hex.toHexString(caller.getData()),
Hex.toHexString(balance.getData()), new BigInteger(balance.getData()).longValue(),
Hex.toHexString(gasPrice.getData()), new BigInteger(gasPrice.getData()).longValue(),
Hex.toHexString(gas.getData()), new BigInteger(gas.getData()).longValue(),
Hex.toHexString(callValue.getData()), Hex.toHexString(callValue.getData()),
Hex.toHexString(data), Hex.toHexString(data),
Hex.toHexString(lastHash.getData()), Hex.toHexString(lastHash.getData()),
Hex.toHexString(coinbase.getData()), Hex.toHexString(coinbase.getData()),
Hex.toHexString(timestamp.getData()), Hex.toHexString(timestamp.getData()),
Hex.toHexString(number.getData()), new BigInteger(number.getData()).longValue(),
Hex.toHexString(difficulty.getData()), Hex.toHexString(difficulty.getData()),
Hex.toHexString(gasLimit.getData())); new BigInteger(gasLimit.getData()).longValue());
} }
return new ProgramInvokeImpl(address, origin, caller, balance, gasPrice, gas, callValue, return new ProgramInvokeImpl(address, origin, caller, balance, gasPrice, gas, callValue,