Skip to content

Commit

Permalink
Set real activation heights
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonheaven committed Mar 10, 2021
1 parent 9f2842a commit 094ee2d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ var (

// V204EnhanceActivation indicates the activation that burns remaining airdrop amount.
// Estimated to be April 16th 2021
V204BurnMintTokenActivation uint32 = 294206
V204BurnMintedTokenActivation uint32 = 294206
)

func SetAllActivations(act uint32) {
Expand All @@ -98,7 +98,7 @@ func SetAllActivations(act uint32) {
SprSignatureActivation = act
V202EnhanceActivation = act
V204EnhanceActivation = act
V204BurnMintTokenActivation = act
V204BurnMintedTokenActivation = act
}

type Pegnetd struct {
Expand Down
6 changes: 3 additions & 3 deletions node/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func (d *Pegnetd) MintTokensForBalance(ctx context.Context, tx *sql.Tx, height u
return nil
}

func (d *Pegnetd) NullifyMintTokens(ctx context.Context, tx *sql.Tx, height uint32) error {
func (d *Pegnetd) NullifyMintedTokens(ctx context.Context, tx *sql.Tx, height uint32) error {
fLog := log.WithFields(log.Fields{"height": height})

FAGlobalMintAddress, err := factom.NewFAAddress(GlobalMintAddress)
Expand Down Expand Up @@ -345,8 +345,8 @@ func (d *Pegnetd) SyncBlock(ctx context.Context, tx *sql.Tx, height uint32) erro
}
}

if height == V204BurnMintTokenActivation {
if err := d.NullifyMintTokens(ctx, tx, d.Sync.Synced+1); err != nil {
if height == V204BurnMintedTokenActivation {
if err := d.NullifyMintedTokens(ctx, tx, d.Sync.Synced+1); err != nil {
return err
}
}
Expand Down

0 comments on commit 094ee2d

Please sign in to comment.