mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-11 22:43:47 +00:00
fix: remove unused log (#39)
This commit is contained in:
parent
40b7dbbd9b
commit
4ba3e5414d
1 changed files with 0 additions and 5 deletions
|
|
@ -26,7 +26,6 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/core/types"
|
"github.com/ethereum/go-ethereum/core/types"
|
||||||
"github.com/ethereum/go-ethereum/core/vm"
|
"github.com/ethereum/go-ethereum/core/vm"
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
"github.com/ethereum/go-ethereum/log"
|
|
||||||
"github.com/ethereum/go-ethereum/params"
|
"github.com/ethereum/go-ethereum/params"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -295,7 +294,6 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
|
||||||
if err := st.preCheck(); err != nil {
|
if err := st.preCheck(); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
log.Info("PreCheck", "st.initialGas", st.initialGas, "st.gas", st.gas)
|
|
||||||
|
|
||||||
if st.evm.Config.Debug {
|
if st.evm.Config.Debug {
|
||||||
st.evm.Config.Tracer.CaptureTxStart(st.initialGas)
|
st.evm.Config.Tracer.CaptureTxStart(st.initialGas)
|
||||||
|
|
@ -316,7 +314,6 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
log.Info("IntrinsicGas", "st.initialGas", st.initialGas, "st.gas", st.gas)
|
|
||||||
if st.gas < gas {
|
if st.gas < gas {
|
||||||
return nil, fmt.Errorf("%w: have %d, want %d", ErrIntrinsicGas, st.gas, gas)
|
return nil, fmt.Errorf("%w: have %d, want %d", ErrIntrinsicGas, st.gas, gas)
|
||||||
}
|
}
|
||||||
|
|
@ -342,7 +339,6 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
|
||||||
st.state.SetNonce(msg.From(), st.state.GetNonce(sender.Address())+1)
|
st.state.SetNonce(msg.From(), st.state.GetNonce(sender.Address())+1)
|
||||||
ret, st.gas, vmerr = st.evm.Call(sender, st.to(), st.data, st.gas, st.value)
|
ret, st.gas, vmerr = st.evm.Call(sender, st.to(), st.data, st.gas, st.value)
|
||||||
}
|
}
|
||||||
log.Info("evm.Call", "st.initialGas", st.initialGas, "st.gas", st.gas)
|
|
||||||
|
|
||||||
if !rules.IsLondon {
|
if !rules.IsLondon {
|
||||||
// Before EIP-3529: refunds were capped to gasUsed / 2
|
// Before EIP-3529: refunds were capped to gasUsed / 2
|
||||||
|
|
@ -365,7 +361,6 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
|
||||||
fee.Mul(fee, effectiveTip)
|
fee.Mul(fee, effectiveTip)
|
||||||
st.state.AddBalance(st.evm.Context.Coinbase, fee)
|
st.state.AddBalance(st.evm.Context.Coinbase, fee)
|
||||||
}
|
}
|
||||||
log.Info("TransitionDb.return", "st.initialGas", st.initialGas, "st.gas", st.gas)
|
|
||||||
|
|
||||||
return &ExecutionResult{
|
return &ExecutionResult{
|
||||||
UsedGas: st.gasUsed(),
|
UsedGas: st.gasUsed(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue