Documentation ¶
Index ¶
- Variables
- func FeaturesToInt16(a []settings.Feature) []int16
- func MineBlock(version proto.BlockVersion, nxt proto.NxtConsensus, pair proto.KeyPair, ...) (*proto.Block, error)
- func ParseReward(s string) (int64, error)
- func Run(ctx context.Context, a types.Miner, s Mine, ...)
- type Constraints
- type Features
- type MicroMiner
- type MicroblockMiner
- type Mine
Constants ¶
This section is empty.
Variables ¶
View Source
var NoTransactionsErr = errors.New("no transactions")
View Source
var StateChangedErr = errors.New("state changed")
Functions ¶
func FeaturesToInt16 ¶ added in v0.5.0
func ParseReward ¶ added in v0.5.0
Types ¶
type Constraints ¶
type Constraints struct { MaxScriptRunsInBlock int MaxScriptsComplexityInBlock int ClassicAmountOfTxsInBlock int MaxTxsSizeInBytes int }
func DefaultConstraints ¶
func DefaultConstraints() Constraints
type Features ¶ added in v0.5.0
func ParseVoteFeatures ¶ added in v0.5.0
func ValidateFeatures ¶ added in v0.6.0
type MicroMiner ¶ added in v0.6.0
type MicroMiner struct {
// contains filtered or unexported fields
}
func NewMicroMiner ¶ added in v0.6.0
func NewMicroMiner(services services.Services) *MicroMiner
func (*MicroMiner) Micro ¶ added in v0.6.0
func (a *MicroMiner) Micro(minedBlock *proto.Block, rest proto.MiningLimits, keyPair proto.KeyPair) (*proto.Block, *proto.MicroBlock, proto.MiningLimits, error)
type MicroblockMiner ¶
type MicroblockMiner struct {
// contains filtered or unexported fields
}
func NewMicroblockMiner ¶
func (*MicroblockMiner) MineKeyBlock ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.