fix tracer regression

This commit is contained in:
andri lim 2019-03-07 22:16:39 +07:00
parent 9c31980b79
commit b303786128
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9

View File

@ -103,8 +103,9 @@ proc traceTransaction*(db: BaseChainDB, header: BlockHeader,
beforeRoot = stateDb.rootHash
gasUsed = processTransaction(tx, sender, vmState)
let txFee = gasUsed.u256 * tx.gasPrice.u256
stateDb.addBalance(header.coinbase, txFee)
vmState.mutateStateDB:
let txFee = gasUsed.u256 * tx.gasPrice.u256
db.addBalance(header.coinbase, txFee)
if idx == txIndex:
after.captureAccount(stateDb, sender, senderName)