From 57d0f643f60a4e749530b76924bcb92ed6489ac1 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Tue, 26 Nov 2024 14:16:36 +0800 Subject: [PATCH] core: polish code --- core/block_validator.go | 2 +- core/state_transition.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/block_validator.go b/core/block_validator.go index a3306365cc..5885df9ee2 100644 --- a/core/block_validator.go +++ b/core/block_validator.go @@ -93,7 +93,7 @@ func (v *BlockValidator) ValidateBody(block *types.Block) error { } // The individual checks for blob validity (version-check + not empty) - // happens in stateTransition. + // happens in state transition. } // Check blob gas usage. diff --git a/core/state_transition.go b/core/state_transition.go index d397a57844..ea7e3df2ff 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -188,7 +188,6 @@ func TransactionToMessage(tx *types.Transaction, s types.Signer, baseFee *big.In // state and would never be accepted within a block. func ApplyMessage(evm *vm.EVM, msg *Message, gp *GasPool) (*ExecutionResult, error) { evm.SetTxContext(NewEVMTxContext(msg)) - return newStateTransition(evm, msg, gp).execute() }