2021-08-23 20:09:24 +00:00
|
|
|
package rewards
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2021-11-19 12:01:15 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/config/features"
|
2021-09-14 16:02:58 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/testing/spectest/shared/altair/rewards"
|
2021-08-23 20:09:24 +00:00
|
|
|
)
|
|
|
|
|
2021-11-19 12:01:15 +00:00
|
|
|
func TestMain(m *testing.M) {
|
|
|
|
resetCfg := features.InitWithReset(&features.Flags{EnableBalanceTrieComputation: true})
|
|
|
|
defer resetCfg()
|
|
|
|
m.Run()
|
|
|
|
}
|
|
|
|
|
2021-08-23 20:09:24 +00:00
|
|
|
func TestMainnet_Altair_Rewards(t *testing.T) {
|
|
|
|
rewards.RunPrecomputeRewardsAndPenaltiesTests(t, "mainnet")
|
|
|
|
}
|