Documentation ¶
Index ¶
- func NewHeightVersions(versions map[uint32]VersionInfo) interfaces.HeightVersions
- type BlockCheckMethod
- type BlockConfirmCheckMethod
- type BlockVersion
- type BlockVersionMain
- func (b *BlockVersionMain) AddDposBlock(dposBlock *types.DposBlock) (bool, bool, error)
- func (b *BlockVersionMain) AssignCoinbaseTxRewards(block *types.Block, totalReward common.Fixed64) error
- func (b *BlockVersionMain) CheckConfirmedBlockOnFork(block *types.Block) error
- func (b *BlockVersionMain) GetNextOnDutyArbitrator(dutyChangedCount, offset uint32) []byte
- func (b *BlockVersionMain) GetProducersDesc() ([][]byte, error)
- func (b *BlockVersionMain) GetVersion() uint32
- type TxCheckMethod
- type TxVersion
- type TxVersionMain
- func (v *TxVersionMain) CheckCoinbaseArbitratorsReward(coinbase *types.Transaction, rewardInCoinbase common.Fixed64) error
- func (v *TxVersionMain) CheckCoinbaseMinerReward(tx *types.Transaction, totalReward common.Fixed64) error
- func (v *TxVersionMain) CheckOutputPayload(txType types.TransactionType, output *types.Output) error
- func (v *TxVersionMain) CheckOutputProgramHash(programHash common.Uint168) error
- func (v *TxVersionMain) CheckTxHasNoPrograms(tx *types.Transaction) error
- func (v *TxVersionMain) CheckVoteProducerOutputs(outputs []*types.Output, references map[*types.Input]*types.Output, ...) error
- func (v *TxVersionMain) GetVersion() byte
- type VersionInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHeightVersions ¶
func NewHeightVersions(versions map[uint32]VersionInfo) interfaces.HeightVersions
Types ¶
type BlockCheckMethod ¶
type BlockCheckMethod func(BlockVersion) (bool, bool, error)
type BlockConfirmCheckMethod ¶
type BlockConfirmCheckMethod func(BlockVersion) (bool, bool, error)
type BlockVersion ¶
type BlockVersion interface { GetVersion() uint32 GetProducersDesc() ([][]byte, error) AddDposBlock(block *types.DposBlock) (bool, bool, error) AssignCoinbaseTxRewards(block *types.Block, totalReward common.Fixed64) error CheckConfirmedBlockOnFork(block *types.Block) error GetNextOnDutyArbitrator(dutyChangedCount, offset uint32) []byte }
type BlockVersionMain ¶
type BlockVersionMain struct { }
func (*BlockVersionMain) AddDposBlock ¶
func (*BlockVersionMain) AssignCoinbaseTxRewards ¶
func (*BlockVersionMain) CheckConfirmedBlockOnFork ¶
func (b *BlockVersionMain) CheckConfirmedBlockOnFork(block *types.Block) error
func (*BlockVersionMain) GetNextOnDutyArbitrator ¶
func (b *BlockVersionMain) GetNextOnDutyArbitrator(dutyChangedCount, offset uint32) []byte
func (*BlockVersionMain) GetProducersDesc ¶
func (b *BlockVersionMain) GetProducersDesc() ([][]byte, error)
func (*BlockVersionMain) GetVersion ¶
func (b *BlockVersionMain) GetVersion() uint32
type TxCheckMethod ¶
type TxVersion ¶
type TxVersion interface { GetVersion() byte CheckOutputPayload(txType types.TransactionType, output *types.Output) error CheckOutputProgramHash(programHash common.Uint168) error CheckCoinbaseMinerReward(tx *types.Transaction, totalReward common.Fixed64) error CheckCoinbaseArbitratorsReward(coinbase *types.Transaction, rewardInCoinbase common.Fixed64) error CheckVoteProducerOutputs(outputs []*types.Output, references map[*types.Input]*types.Output, producers [][]byte) error CheckTxHasNoPrograms(tx *types.Transaction) error }
type TxVersionMain ¶
type TxVersionMain struct { }
func (*TxVersionMain) CheckCoinbaseArbitratorsReward ¶
func (v *TxVersionMain) CheckCoinbaseArbitratorsReward(coinbase *types.Transaction, rewardInCoinbase common.Fixed64) error
func (*TxVersionMain) CheckCoinbaseMinerReward ¶
func (v *TxVersionMain) CheckCoinbaseMinerReward(tx *types.Transaction, totalReward common.Fixed64) error
func (*TxVersionMain) CheckOutputPayload ¶
func (v *TxVersionMain) CheckOutputPayload(txType types.TransactionType, output *types.Output) error
func (*TxVersionMain) CheckOutputProgramHash ¶
func (v *TxVersionMain) CheckOutputProgramHash(programHash common.Uint168) error
func (*TxVersionMain) CheckTxHasNoPrograms ¶
func (v *TxVersionMain) CheckTxHasNoPrograms(tx *types.Transaction) error
func (*TxVersionMain) CheckVoteProducerOutputs ¶
func (*TxVersionMain) GetVersion ¶
func (v *TxVersionMain) GetVersion() byte
type VersionInfo ¶
Click to show internal directories.
Click to hide internal directories.