Documentation ¶
Index ¶
- func UseLogger(logger l.Logger)
- type Factory
- type PublicVMAPI
- type Service
- func (s *Service) APIs() []api.API
- func (s *Service) AddTxToMempool(tx *types.Transaction, local bool) (int64, error)
- func (s *Service) CheckConnectBlock(block *types.SerializedBlock) error
- func (s *Service) ConnectBlock(block *types.SerializedBlock) error
- func (s *Service) DisconnectBlock(block *types.SerializedBlock) error
- func (s *Service) Genesis(txs []*types.Tx) *hash.Hash
- func (s *Service) GetMempoolSize() int64
- func (s *Service) GetTxsFromMempool() ([]*types.Transaction, error)
- func (s *Service) GetVM(id string) (consensus.ChainVM, error)
- func (s *Service) GetVMContext() consensus.Context
- func (s *Service) HasVM(id string) bool
- func (s *Service) Register(cvm consensus.ChainVM) error
- func (s *Service) RegisterAPIs(apis []api.API)
- func (s *Service) RemoveTxFromMempool(tx *types.Transaction) error
- func (s *Service) ResetTemplate() error
- func (s *Service) SetLogLevel(level string)
- func (s *Service) Start() error
- func (s *Service) Stop() error
- func (s *Service) VerifyTx(tx consensus.Tx) (int64, error)
- func (s *Service) VerifyTxSanity(tx consensus.Tx) error
- func (s *Service) Versions() (map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PublicVMAPI ¶
type PublicVMAPI struct {
// contains filtered or unexported fields
}
func NewPublicVMAPI ¶
func NewPublicVMAPI(s *Service) *PublicVMAPI
func (*PublicVMAPI) GetVMsInfo ¶
func (api *PublicVMAPI) GetVMsInfo() (interface{}, error)
type Service ¶
type Service struct { service.Service Notify consensus.Notify // contains filtered or unexported fields }
func NewService ¶
func (*Service) AddTxToMempool ¶
func (*Service) CheckConnectBlock ¶
func (s *Service) CheckConnectBlock(block *types.SerializedBlock) error
func (*Service) ConnectBlock ¶
func (s *Service) ConnectBlock(block *types.SerializedBlock) error
func (*Service) DisconnectBlock ¶
func (s *Service) DisconnectBlock(block *types.SerializedBlock) error
func (*Service) GetMempoolSize ¶
func (*Service) GetTxsFromMempool ¶
func (s *Service) GetTxsFromMempool() ([]*types.Transaction, error)
func (*Service) GetVMContext ¶
func (*Service) RegisterAPIs ¶
func (*Service) RemoveTxFromMempool ¶
func (s *Service) RemoveTxFromMempool(tx *types.Transaction) error
func (*Service) ResetTemplate ¶
func (*Service) SetLogLevel ¶
Click to show internal directories.
Click to hide internal directories.