Documentation
¶
Index ¶
- func BuildEVMBlock(block *types.SerializedBlock) (consensus.Block, error)
- type Block
- func (b *Block) Accept() error
- func (b *Block) Bytes() []byte
- func (b *Block) Height() uint64
- func (b *Block) ID() *hash.Hash
- func (b *Block) Parent() *hash.Hash
- func (b *Block) Reject() error
- func (b *Block) SetStatus(status consensus.Status)
- func (b *Block) Status() consensus.Status
- func (b *Block) String() string
- func (b *Block) Timestamp() time.Time
- func (b *Block) Transactions() []model.Tx
- func (b *Block) Verify() error
- type ChainState
- type Context
- type ExportTx
- type ImportTx
- func (itx *ImportTx) CheckSanity() error
- func (itx *ImportTx) GetPKAddress() (*address.SecpPubKeyAddress, error)
- func (itx *ImportTx) GetPKScript() ([]byte, error)
- func (itx *ImportTx) GetTransactionForEngine() (*types.Transaction, error)
- func (itx *ImportTx) SetCoinbaseTx(tx *types.Transaction) error
- func (itx *ImportTx) Sign(privateKey ecc.PrivateKey) error
- type Tx
- type VMTx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildEVMBlock ¶ added in v1.0.21
func BuildEVMBlock(block *types.SerializedBlock) (consensus.Block, error)
Types ¶
type Block ¶
func (*Block) Transactions ¶
type ChainState ¶
type ChainState struct {
}
type Context ¶
type Context struct {
context.Context
Cfg *config.Config
Tp model.TxPool
Notify consensus.Notify
Consensus model.Consensus
}
func (Context) GetConsensus ¶ added in v1.0.21
type ExportTx ¶
type ExportTx struct {
*Tx
*types.Transaction
}
func NewExportTx ¶
func NewExportTx(tx *types.Transaction) (*ExportTx, error)
func (*ExportTx) CheckSanity ¶
type ImportTx ¶
type ImportTx struct {
*Tx
*types.Transaction
}
func NewImportTx ¶
func NewImportTx(tx *types.Transaction) (*ImportTx, error)
func (*ImportTx) CheckSanity ¶
func (*ImportTx) GetPKAddress ¶
func (itx *ImportTx) GetPKAddress() (*address.SecpPubKeyAddress, error)
func (*ImportTx) GetPKScript ¶
func (*ImportTx) GetTransactionForEngine ¶
func (itx *ImportTx) GetTransactionForEngine() (*types.Transaction, error)
func (*ImportTx) SetCoinbaseTx ¶
func (itx *ImportTx) SetCoinbaseTx(tx *types.Transaction) error
type VMTx ¶
type VMTx struct {
*Tx
*types.Transaction
// contains filtered or unexported fields
}
func (*VMTx) CheckSanity ¶
func (*VMTx) SetCoinbaseTx ¶
func (vt *VMTx) SetCoinbaseTx(tx *types.Transaction) error
Click to show internal directories.
Click to hide internal directories.