mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
Fixed NewSimulatedBackend (#405)
* sync functions for active and crystallized states * make pb structure more semantic * use run func to consolidate to one main routine * remove mainchain package * remove smc. yay! * fixed NewSimulatedBackend * added smc tests back * race = off * used latest commit from bazel-go-ethereum * changed testoutput to all * output test.log after failure * disable race * restore travis config to original state, add race=off to blockchain workspace * added issue number and fixed typo
This commit is contained in:
parent
06ca8e758f
commit
b7bf48bc3e
@ -90,7 +90,7 @@ matrix:
|
||||
after_failure:
|
||||
- wget https://raw.githubusercontent.com/k3rn31p4nic/travis-ci-discord-webhook/master/send.sh
|
||||
- chmod +x send.sh
|
||||
- ./send.sh failure $WEBHOOK_URL
|
||||
- ./send.sh failure $WEBHOOK_URL
|
||||
|
||||
- language: node_js
|
||||
os: linux
|
||||
|
@ -95,8 +95,8 @@ go_repository(
|
||||
# code.
|
||||
remote = "https://github.com/prysmaticlabs/bazel-go-ethereum",
|
||||
vcs = "git",
|
||||
# Last updated July 15, 2018
|
||||
commit = "fad71da72e539ff79183a5d548b105c73ce4969f",
|
||||
# Last updated August 15, 2018
|
||||
commit = "c169d4b64d5360f5c1220a148c4438f7c90c8c96",
|
||||
)
|
||||
|
||||
go_repository(
|
||||
|
@ -29,6 +29,7 @@ go_test(
|
||||
"service_test.go",
|
||||
],
|
||||
embed = [":go_default_library"],
|
||||
race = "off", # TODO(#412): fix issues with tests failing with race on.
|
||||
deps = [
|
||||
"//beacon-chain/params:go_default_library",
|
||||
"//beacon-chain/powchain:go_default_library",
|
||||
|
@ -51,7 +51,7 @@ func newSMCTestHelper(n int) (*smcTestHelper, error) {
|
||||
Balance: accountBalance2000Eth,
|
||||
}
|
||||
}
|
||||
backend := backends.NewSimulatedBackend(genesis)
|
||||
backend := backends.NewSimulatedBackend(genesis, 2100000)
|
||||
_, _, smc, err := deploySMCContract(backend, testAccounts[0].privKey)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
@ -47,7 +47,7 @@ func setup() (*testAccount, error) {
|
||||
txOpts := bind.NewKeyedTransactor(privKey)
|
||||
startingBalance, _ := new(big.Int).SetString("100000000000000000000", 10)
|
||||
genesis[addr] = core.GenesisAccount{Balance: startingBalance}
|
||||
backend := backends.NewSimulatedBackend(genesis)
|
||||
backend := backends.NewSimulatedBackend(genesis, 2100000)
|
||||
|
||||
_, _, contract, err := DeployValidatorRegistration(txOpts, backend)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user