fix: remove unused log (#39)

This commit is contained in:
Zhang Guyu 2022-08-20 14:35:30 +08:00 committed by GitHub
parent 40b7dbbd9b
commit 4ba3e5414d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,6 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/core/vm"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/params"
)
@ -295,7 +294,6 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
if err := st.preCheck(); err != nil {
return nil, err
}
log.Info("PreCheck", "st.initialGas", st.initialGas, "st.gas", st.gas)
if st.evm.Config.Debug {
st.evm.Config.Tracer.CaptureTxStart(st.initialGas)
@ -316,7 +314,6 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
if err != nil {
return nil, err
}
log.Info("IntrinsicGas", "st.initialGas", st.initialGas, "st.gas", st.gas)
if 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)
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 {
// Before EIP-3529: refunds were capped to gasUsed / 2
@ -365,7 +361,6 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
fee.Mul(fee, effectiveTip)
st.state.AddBalance(st.evm.Context.Coinbase, fee)
}
log.Info("TransitionDb.return", "st.initialGas", st.initialGas, "st.gas", st.gas)
return &ExecutionResult{
UsedGas: st.gasUsed(),