Documentation ¶
Index ¶
- type Config
- type ProofOfWork
- func (pow *ProofOfWork) Addr() common.Address
- func (pow *ProofOfWork) Finalize(header *types.Header, state *state.StateDB, txs types.Transactions, ...) (*types.Block, error)
- func (pow *ProofOfWork) Protocols() []common.Protocol
- func (pow *ProofOfWork) Start() error
- func (pow *ProofOfWork) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProofOfWork ¶
type ProofOfWork struct {
// contains filtered or unexported fields
}
ProofOfWork implements proof-of-work consensus algorithm.
func New ¶
func New(config *common.Config, state *state.StateDB, chain chain.Blockchain) (*ProofOfWork, error)
func (*ProofOfWork) Addr ¶
func (pow *ProofOfWork) Addr() common.Address
func (*ProofOfWork) Protocols ¶
func (pow *ProofOfWork) Protocols() []common.Protocol
func (*ProofOfWork) Start ¶
func (pow *ProofOfWork) Start() error
func (*ProofOfWork) Stop ¶
func (pow *ProofOfWork) Stop() error
Click to show internal directories.
Click to hide internal directories.