-
Notifications
You must be signed in to change notification settings - Fork 21.6k
Closed
Description
The prestateTracer reverts the value transfer of a transaction in result:
go-ethereum/eth/tracers/internal/tracers/prestate_tracer.js
Lines 57 to 58 in 7a509b4
| this.prestate[toHex(ctx.to)].balance = '0x'+toBal.subtract(ctx.value).toString(16); | |
| this.prestate[toHex(ctx.from)].balance = '0x'+fromBal.add(ctx.value).toString(16); |
But it doesn't revert the gas bought here:
go-ethereum/core/state_transition.go
Line 167 in b211742
| st.state.SubBalance(st.msg.From(), mgval) |
and therefore returns the tx sender's balance - (gasPrice * gasLimit).
Jonah246
Metadata
Metadata
Assignees
Labels
No labels