@@ -578,7 +578,7 @@ func TestFastVsFullChains(t *testing.T) {
578578 Alloc : GenesisAlloc {address : {Balance : funds }},
579579 }
580580 genesis = gspec .MustCommit (gendb )
581- signer = types .NewEIP155Signer (gspec .Config .ChainId )
581+ signer = types .NewEIP155Signer (gspec .Config .ChainID )
582582 )
583583 blocks , receipts := GenerateChain (gspec .Config , genesis , ethash .NewFaker (), gendb , 1024 , func (i int , block * BlockGen ) {
584584 block .SetCoinbase (common.Address {0x00 })
@@ -753,7 +753,7 @@ func TestChainTxReorgs(t *testing.T) {
753753 },
754754 }
755755 genesis = gspec .MustCommit (db )
756- signer = types .NewEIP155Signer (gspec .Config .ChainId )
756+ signer = types .NewEIP155Signer (gspec .Config .ChainID )
757757 )
758758
759759 // Create two transactions shared between the chains:
@@ -859,7 +859,7 @@ func TestLogReorgs(t *testing.T) {
859859 code = common .Hex2Bytes ("60606040525b7f24ec1d3ff24c2f6ff210738839dbc339cd45a5294d85c79361016243157aae7b60405180905060405180910390a15b600a8060416000396000f360606040526008565b00" )
860860 gspec = & Genesis {Config : params .TestChainConfig , Alloc : GenesisAlloc {addr1 : {Balance : big .NewInt (10000000000000 )}}}
861861 genesis = gspec .MustCommit (db )
862- signer = types .NewEIP155Signer (gspec .Config .ChainId )
862+ signer = types .NewEIP155Signer (gspec .Config .ChainID )
863863 )
864864
865865 blockchain , _ := NewBlockChain (db , nil , gspec .Config , ethash .NewFaker (), vm.Config {})
@@ -906,7 +906,7 @@ func TestReorgSideEvent(t *testing.T) {
906906 Alloc : GenesisAlloc {addr1 : {Balance : big .NewInt (10000000000000 )}},
907907 }
908908 genesis = gspec .MustCommit (db )
909- signer = types .NewEIP155Signer (gspec .Config .ChainId )
909+ signer = types .NewEIP155Signer (gspec .Config .ChainID )
910910 )
911911
912912 blockchain , _ := NewBlockChain (db , nil , gspec .Config , ethash .NewFaker (), vm.Config {})
@@ -1032,7 +1032,7 @@ func TestEIP155Transition(t *testing.T) {
10321032 funds = big .NewInt (1000000000 )
10331033 deleteAddr = common.Address {1 }
10341034 gspec = & Genesis {
1035- Config : & params.ChainConfig {ChainId : big .NewInt (1 ), EIP155Block : big .NewInt (2 ), HomesteadBlock : new (big.Int )},
1035+ Config : & params.ChainConfig {ChainID : big .NewInt (1 ), EIP155Block : big .NewInt (2 ), HomesteadBlock : new (big.Int )},
10361036 Alloc : GenesisAlloc {address : {Balance : funds }, deleteAddr : {Balance : new (big.Int )}},
10371037 }
10381038 genesis = gspec .MustCommit (db )
@@ -1063,7 +1063,7 @@ func TestEIP155Transition(t *testing.T) {
10631063 }
10641064 block .AddTx (tx )
10651065
1066- tx , err = basicTx (types .NewEIP155Signer (gspec .Config .ChainId ))
1066+ tx , err = basicTx (types .NewEIP155Signer (gspec .Config .ChainID ))
10671067 if err != nil {
10681068 t .Fatal (err )
10691069 }
@@ -1075,7 +1075,7 @@ func TestEIP155Transition(t *testing.T) {
10751075 }
10761076 block .AddTx (tx )
10771077
1078- tx , err = basicTx (types .NewEIP155Signer (gspec .Config .ChainId ))
1078+ tx , err = basicTx (types .NewEIP155Signer (gspec .Config .ChainID ))
10791079 if err != nil {
10801080 t .Fatal (err )
10811081 }
@@ -1103,7 +1103,7 @@ func TestEIP155Transition(t *testing.T) {
11031103 }
11041104
11051105 // generate an invalid chain id transaction
1106- config := & params.ChainConfig {ChainId : big .NewInt (2 ), EIP155Block : big .NewInt (2 ), HomesteadBlock : new (big.Int )}
1106+ config := & params.ChainConfig {ChainID : big .NewInt (2 ), EIP155Block : big .NewInt (2 ), HomesteadBlock : new (big.Int )}
11071107 blocks , _ = GenerateChain (config , blocks [len (blocks )- 1 ], ethash .NewFaker (), db , 4 , func (i int , block * BlockGen ) {
11081108 var (
11091109 tx * types.Transaction
@@ -1137,7 +1137,7 @@ func TestEIP161AccountRemoval(t *testing.T) {
11371137 theAddr = common.Address {1 }
11381138 gspec = & Genesis {
11391139 Config : & params.ChainConfig {
1140- ChainId : big .NewInt (1 ),
1140+ ChainID : big .NewInt (1 ),
11411141 HomesteadBlock : new (big.Int ),
11421142 EIP155Block : new (big.Int ),
11431143 EIP158Block : big .NewInt (2 ),
@@ -1153,7 +1153,7 @@ func TestEIP161AccountRemoval(t *testing.T) {
11531153 var (
11541154 tx * types.Transaction
11551155 err error
1156- signer = types .NewEIP155Signer (gspec .Config .ChainId )
1156+ signer = types .NewEIP155Signer (gspec .Config .ChainID )
11571157 )
11581158 switch i {
11591159 case 0 :
0 commit comments