Commit 1968509c authored by 王志文's avatar 王志文 Committed by vipwzw

dec gas limit

parent 8850975d
......@@ -44,7 +44,7 @@ func PrepareTestEnv() (*ethinterface.SimExtend, *ethtxs.DeployPara) {
}
alloc[addr] = account
}
gasLimit := uint64(100000000)
gasLimit := uint64(1300000)
sim := new(ethinterface.SimExtend)
sim.SimulatedBackend = backends.NewSimulatedBackend(alloc, gasLimit)
......@@ -87,7 +87,7 @@ func PrepareTestEnvironment(deployerPrivateKey string, ethValidatorAddrKeys []st
alloc[addr] = account
}
gasLimit := uint64(100000000)
gasLimit := uint64(1300000)
//sim := backends.NewSimulatedBackend(core.GenesisAlloc{addr: {Balance: big.NewInt(params.Ether)}}, 10000000)
sim := backends.NewSimulatedBackend(alloc, gasLimit)
......
......@@ -251,7 +251,7 @@ func PrepareTestEnv() (*ethinterface.SimExtend, *DeployPara) {
}
alloc[addr] = account
}
gasLimit := uint64(100000000)
gasLimit := uint64(1300000)
sim := new(ethinterface.SimExtend)
sim.SimulatedBackend = backends.NewSimulatedBackend(alloc, gasLimit)
......
......@@ -53,7 +53,7 @@ func Test_GetAddressFromBridgeRegistry(t *testing.T) {
PrivateKey: crypto.FromECDSA(genesiskey),
}
alloc[genesisAddr] = genesisAccount
gasLimit := uint64(100000000)
gasLimit := uint64(1300000)
sim := new(ethinterface.SimExtend)
sim.SimulatedBackend = backends.NewSimulatedBackend(alloc, gasLimit)
......@@ -158,7 +158,7 @@ func PrepareTestEnvironment(deployerPrivateKey string, ethValidatorAddrKeys []st
alloc[addr] = account
}
gasLimit := uint64(100000000)
gasLimit := uint64(1300000)
sim := backends.NewSimulatedBackend(alloc, gasLimit)
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