@@ -839,7 +839,7 @@ func testFastVsFullChains(t *testing.T, scheme string) {
839
839
funds = big .NewInt (1000000000000000 )
840
840
gspec = & Genesis {
841
841
Config : params .TestChainConfig ,
842
- Alloc : GenesisAlloc {address : {Balance : funds }},
842
+ Alloc : types. GenesisAlloc {address : {Balance : funds }},
843
843
BaseFee : big .NewInt (params .InitialBaseFee ),
844
844
}
845
845
signer = types .LatestSigner (gspec .Config )
@@ -972,7 +972,7 @@ func testLightVsFastVsFullChainHeads(t *testing.T, scheme string) {
972
972
funds = big .NewInt (1000000000000000 )
973
973
gspec = & Genesis {
974
974
Config : params .TestChainConfig ,
975
- Alloc : GenesisAlloc {address : {Balance : funds }},
975
+ Alloc : types. GenesisAlloc {address : {Balance : funds }},
976
976
BaseFee : big .NewInt (params .InitialBaseFee ),
977
977
}
978
978
)
@@ -1092,7 +1092,7 @@ func testChainTxReorgs(t *testing.T, scheme string) {
1092
1092
gspec = & Genesis {
1093
1093
Config : params .TestChainConfig ,
1094
1094
GasLimit : 3141592 ,
1095
- Alloc : GenesisAlloc {
1095
+ Alloc : types. GenesisAlloc {
1096
1096
addr1 : {Balance : big .NewInt (1000000000000000 )},
1097
1097
addr2 : {Balance : big .NewInt (1000000000000000 )},
1098
1098
addr3 : {Balance : big .NewInt (1000000000000000 )},
@@ -1207,7 +1207,7 @@ func testLogReorgs(t *testing.T, scheme string) {
1207
1207
1208
1208
// this code generates a log
1209
1209
code = common .Hex2Bytes ("60606040525b7f24ec1d3ff24c2f6ff210738839dbc339cd45a5294d85c79361016243157aae7b60405180905060405180910390a15b600a8060416000396000f360606040526008565b00" )
1210
- gspec = & Genesis {Config : params .TestChainConfig , Alloc : GenesisAlloc {addr1 : {Balance : big .NewInt (10000000000000000 )}}}
1210
+ gspec = & Genesis {Config : params .TestChainConfig , Alloc : types. GenesisAlloc {addr1 : {Balance : big .NewInt (10000000000000000 )}}}
1211
1211
signer = types .LatestSigner (gspec .Config )
1212
1212
)
1213
1213
@@ -1264,7 +1264,7 @@ func testLogRebirth(t *testing.T, scheme string) {
1264
1264
var (
1265
1265
key1 , _ = crypto .HexToECDSA ("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291" )
1266
1266
addr1 = crypto .PubkeyToAddress (key1 .PublicKey )
1267
- gspec = & Genesis {Config : params .TestChainConfig , Alloc : GenesisAlloc {addr1 : {Balance : big .NewInt (10000000000000000 )}}}
1267
+ gspec = & Genesis {Config : params .TestChainConfig , Alloc : types. GenesisAlloc {addr1 : {Balance : big .NewInt (10000000000000000 )}}}
1268
1268
signer = types .LatestSigner (gspec .Config )
1269
1269
engine = ethash .NewFaker ()
1270
1270
blockchain , _ = NewBlockChain (rawdb .NewMemoryDatabase (), DefaultCacheConfigWithScheme (scheme ), gspec , nil , engine , vm.Config {}, nil , nil )
@@ -1346,7 +1346,7 @@ func testSideLogRebirth(t *testing.T, scheme string) {
1346
1346
var (
1347
1347
key1 , _ = crypto .HexToECDSA ("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291" )
1348
1348
addr1 = crypto .PubkeyToAddress (key1 .PublicKey )
1349
- gspec = & Genesis {Config : params .TestChainConfig , Alloc : GenesisAlloc {addr1 : {Balance : big .NewInt (10000000000000000 )}}}
1349
+ gspec = & Genesis {Config : params .TestChainConfig , Alloc : types. GenesisAlloc {addr1 : {Balance : big .NewInt (10000000000000000 )}}}
1350
1350
signer = types .LatestSigner (gspec .Config )
1351
1351
blockchain , _ = NewBlockChain (rawdb .NewMemoryDatabase (), DefaultCacheConfigWithScheme (scheme ), gspec , nil , ethash .NewFaker (), vm.Config {}, nil , nil )
1352
1352
)
@@ -1443,7 +1443,7 @@ func testReorgSideEvent(t *testing.T, scheme string) {
1443
1443
addr1 = crypto .PubkeyToAddress (key1 .PublicKey )
1444
1444
gspec = & Genesis {
1445
1445
Config : params .TestChainConfig ,
1446
- Alloc : GenesisAlloc {addr1 : {Balance : big .NewInt (10000000000000000 )}},
1446
+ Alloc : types. GenesisAlloc {addr1 : {Balance : big .NewInt (10000000000000000 )}},
1447
1447
}
1448
1448
signer = types .LatestSigner (gspec .Config )
1449
1449
)
@@ -1586,7 +1586,7 @@ func testEIP155Transition(t *testing.T, scheme string) {
1586
1586
EIP155Block : big .NewInt (2 ),
1587
1587
HomesteadBlock : new (big.Int ),
1588
1588
},
1589
- Alloc : GenesisAlloc {address : {Balance : funds }, deleteAddr : {Balance : new (big.Int )}},
1589
+ Alloc : types. GenesisAlloc {address : {Balance : funds }, deleteAddr : {Balance : new (big.Int )}},
1590
1590
}
1591
1591
)
1592
1592
genDb , blocks , _ := GenerateChainWithGenesis (gspec , ethash .NewFaker (), 4 , func (i int , block * BlockGen ) {
@@ -1701,7 +1701,7 @@ func testEIP161AccountRemoval(t *testing.T, scheme string) {
1701
1701
EIP150Block : new (big.Int ),
1702
1702
EIP158Block : big .NewInt (2 ),
1703
1703
},
1704
- Alloc : GenesisAlloc {address : {Balance : funds }},
1704
+ Alloc : types. GenesisAlloc {address : {Balance : funds }},
1705
1705
}
1706
1706
)
1707
1707
_ , blocks , _ := GenerateChainWithGenesis (gspec , ethash .NewFaker (), 3 , func (i int , block * BlockGen ) {
@@ -1932,7 +1932,7 @@ func testBlockchainRecovery(t *testing.T, scheme string) {
1932
1932
key , _ = crypto .HexToECDSA ("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291" )
1933
1933
address = crypto .PubkeyToAddress (key .PublicKey )
1934
1934
funds = big .NewInt (1000000000 )
1935
- gspec = & Genesis {Config : params .TestChainConfig , Alloc : GenesisAlloc {address : {Balance : funds }}}
1935
+ gspec = & Genesis {Config : params .TestChainConfig , Alloc : types. GenesisAlloc {address : {Balance : funds }}}
1936
1936
)
1937
1937
height := uint64 (1024 )
1938
1938
_ , blocks , receipts := GenerateChainWithGenesis (gspec , ethash .NewFaker (), int (height ), nil )
@@ -2137,7 +2137,7 @@ func testSideImport(t *testing.T, numCanonBlocksInSidechain, blocksBetweenCommon
2137
2137
2138
2138
gspec = & Genesis {
2139
2139
Config : & chainConfig ,
2140
- Alloc : GenesisAlloc {addr : {Balance : big .NewInt (math .MaxInt64 )}},
2140
+ Alloc : types. GenesisAlloc {addr : {Balance : big .NewInt (math .MaxInt64 )}},
2141
2141
BaseFee : big .NewInt (params .InitialBaseFee ),
2142
2142
}
2143
2143
signer = types .LatestSigner (gspec .Config )
@@ -2732,7 +2732,7 @@ func benchmarkLargeNumberOfValueToNonexisting(b *testing.B, numTxs, numBlocks in
2732
2732
bankFunds = big .NewInt (100000000000000000 )
2733
2733
gspec = & Genesis {
2734
2734
Config : params .TestChainConfig ,
2735
- Alloc : GenesisAlloc {
2735
+ Alloc : types. GenesisAlloc {
2736
2736
testBankAddress : {Balance : bankFunds },
2737
2737
common .HexToAddress ("0xc0de" ): {
2738
2738
Code : []byte {0x60 , 0x01 , 0x50 },
@@ -2910,7 +2910,7 @@ func testDeleteCreateRevert(t *testing.T, scheme string) {
2910
2910
funds = big .NewInt (100000000000000000 )
2911
2911
gspec = & Genesis {
2912
2912
Config : params .TestChainConfig ,
2913
- Alloc : GenesisAlloc {
2913
+ Alloc : types. GenesisAlloc {
2914
2914
address : {Balance : funds },
2915
2915
// The address 0xAAAAA selfdestructs if called
2916
2916
aa : {
@@ -3034,7 +3034,7 @@ func testDeleteRecreateSlots(t *testing.T, scheme string) {
3034
3034
3035
3035
gspec := & Genesis {
3036
3036
Config : params .TestChainConfig ,
3037
- Alloc : GenesisAlloc {
3037
+ Alloc : types. GenesisAlloc {
3038
3038
address : {Balance : funds },
3039
3039
// The address 0xAAAAA selfdestructs if called
3040
3040
aa : {
@@ -3120,7 +3120,7 @@ func testDeleteRecreateAccount(t *testing.T, scheme string) {
3120
3120
3121
3121
gspec := & Genesis {
3122
3122
Config : params .TestChainConfig ,
3123
- Alloc : GenesisAlloc {
3123
+ Alloc : types. GenesisAlloc {
3124
3124
address : {Balance : funds },
3125
3125
// The address 0xAAAAA selfdestructs if called
3126
3126
aa : {
@@ -3241,7 +3241,7 @@ func testDeleteRecreateSlotsAcrossManyBlocks(t *testing.T, scheme string) {
3241
3241
t .Logf ("Destination address: %x\n " , aa )
3242
3242
gspec := & Genesis {
3243
3243
Config : params .TestChainConfig ,
3244
- Alloc : GenesisAlloc {
3244
+ Alloc : types. GenesisAlloc {
3245
3245
address : {Balance : funds },
3246
3246
// The address 0xAAAAA selfdestructs if called
3247
3247
aa : {
@@ -3436,7 +3436,7 @@ func testInitThenFailCreateContract(t *testing.T, scheme string) {
3436
3436
3437
3437
gspec := & Genesis {
3438
3438
Config : params .TestChainConfig ,
3439
- Alloc : GenesisAlloc {
3439
+ Alloc : types. GenesisAlloc {
3440
3440
address : {Balance : funds },
3441
3441
// The address aa has some funds
3442
3442
aa : {Balance : big .NewInt (100000 )},
@@ -3511,7 +3511,7 @@ func testEIP2718Transition(t *testing.T, scheme string) {
3511
3511
funds = big .NewInt (1000000000000000 )
3512
3512
gspec = & Genesis {
3513
3513
Config : params .TestChainConfig ,
3514
- Alloc : GenesisAlloc {
3514
+ Alloc : types. GenesisAlloc {
3515
3515
address : {Balance : funds },
3516
3516
// The address 0xAAAA sloads 0x00 and 0x01
3517
3517
aa : {
@@ -3596,7 +3596,7 @@ func testEIP1559Transition(t *testing.T, scheme string) {
3596
3596
config = * params .AllEthashProtocolChanges
3597
3597
gspec = & Genesis {
3598
3598
Config : & config ,
3599
- Alloc : GenesisAlloc {
3599
+ Alloc : types. GenesisAlloc {
3600
3600
addr1 : {Balance : funds },
3601
3601
addr2 : {Balance : funds },
3602
3602
// The address 0xAAAA sloads 0x00 and 0x01
@@ -3737,7 +3737,7 @@ func testSetCanonical(t *testing.T, scheme string) {
3737
3737
funds = big .NewInt (100000000000000000 )
3738
3738
gspec = & Genesis {
3739
3739
Config : params .TestChainConfig ,
3740
- Alloc : GenesisAlloc {address : {Balance : funds }},
3740
+ Alloc : types. GenesisAlloc {address : {Balance : funds }},
3741
3741
BaseFee : big .NewInt (params .InitialBaseFee ),
3742
3742
}
3743
3743
signer = types .LatestSigner (gspec .Config )
@@ -3854,7 +3854,7 @@ func testCanonicalHashMarker(t *testing.T, scheme string) {
3854
3854
var (
3855
3855
gspec = & Genesis {
3856
3856
Config : params .TestChainConfig ,
3857
- Alloc : GenesisAlloc {},
3857
+ Alloc : types. GenesisAlloc {},
3858
3858
BaseFee : big .NewInt (params .InitialBaseFee ),
3859
3859
}
3860
3860
engine = ethash .NewFaker ()
@@ -3967,7 +3967,7 @@ func testCreateThenDelete(t *testing.T, config *params.ChainConfig) {
3967
3967
}... )
3968
3968
gspec := & Genesis {
3969
3969
Config : config ,
3970
- Alloc : GenesisAlloc {
3970
+ Alloc : types. GenesisAlloc {
3971
3971
address : {Balance : funds },
3972
3972
},
3973
3973
}
@@ -4053,7 +4053,7 @@ func TestDeleteThenCreate(t *testing.T) {
4053
4053
4054
4054
gspec := & Genesis {
4055
4055
Config : params .TestChainConfig ,
4056
- Alloc : GenesisAlloc {
4056
+ Alloc : types. GenesisAlloc {
4057
4057
address : {Balance : funds },
4058
4058
},
4059
4059
}
@@ -4165,7 +4165,7 @@ func TestTransientStorageReset(t *testing.T) {
4165
4165
}... )
4166
4166
gspec := & Genesis {
4167
4167
Config : params .TestChainConfig ,
4168
- Alloc : GenesisAlloc {
4168
+ Alloc : types. GenesisAlloc {
4169
4169
address : {Balance : funds },
4170
4170
},
4171
4171
}
@@ -4233,7 +4233,7 @@ func TestEIP3651(t *testing.T) {
4233
4233
config = * params .AllEthashProtocolChanges
4234
4234
gspec = & Genesis {
4235
4235
Config : & config ,
4236
- Alloc : GenesisAlloc {
4236
+ Alloc : types. GenesisAlloc {
4237
4237
addr1 : {Balance : funds },
4238
4238
addr2 : {Balance : funds },
4239
4239
// The address 0xAAAA sloads 0x00 and 0x01
0 commit comments