Documentation
¶
Index ¶
Constants ¶
View Source
const (
TypeSyncMiner = "sync"
)
Variables ¶
View Source
var (
ErrNoPayoutAddresses = errors.New("can not mine without payout addresses")
)
Functions ¶
func NewSyncMiner ¶
Types ¶
type Chain ¶
type Chain interface { BestBlockNode() *blockchain.BlockNode BestBlockHash() *wire.Hash BestBlockHeight() uint64 ProcessBlock(*chainutil.Block) (bool, error) ChainID() *wire.Hash BlockWaiter(height uint64) (<-chan *blockchain.BlockNode, error) NewBlockTemplate(chainutil.Address, chan interface{}) error }
type PoCMiner ¶
type PoCMiner struct { *service.BaseService SpaceKeeper spacekeeper.SpaceKeeper // contains filtered or unexported fields }
func NewPoCMiner ¶
func NewPoCMiner(name string, allowSolo bool, chain Chain, syncManager SyncManager, sk spacekeeper.SpaceKeeper, newBlockCh chan *wire.Hash, payoutAddresses []chainutil.Address) *PoCMiner
func (*PoCMiner) SetPayoutAddresses ¶
type ProofTemplate ¶
type ProofTemplate struct {
// contains filtered or unexported fields
}
type SyncManager ¶
Click to show internal directories.
Click to hide internal directories.