Skip to content

Commit

Permalink
Epoch spec tests v0.9 (#3907)
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain authored Oct 31, 2019
1 parent c864627 commit 2c88364
Show file tree
Hide file tree
Showing 16 changed files with 529 additions and 135 deletions.
13 changes: 6 additions & 7 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,8 @@ filegroup(
visibility = ["//visibility:public"],
)
""",
sha256 = "386335fc3b055fad37088bd821929ff684bc00bb1a74e044e4b377ebd6e88fce",
# File names are normally too long, see: https://github.com/ethereum/eth2.0-spec-tests/issues/15
url = "https://prysmaticlabs.com/uploads/v0.8.3_general_spectests.tar.gz",
sha256 = "5c5b65a961b5e7251435efc9548648b45142a07993ad3e100850c240cb76e9af",
url = "https://github.com/ethereum/eth2.0-spec-tests/releases/download/v0.9.0/general.tar.gz",
)

http_archive(
Expand All @@ -145,8 +144,8 @@ filegroup(
visibility = ["//visibility:public"],
)
""",
sha256 = "7ab89a364796e3f8a9af84750c241e9c9e2170a34c1a4e160fdfa2cee5b03fb7",
url = "https://github.com/ethereum/eth2.0-spec-tests/releases/download/v0.8.3/minimal.tar.gz",
sha256 = "3b5f0168af4331d09da52bebc26609def9d11be3e6c784ce7c3df3596617808d",
url = "https://github.com/ethereum/eth2.0-spec-tests/releases/download/v0.9.0/minimal.tar.gz",
)

http_archive(
Expand All @@ -161,8 +160,8 @@ filegroup(
visibility = ["//visibility:public"],
)
""",
sha256 = "6274e3b77f393faf7b17cef10e93244c16316d3b7ae9c6b844501b12f432a7c3",
url = "https://github.com/ethereum/eth2.0-spec-tests/releases/download/v0.8.3/mainnet.tar.gz",
sha256 = "f3ff68508dfe9696f23506daf0ca895cda955e30398741e00cffa33a01b0565c",
url = "https://github.com/ethereum/eth2.0-spec-tests/releases/download/v0.9.0/mainnet.tar.gz",
)

http_archive(
Expand Down
2 changes: 1 addition & 1 deletion beacon-chain/core/blocks/block_operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func ProcessBlockHeader(
) (*pb.BeaconState, error) {
beaconState, err := ProcessBlockHeaderNoVerify(beaconState, block)
if err != nil {
return nil, errors.Wrap(err, "could not process block header")
return nil, err
}

idx, err := helpers.BeaconProposerIndex(beaconState)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ import (
)

func TestFinalUpdatesMainnet(t *testing.T) {
t.Skip("Disabled until v0.9.0 (#3865) completes")
runFinalUpdatesTests(t, "mainnet")
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@ import (
)

func TestFinalUpdatesMinimal(t *testing.T) {
t.Skip("Disabled until v0.9.0 (#3865) completes")

runFinalUpdatesTests(t, "minimal")
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ import (
)

func TestJustificationAndFinalizationMainnet(t *testing.T) {
t.Skip("Disabled until v0.9.0 (#3865) completes")
runJustificationAndFinalizationTests(t, "mainnet")
}
1 change: 0 additions & 1 deletion beacon-chain/core/epoch/spectest/registry_mainnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ import (
)

func TestRegistryUpdatesMainnet(t *testing.T) {
t.Skip("Disabled until v0.9.0 (#3865) completes")
runRegistryUpdatesTests(t, "mainnet")
}
1 change: 0 additions & 1 deletion beacon-chain/core/epoch/spectest/registry_minimal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ import (
)

func TestRegistryUpdatesMinimal(t *testing.T) {
t.Skip("Disabled until v0.9.0 (#3865) completes")
runRegistryUpdatesTests(t, "minimal")
}
1 change: 0 additions & 1 deletion beacon-chain/core/epoch/spectest/slashings_mainnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ import (
)

func TestSlashingsMainnet(t *testing.T) {
t.Skip("Disabled until v0.9.0 (#3865) completes")
runSlashingsTests(t, "mainnet")
}
1 change: 0 additions & 1 deletion beacon-chain/core/epoch/spectest/slashings_minimal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ import (
)

func TestSlashingsMinimal(t *testing.T) {
t.Skip("Disabled until v0.9.0 (#3865) completes")
runSlashingsTests(t, "minimal")
}
2 changes: 1 addition & 1 deletion beacon-chain/core/state/transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func ExecuteStateTransition(
if block != nil {
state, err = ProcessBlock(ctx, state, block)
if err != nil {
return nil, errors.Wrap(err, "could not process block")
return nil, errors.Wrapf(err, "could not process block in slot %d", block.Slot)
}
}

Expand Down
Loading

0 comments on commit 2c88364

Please sign in to comment.