Skip to content

Commit 094ee2d

Browse files
author
dragonheaven
committed
Set real activation heights
1 parent 9f2842a commit 094ee2d

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

node/node.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ var (
7979

8080
// V204EnhanceActivation indicates the activation that burns remaining airdrop amount.
8181
// Estimated to be April 16th 2021
82-
V204BurnMintTokenActivation uint32 = 294206
82+
V204BurnMintedTokenActivation uint32 = 294206
8383
)
8484

8585
func SetAllActivations(act uint32) {
@@ -98,7 +98,7 @@ func SetAllActivations(act uint32) {
9898
SprSignatureActivation = act
9999
V202EnhanceActivation = act
100100
V204EnhanceActivation = act
101-
V204BurnMintTokenActivation = act
101+
V204BurnMintedTokenActivation = act
102102
}
103103

104104
type Pegnetd struct {

node/sync.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ func (d *Pegnetd) MintTokensForBalance(ctx context.Context, tx *sql.Tx, height u
198198
return nil
199199
}
200200

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

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

348-
if height == V204BurnMintTokenActivation {
349-
if err := d.NullifyMintTokens(ctx, tx, d.Sync.Synced+1); err != nil {
348+
if height == V204BurnMintedTokenActivation {
349+
if err := d.NullifyMintedTokens(ctx, tx, d.Sync.Synced+1); err != nil {
350350
return err
351351
}
352352
}

0 commit comments

Comments
 (0)