core, core/types: refactored tx chain id checking (#3257)

* core, core/types: refactored tx chain id checking

Refactored explicit chain id checking in to the Sender deriviation method

* cmd/utils, params: define chain ids
This commit is contained in:
Jeffrey Wilcke
2016-11-14 21:37:13 +01:00
committed by GitHub
6 changed files with 58 additions and 12 deletions

View File

@ -37,4 +37,7 @@ var (
TestNetSpuriousDragon = big.NewInt(3000000)
MainNetSpuriousDragon = big.NewInt(3000000)
TestNetChainID = big.NewInt(2) // Test net default chain ID
MainNetChainID = big.NewInt(1) // main net default chain ID
)