Documentation ¶
Index ¶
- Variables
- func CalcBlockSubsidy(height uint64, chainParams *config.Params, totalBinding massutil.Amount, ...) (miner, superNode massutil.Amount, err error)
- type BindingTxOutput
- type BlockTxStat
- type Chain
- type CoinbasePayload
- type ForkOptions
- type ForkPoint
- type MockingMode
- type Option
- type TxInput
- type TxOutput
- type TxType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultFrozenPeriodRange = [2]uint64{} DefaultTxScale = [4]byte{20, 4, 4, 2} Probability = []TxType{} DefautlBitLength = 24 )
Functions ¶
Types ¶
type BindingTxOutput ¶
type BlockTxStat ¶
type BlockTxStat struct {
// contains filtered or unexported fields
}
type Chain ¶
type Chain struct {
// contains filtered or unexported fields
}
func NewMockedChain ¶
Attention: if totalHeight < ChallengeInterval(=10), block content is fixed. if totalHeight >= ChallengeInterval(=10), blocks after ChallengeInterval is configurable.
func (*Chain) ForkStartHeight ¶
type CoinbasePayload ¶
type CoinbasePayload struct {
// contains filtered or unexported fields
}
func (CoinbasePayload) Bytes ¶
func (p CoinbasePayload) Bytes() []byte
func (CoinbasePayload) NumStakingReward ¶
func (p CoinbasePayload) NumStakingReward() uint32
func (CoinbasePayload) SetBytes ¶
func (p CoinbasePayload) SetBytes(data []byte) error
type ForkOptions ¶
type ForkOptions struct { // Chain forks at height FP + FPOffset FP ForkPoint // contains filtered or unexported fields }
type Option ¶
type Option struct { // Basic config // Maturity uint64 Mode MockingMode ForkOpt *ForkOptions // in AutoFork mode // Auto mode options TotalHeight int64 TxPerBlock int // Max Tx Count per Block (except for coinbase) MinNormalTxPerBlock int // Min Normal Tx Count per Bock (except for coinbase) // Other mode options TxScale [4]byte // Ratio of different types of txs per block (TxNormal:TxStaking:TxBinding:TxWithdrawal) FrozenPeriodRange [2]uint64 // Range of frozen period of staking tx, inclusive for min and exclusive for max value BitLength int NoNormalOutputSplit bool }
Click to show internal directories.
Click to hide internal directories.