Return gasUsed instead of gasDebit

This commit is contained in:
nicksavers 2014-08-21 19:10:28 +02:00
parent e7bab2a8ee
commit 0a2a0803b9

View File

@ -370,7 +370,7 @@ public class Blockchain {
} catch (RuntimeException e) {
trackRepository.rollback();
if(e instanceof OutOfGasException)
return gasDebit.longValue();
return new BigInteger(1, tx.getGasLimit()).longValue();
return 0;
}
trackRepository.commit();