Documentation ¶
Index ¶
- Variables
- type PowService
- func (pow *PowService) BlockPersistCompleted(v interface{})
- func (pow *PowService) BroadcastBlock(MsgBlock *Block) error
- func (pow *PowService) CreateCoinbaseTx(nextBlockHeight uint32, minerAddr string) (*Transaction, error)
- func (pow *PowService) DiscreteMining(n uint32) ([]*common.Uint256, error)
- func (pow *PowService) GenerateBlock(minerAddr string) (*Block, error)
- func (pow *PowService) Halt()
- func (pow *PowService) RollbackTransaction(v interface{})
- func (pow *PowService) SolveBlock(MsgBlock *Block) bool
- func (pow *PowService) Start()
Constants ¶
This section is empty.
Variables ¶
View Source
var BlockPersistCompletedSignal = make(chan common.Uint256)
Functions ¶
This section is empty.
Types ¶
type PowService ¶
type PowService struct { PayToAddr string Started bool AuxBlockPool auxBlockPool Mutex sync.Mutex RollbackTransactionSubscriber events.Subscriber // contains filtered or unexported fields }
func NewPowService ¶
func NewPowService() *PowService
func (*PowService) BlockPersistCompleted ¶
func (pow *PowService) BlockPersistCompleted(v interface{})
func (*PowService) BroadcastBlock ¶
func (pow *PowService) BroadcastBlock(MsgBlock *Block) error
func (*PowService) CreateCoinbaseTx ¶ added in v0.1.1
func (pow *PowService) CreateCoinbaseTx(nextBlockHeight uint32, minerAddr string) (*Transaction, error)
func (*PowService) DiscreteMining ¶
func (pow *PowService) DiscreteMining(n uint32) ([]*common.Uint256, error)
func (*PowService) GenerateBlock ¶
func (pow *PowService) GenerateBlock(minerAddr string) (*Block, error)
func (*PowService) Halt ¶
func (pow *PowService) Halt()
func (*PowService) RollbackTransaction ¶
func (pow *PowService) RollbackTransaction(v interface{})
func (*PowService) SolveBlock ¶
func (pow *PowService) SolveBlock(MsgBlock *Block) bool
func (*PowService) Start ¶
func (pow *PowService) Start()
Click to show internal directories.
Click to hide internal directories.