aboutsummaryrefslogtreecommitdiffstats
path: root/core/state_processor.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2016-11-14 22:59:31 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2016-11-14 22:59:31 +0800
commit6c9c1e6712d684e782a8920dac0173b49257fa1f (patch)
tree2df35d4512681aa600e0270e176829bcca49482d /core/state_processor.go
parentca73dea3b9bcdf3b5424b5c48c70817439e2e304 (diff)
downloadgo-tangerine-6c9c1e6712d684e782a8920dac0173b49257fa1f.tar.gz
go-tangerine-6c9c1e6712d684e782a8920dac0173b49257fa1f.tar.zst
go-tangerine-6c9c1e6712d684e782a8920dac0173b49257fa1f.zip
core, core/types: refactored tx chain id checking
Refactored explicit chain id checking in to the Sender deriviation method
Diffstat (limited to 'core/state_processor.go')
-rw-r--r--core/state_processor.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/core/state_processor.go b/core/state_processor.go
index 46c5db0ee..375b317f1 100644
--- a/core/state_processor.go
+++ b/core/state_processor.go
@@ -17,7 +17,6 @@
package core
import (
- "fmt"
"math/big"
"github.com/ethereum/go-ethereum/core/state"
@@ -73,10 +72,6 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
}
// Iterate over and process the individual transactions
for i, tx := range block.Transactions() {
- if tx.Protected() && tx.ChainId().Cmp(p.config.ChainId) != 0 {
- return nil, nil, nil, fmt.Errorf("Invalid transaction chain id. Current chain id: %v tx chain id: %v", p.config.ChainId, tx.ChainId())
- }
-
statedb.StartRecord(tx.Hash(), block.Hash(), i)
receipt, logs, _, err := ApplyTransaction(p.config, p.bc, gp, statedb, header, tx, totalUsedGas, cfg)
if err != nil {