Skip to content

Commit

Permalink
Merge pull request #170 from dragonheaven/feature/shuffle_entries_v2
Browse files Browse the repository at this point in the history
ShuffleEntries for random entries
  • Loading branch information
StarNeit authored Nov 17, 2020
2 parents 13e21cd + a578f6e commit cf5c697
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ var (
// These pAssets have got small marketcap, and these will be disabled for conversion.
// Estimated to be XXXXXXXX
OneWaySmallAssetsConversions uint32 = 999999

// V202EnhanceActivation indicates the activation of PegNet 2.0.2.
// Estimated to be XXXXX XXX XXX
V202EnhanceActivation uint32 = 999999
)

func SetAllActivations(act uint32) {
Expand All @@ -83,6 +87,8 @@ func SetAllActivations(act uint32) {
V20HeightActivation = act
V20DevRewardsHeightActivation = act
OneWaySmallAssetsConversions = act
SprSignatureActivation = act
V202EnhanceActivation = act
}

type Pegnetd struct {
Expand Down
3 changes: 3 additions & 0 deletions node/spr.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ func (d *Pegnetd) GradeS(ctx context.Context, block *factom.EBlock) (graderStake
if block.Height >= SprSignatureActivation {
ver = 6
}
if block.Height >= V202EnhanceActivation {
ver = 7
}

g, err := graderStake.NewGrader(ver, int32(block.Height))
if err != nil {
Expand Down

0 comments on commit cf5c697

Please sign in to comment.