Skip to content

Commit

Permalink
Add activation height for v4
Browse files Browse the repository at this point in the history
  • Loading branch information
Emyrk committed Feb 3, 2020
1 parent 04d450d commit 33bfbd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"strings"

"github.com/pegnet/pegnet/api"

"github.com/FactomProject/factom"
"github.com/pegnet/pegnet/balances"
"github.com/pegnet/pegnet/common"
Expand Down Expand Up @@ -159,6 +158,7 @@ func rootPreRunSetup(cmd *cobra.Command, args []string) error {
common.V2GradingActivation = 0
common.GradingHeights[common.TestNetwork] = func(height int64) uint8 { return 2 }
common.FloatingPegPriceActivation = 0
common.V4HeightActivation = 0
}

if testingact, _ := cmd.Flags().GetInt32("testingact"); testingact != -1 {
Expand Down
5 changes: 3 additions & 2 deletions common/activation.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ var (
// Estimated to be Dec 9, 2019, 17:00 UTC
FloatingPegPriceActivation int64 = 222270

// TODO: TBD
V4HeightActivation int64 = 999999
// V4HeightActivation indicates the activation of additional currencies and ecdsa keys.
// Estimated to be Feb 12, 2020, 18:00 UTC
V4HeightActivation int64 = 231620
)

// NetworkActive returns true if the network height is above the activation height.
Expand Down

0 comments on commit 33bfbd2

Please sign in to comment.