This commit is contained in:
Potuz
2022-06-27 09:54:16 -03:00
parent de8c1a1fe5
commit ccee33ffd3
5 changed files with 18 additions and 3 deletions

View File

@@ -247,8 +247,8 @@ filegroup(
visibility = ["//visibility:public"],
)
""",
sha256 = "52f2c52415228cee8a4de5a09abff785f439a77dfef8f03e834e4e16857673c1",
url = "https://github.com/ethereum/consensus-spec-tests/releases/download/%s/minimal.tar.gz" % consensus_spec_version,
sha256 = "b670fc56ddc4d376b58b21f3db134136edc8853c77b4601919b92b3fc5acee7b",
urls = ["file:///tmp/minimal-pr-4-20220622.tar.gz"],
)
http_archive(

View File

@@ -243,7 +243,7 @@ func TestUnrealizedCheckpoints(t *testing.T) {
_, _, err = altair.InitializePrecomputeValidators(context.Background(), state)
require.NoError(t, err)
jc, fc, err := precompute.UnrealizedCheckpoints(state)
jc, fc, err := precompute.UnrealizedCheckpoints(context.Background(), state)
require.NoError(t, err)
require.DeepEqual(t, test.expectedJustified, jc.Epoch)
require.DeepEqual(t, test.expectedFinalized, fc.Epoch)

View File

@@ -9,11 +9,16 @@ import (
)
func TestMinimal_Altair_Forkchoice(t *testing.T) {
resetCfg := features.InitWithReset(&features.Flags{
PullTips: true,
})
defer resetCfg()
forkchoice.Run(t, "minimal", version.Altair)
}
func TestMinimal_Altair_Forkchoice_DoublyLinkTre(t *testing.T) {
resetCfg := features.InitWithReset(&features.Flags{
PullTips: true,
EnableForkChoiceDoublyLinkedTree: true,
})
defer resetCfg()

View File

@@ -9,11 +9,16 @@ import (
)
func TestMinimal_Bellatrix_Forkchoice(t *testing.T) {
resetCfg := features.InitWithReset(&features.Flags{
PullTips: true,
})
defer resetCfg()
forkchoice.Run(t, "minimal", version.Bellatrix)
}
func TestMinimal_Bellatrix_Forkchoice_DoublyLinkTree(t *testing.T) {
resetCfg := features.InitWithReset(&features.Flags{
PullTips: true,
EnableForkChoiceDoublyLinkedTree: true,
})
defer resetCfg()

View File

@@ -9,11 +9,16 @@ import (
)
func TestMinimal_Altair_Forkchoice(t *testing.T) {
resetCfg := features.InitWithReset(&features.Flags{
PullTips: true,
})
defer resetCfg()
forkchoice.Run(t, "minimal", version.Phase0)
}
func TestMinimal_Altair_Forkchoice_DoublyLinkTre(t *testing.T) {
resetCfg := features.InitWithReset(&features.Flags{
PullTips: true,
EnableForkChoiceDoublyLinkedTree: true,
})
defer resetCfg()