Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DifficultyAdjuster ¶
type DifficultyAdjuster struct {
// contains filtered or unexported fields
}
DifficultyAdjuster handles difficulty adjustments
func NewDifficultyAdjuster ¶
func NewDifficultyAdjuster(config *Config) *DifficultyAdjuster
func (*DifficultyAdjuster) CalculateNextDifficulty ¶
func (d *DifficultyAdjuster) CalculateNextDifficulty(lastBlock *block.Block, blocks []*block.Block) uint32
type FeeCalculator ¶
type FeeCalculator struct {
// contains filtered or unexported fields
}
FeeCalculator handles transaction fee calculations
func NewFeeCalculator ¶
func NewFeeCalculator(minFeeRate, maxFeeRate float64) *FeeCalculator
func (*FeeCalculator) CalculateMinFee ¶
func (f *FeeCalculator) CalculateMinFee(txSize int) float64
func (*FeeCalculator) ValidateFee ¶
func (f *FeeCalculator) ValidateFee(fee float64, txSize int) bool
type RewardCalculator ¶
type RewardCalculator struct {
// contains filtered or unexported fields
}
RewardCalculator handles mining reward calculations
func NewRewardCalculator ¶
func NewRewardCalculator(config *Config) *RewardCalculator
func (*RewardCalculator) CalculateBlockReward ¶
func (r *RewardCalculator) CalculateBlockReward(height uint64) float64
Click to show internal directories.
Click to hide internal directories.