The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
woop/internal/params/config_test.go

17 lines
307 B

package params
import (
"math/big"
"testing"
"github.com/stretchr/testify/require"
)
func TestIsOneEpochBeforeHIP30(t *testing.T) {
c := ChainConfig{
HIP30Epoch: big.NewInt(3),
}
require.True(t, c.IsOneEpochBeforeHIP30(big.NewInt(2)))
require.False(t, c.IsOneEpochBeforeHIP30(big.NewInt(3)))
}