Versions in this module Expand all Collapse all v1 v1.0.0 Aug 28, 2024 Changes in this version + var DevnetParams = Params + var ErrDuplicateNet = errors.New("duplicate Brics network") + var MainnetParams = Params + var SimnetParams = Params + var TestnetParams = Params + func Register(params *Params) error + type KType uint8 + type Params struct + AcceptUnroutable bool + BlockCoinbaseMaturity uint64 + CoinbasePayloadScriptPublicKeyMaxLength uint8 + DNSSeeds []string + DefaultPort string + DeflationaryPhaseBaseSubsidy uint64 + DeflationaryPhaseDaaScore uint64 + DifficultyAdjustmentWindowSize int + DisableDifficultyAdjustment bool + DisallowDirectBlocksOnTopOfGenesis bool + EnableNonNativeSubnetworks bool + FinalityDuration time.Duration + GRPCSeeds []string + GenesisBlock *externalapi.DomainBlock + GenesisHash *externalapi.DomainHash + K externalapi.KType + MassPerScriptPubKeyByte uint64 + MassPerSigOp uint64 + MassPerTxByte uint64 + MaxBlockLevel int + MaxBlockMass uint64 + MaxBlockParents externalapi.KType + MaxCoinbasePayloadLength uint64 + MergeDepth uint64 + MergeSetSizeLimit uint64 + MinerConfirmationWindow uint64 + Name string + Net appmessage.KaspaNet + PowMax *big.Int + PreDeflationaryPhaseBaseSubsidy uint64 + Prefix util.Bech32Prefix + PrivateKeyID byte + PruningProofM uint64 + RPCPort string + RelayNonStdTxs bool + RuleChangeActivationThreshold uint64 + SkipProofOfWork bool + SubsidyGenesisReward uint64 + TargetTimePerBlock time.Duration + TimestampDeviationTolerance int + func (p *Params) FinalityDepth() uint64 + func (p *Params) NormalizeRPCServerAddress(addr string) (string, error) + func (p *Params) PruningDepth() uint64