Documentation ¶
Index ¶
- type AuxBlockPool
- type Config
- type Service
- func (pow *Service) AssignCoinbaseTxRewards(block *types.Block, totalReward common.Fixed64) error
- func (pow *Service) CreateAuxBlock(payToAddr string) (*types.Block, error)
- func (pow *Service) CreateCoinbaseTx(minerAddr string) (*types.Transaction, error)
- func (pow *Service) DiscreteMining(n uint32) ([]*common.Uint256, error)
- func (pow *Service) GenerateBlock(minerAddr string) (*types.Block, error)
- func (pow *Service) GetDefaultTxVersion(height uint32) types.TransactionVersion
- func (pow *Service) Halt()
- func (pow *Service) SolveBlock(msgBlock *types.Block, lastBlockHash *common.Uint256) bool
- func (pow *Service) Start()
- func (pow *Service) SubmitAuxBlock(hash *common.Uint256, auxPow *auxpow.AuxPow) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuxBlockPool ¶ added in v0.3.0
type AuxBlockPool struct {
// contains filtered or unexported fields
}
func (*AuxBlockPool) AppendBlock ¶ added in v0.3.0
func (p *AuxBlockPool) AppendBlock(block *types.Block)
func (*AuxBlockPool) ClearBlock ¶ added in v0.3.0
func (p *AuxBlockPool) ClearBlock()
type Config ¶ added in v0.3.0
type Config struct { PayToAddr string MinerInfo string Chain *blockchain.BlockChain ChainParams *config.Params TxMemPool *mempool.TxPool BlkMemPool *mempool.BlockPool BroadcastBlock func(block *types.Block) Arbitrators state.Arbitrators }
type Service ¶ added in v0.3.0
func NewService ¶ added in v0.3.0
func (*Service) AssignCoinbaseTxRewards ¶ added in v0.3.0
func (*Service) CreateAuxBlock ¶ added in v0.3.0
func (*Service) CreateCoinbaseTx ¶ added in v0.3.0
func (pow *Service) CreateCoinbaseTx(minerAddr string) (*types.Transaction, error)
func (*Service) DiscreteMining ¶ added in v0.3.0
func (*Service) GenerateBlock ¶ added in v0.3.0
func (*Service) GetDefaultTxVersion ¶ added in v0.3.0
func (pow *Service) GetDefaultTxVersion(height uint32) types.TransactionVersion
func (*Service) SolveBlock ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.