Skip to content

Commit

Permalink
ShuffleEntries for random entries
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonheaven committed Nov 17, 2020
1 parent 13e21cd commit a578f6e
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 a578f6e

Please sign in to comment.