Versions in this module Expand all Collapse all v1 v1.2.17 Jul 9, 2024 v1.0.10 Jan 11, 2024 Changes in this version + const DefinedDeployments + const DeploymentCSV + const DeploymentSegwit + const DeploymentTaproot + const DeploymentTestDummy + const DeploymentTestDummyMinActivation + var ErrNoBlockClock = fmt.Errorf("no block clock synchronized") + var MainNetParams = Params + type BlockClock interface + PastMedianTime func(*wire.BlockHeader) (time.Time, error) + type Checkpoint struct + Hash *chainhash.Hash + Height int32 + type ClockConsensusDeploymentEnder interface + SynchronizeClock func(clock BlockClock) + type ConsensusDeployment struct + BitNumber uint8 + CustomActivationThreshold uint32 + DeploymentEnder ConsensusDeploymentEnder + DeploymentStarter ConsensusDeploymentStarter + MinActivationHeight uint32 + type ConsensusDeploymentEnder interface + HasEnded func(*wire.BlockHeader) (bool, error) + type ConsensusDeploymentStarter interface + HasStarted func(*wire.BlockHeader) (bool, error) + type DNSSeed struct + HasFiltering bool + Host string + type MedianTimeDeploymentEnder struct + func NewMedianTimeDeploymentEnder(endTime time.Time) *MedianTimeDeploymentEnder + func (m *MedianTimeDeploymentEnder) EndTime() time.Time + func (m *MedianTimeDeploymentEnder) HasEnded(blkHeader *wire.BlockHeader) (bool, error) + func (m *MedianTimeDeploymentEnder) SynchronizeClock(clock BlockClock) + type MedianTimeDeploymentStarter struct + func NewMedianTimeDeploymentStarter(startTime time.Time) *MedianTimeDeploymentStarter + func (m *MedianTimeDeploymentStarter) HasStarted(blkHeader *wire.BlockHeader) (bool, error) + type Params struct + BIP0034Height int32 + BIP0065Height int32 + BIP0066Height int32 + Bech32HRPSegwit string + Checkpoints []Checkpoint + CoinbaseMaturity uint16 + DNSSeeds []DNSSeed + DefaultPort string + Deployments [DefinedDeployments]ConsensusDeployment + GenerateSupported bool + GenesisBlock *wire.MsgBlock + GenesisHash *chainhash.Hash + HDCoinType uint32 + HDPrivateKeyID [4]byte + HDPublicKeyID [4]byte + MinDiffReductionTime time.Duration + MinerConfirmationWindow uint32 + Name string + Net wire.BitcoinNet + PoWNoRetargeting bool + PowLimit *big.Int + PowLimitBits uint32 + PrivateKeyID byte + PubKeyHashAddrID byte + ReduceMinDifficulty bool + RelayNonStdTxs bool + RetargetAdjustmentFactor int64 + RuleChangeActivationThreshold uint32 + ScriptHashAddrID byte + SubsidyReductionInterval int32 + TargetTimePerBlock time.Duration + TargetTimespan time.Duration + WitnessPubKeyHashAddrID byte + WitnessScriptHashAddrID byte