Commit 6d1f7cd9 authored by QM's avatar QM Committed by vipwzw

update

parent 4fafb1c1
...@@ -44,7 +44,7 @@ func PrepareTestEnv() (*ethinterface.SimExtend, *ethtxs.DeployPara) { ...@@ -44,7 +44,7 @@ func PrepareTestEnv() (*ethinterface.SimExtend, *ethtxs.DeployPara) {
} }
alloc[addr] = account alloc[addr] = account
} }
gasLimit := uint64(1300000) gasLimit := uint64(100000000)
sim := new(ethinterface.SimExtend) sim := new(ethinterface.SimExtend)
sim.SimulatedBackend = backends.NewSimulatedBackend(alloc, gasLimit) sim.SimulatedBackend = backends.NewSimulatedBackend(alloc, gasLimit)
...@@ -87,7 +87,7 @@ func PrepareTestEnvironment(deployerPrivateKey string, ethValidatorAddrKeys []st ...@@ -87,7 +87,7 @@ func PrepareTestEnvironment(deployerPrivateKey string, ethValidatorAddrKeys []st
alloc[addr] = account alloc[addr] = account
} }
gasLimit := uint64(1300000) gasLimit := uint64(100000000)
//sim := backends.NewSimulatedBackend(core.GenesisAlloc{addr: {Balance: big.NewInt(params.Ether)}}, 10000000) //sim := backends.NewSimulatedBackend(core.GenesisAlloc{addr: {Balance: big.NewInt(params.Ether)}}, 10000000)
sim := backends.NewSimulatedBackend(alloc, gasLimit) sim := backends.NewSimulatedBackend(alloc, gasLimit)
......
...@@ -251,7 +251,7 @@ func PrepareTestEnv() (*ethinterface.SimExtend, *DeployPara) { ...@@ -251,7 +251,7 @@ func PrepareTestEnv() (*ethinterface.SimExtend, *DeployPara) {
} }
alloc[addr] = account alloc[addr] = account
} }
gasLimit := uint64(1300000) gasLimit := uint64(100000000)
sim := new(ethinterface.SimExtend) sim := new(ethinterface.SimExtend)
sim.SimulatedBackend = backends.NewSimulatedBackend(alloc, gasLimit) sim.SimulatedBackend = backends.NewSimulatedBackend(alloc, gasLimit)
......
...@@ -53,7 +53,7 @@ func Test_GetAddressFromBridgeRegistry(t *testing.T) { ...@@ -53,7 +53,7 @@ func Test_GetAddressFromBridgeRegistry(t *testing.T) {
PrivateKey: crypto.FromECDSA(genesiskey), PrivateKey: crypto.FromECDSA(genesiskey),
} }
alloc[genesisAddr] = genesisAccount alloc[genesisAddr] = genesisAccount
gasLimit := uint64(1300000) gasLimit := uint64(100000000)
sim := new(ethinterface.SimExtend) sim := new(ethinterface.SimExtend)
sim.SimulatedBackend = backends.NewSimulatedBackend(alloc, gasLimit) sim.SimulatedBackend = backends.NewSimulatedBackend(alloc, gasLimit)
...@@ -158,7 +158,7 @@ func PrepareTestEnvironment(deployerPrivateKey string, ethValidatorAddrKeys []st ...@@ -158,7 +158,7 @@ func PrepareTestEnvironment(deployerPrivateKey string, ethValidatorAddrKeys []st
alloc[addr] = account alloc[addr] = account
} }
gasLimit := uint64(1300000) gasLimit := uint64(100000000)
sim := backends.NewSimulatedBackend(alloc, gasLimit) sim := backends.NewSimulatedBackend(alloc, gasLimit)
InitPowers := []*big.Int{big.NewInt(80), big.NewInt(10), big.NewInt(10), big.NewInt(10)} InitPowers := []*big.Int{big.NewInt(80), big.NewInt(10), big.NewInt(10), big.NewInt(10)}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment