Use slot to determine fork version (#14653)

* Use slot to determine version

* gaz

* solve cyclic dependency

* Radek' review

* unit test

* gaz

* use require instead of assert

* fix test

* fix test

* fix TestGetAggregateAttestation

* fix ListAttestations test

* James' review

* Radek' review

* add extra checks to GetAttesterSlashingsV2

* fix matchingAtts

* improve tests + fix

* fix

* stop appending all non electra atts

* more tests

* changelog

* revert TestProduceSyncCommitteeContribution changes

---------

Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: rkapka <radoslaw.kapka@gmail.com>
This commit is contained in:
Sammy Rosso
2024-11-26 17:52:58 -05:00
committed by GitHub
parent 8025a483e2
commit 74bb0821a8
9 changed files with 501 additions and 209 deletions

View File

@@ -1,6 +1,8 @@
package version
import "github.com/pkg/errors"
import (
"github.com/pkg/errors"
)
const (
Phase0 = iota