mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-13 17:46:39 +00:00

* UTXO dump of block 0fca37ca667c2d550a6c4416dad9717e50927128c424fa4edbebc436ab13aeef * Activate HF immediately and change reward to 1000 * Change protocol version and datadir location * Delete comments * Fix zero hash to muhash zero hash in genesis utxo dump check * Don't omit genesis as direct parent * Fix tests * Change subsidy to 500 * Dont assume genesis multiset is empty * Fix BlockReward test * Fix TestValidateAndInsertImportedPruningPoint test * Fix pruning point genesis utxo set * Fix tests related to mainnet utxo set * Dont change the difficulty before you have a full window * Fix TestBlockWindow tests * Remove global utxo set variable, and persist mainnetnet utxo deserialization between runs * Fix last tests * Make peer banning opt-in * small fix for a test * Fix go lint * Fix Ori's review comments * Change DAA score of genesis to checkpoint DAA score and fix all tests * Fix the BlockLevel bits counting * Fix some tests and make them run a little faster * Change datadir name back to kaspa-mainnet and change db path from /data to /datadir * Last changes for the release and change the version to 0.11.5 Co-authored-by: Ori Newman <orinewman1@gmail.com> Co-authored-by: Ori Newman <> Co-authored-by: msutton <mikisiton2@gmail.com>
44 lines
1.6 KiB
Go
44 lines
1.6 KiB
Go
package constants
|
|
|
|
import "math"
|
|
|
|
const (
|
|
// MaxBlockVersion represents the current version of blocks mined and the maximum block version
|
|
// this node is able to validate
|
|
MaxBlockVersion uint16 = 0
|
|
|
|
// MaxTransactionVersion is the current latest supported transaction version.
|
|
MaxTransactionVersion uint16 = 0
|
|
|
|
// MaxScriptPublicKeyVersion is the current latest supported public key script version.
|
|
MaxScriptPublicKeyVersion uint16 = 0
|
|
|
|
// SompiPerKaspa is the number of sompi in one kaspa (1 KAS).
|
|
SompiPerKaspa = 100_000_000
|
|
|
|
// MaxSompi is the maximum transaction amount allowed in sompi.
|
|
MaxSompi = 21_000_000 * SompiPerKaspa
|
|
|
|
// MaxTxInSequenceNum is the maximum sequence number the sequence field
|
|
// of a transaction input can be.
|
|
MaxTxInSequenceNum uint64 = math.MaxUint64
|
|
|
|
// SequenceLockTimeDisabled is a flag that if set on a transaction
|
|
// input's sequence number, the sequence number will not be interpreted
|
|
// as a relative locktime.
|
|
SequenceLockTimeDisabled uint64 = 1 << 63
|
|
|
|
// SequenceLockTimeMask is a mask that extracts the relative locktime
|
|
// when masked against the transaction input sequence number.
|
|
SequenceLockTimeMask uint64 = 0x00000000ffffffff
|
|
|
|
// LockTimeThreshold is the number below which a lock time is
|
|
// interpreted to be a DAA score.
|
|
LockTimeThreshold = 5e11 // Tue Nov 5 00:53:20 1985 UTC
|
|
|
|
// MaxBlockLevel is the maximum possible block level.
|
|
// This is technically 255, but we clamped it at 256 - block level of mainnet genesis
|
|
// This means that any block that has a level lower or equal to genesis will be level 0.
|
|
MaxBlockLevel = 225
|
|
)
|