mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
Do not change balance in JitVm
This commit is contained in:
parent
cf6c66b8bf
commit
1b3aca8f26
1 changed files with 0 additions and 2 deletions
|
|
@ -243,7 +243,6 @@ func env_call(_vm unsafe.Pointer, _gas unsafe.Pointer, _receiveAddr unsafe.Point
|
|||
value := llvm2big((*i256)(_value))
|
||||
|
||||
if balance.Cmp(value) >= 0 {
|
||||
vm.env.State().AddBalance(vm.me.Address(), value.Neg(value))
|
||||
receiveAddr := llvm2hash((*i256)(_receiveAddr))
|
||||
inData := C.GoBytes(inDataPtr, C.int(inDataLen))
|
||||
outData := llvm2bytes(outDataPtr, outDataLen)
|
||||
|
|
@ -276,7 +275,6 @@ func env_create(_vm unsafe.Pointer, _gas unsafe.Pointer, _value unsafe.Pointer,
|
|||
result := (*i256)(_result)
|
||||
|
||||
if balance.Cmp(value) >= 0 {
|
||||
vm.env.State().AddBalance(vm.me.Address(), value.Neg(value))
|
||||
initData := C.GoBytes(initDataPtr, C.int(initDataLen))
|
||||
llvmGas := (*i256)(_gas)
|
||||
gas := llvm2big(llvmGas)
|
||||
|
|
|
|||
Loading…
Reference in a new issue