Files
zeekay 61b014165e rename: Etna → Quasar Edition
Wire-level renames in the P/X-Chain proto:

  Codec registrations (CRITICAL — these register block + tx type IDs):
    - block.RegisterEtnaTypes → block.RegisterQuasarTypes
    - txs.RegisterEtnaTypes   → txs.RegisterQuasarTypes
  Block builder:
    - packEtnaBlockTxs        → packQuasarBlockTxs
  X-Chain (XVM) config struct + JSON tag:
    - x/config.Config.EtnaTime        → QuasarTime
    - json tag "etnaTime"             → "quasarTime"
    - x/config.Config.IsEtnaActivated → IsQuasarActivated
  Errors:
    - errEtnaUpgradeNotActive     → errQuasarUpgradeNotActive
    - errTransformChainTxPostEtna → errTransformChainTxPostQuasar
  Test names:
    - TestEtnaCreateChainTxInvalidWithManagedNet → TestQuasarCreateChainTxInvalidWithManagedNet
    - TestEtnaDisabledTransactions               → TestQuasarDisabledTransactions
    - TestEtnaStandardTxExecutorAddNetValidator  → TestQuasarStandardTxExecutorAddNetValidator
    - TestGetValidatorSet_AfterEtna              → TestGetValidatorSet_AfterQuasar

All luxfi/upgrade.Config.IsEtnaActivated callsites updated to IsQuasarActivated.
Bumps luxfi/upgrade@main + luxfi/constants@main.

Pre-existing test build failures in p/block/builder (helpers_test.go
validator interface mismatch) are unrelated to this rename.

No backcompat aliases — forwards-only.
2026-06-02 23:08:09 -07:00

26 lines
752 B
Go

// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package config
import "time"
// Struct collecting all the foundational parameters of the XVM
type Config struct {
// Fee that is burned by every non-asset creating transaction
TxFee uint64 `json:"txFee"`
// Fee that must be burned by every asset creating transaction
CreateAssetTxFee uint64 `json:"createAssetTxFee"`
// Time of the Quasar Edition network upgrade
QuasarTime time.Time `json:"quasarTime"`
// IndexTransactions enables transaction indexing by address
IndexTransactions bool `json:"indexTransactions"`
}
func (c *Config) IsQuasarActivated(timestamp time.Time) bool {
return !timestamp.Before(c.QuasarTime)
}