Versions in this module Expand all Collapse all v0 v0.2.2 Feb 19, 2019 Changes in this version + func NewHeightVersions(versions map[uint32]VersionInfo) interfaces.HeightVersions + type BlockCheckMethod func(BlockVersion) (bool, bool, error) + type BlockConfirmCheckMethod func(BlockVersion) (bool, bool, error) + type BlockVersion interface + AddDposBlock func(block *types.DposBlock) (bool, bool, error) + AssignCoinbaseTxRewards func(block *types.Block, totalReward common.Fixed64) error + CheckConfirmedBlockOnFork func(block *types.Block) error + GetNextOnDutyArbitrator func(dutyChangedCount, offset uint32) []byte + GetProducersDesc func() ([][]byte, error) + GetVersion func() uint32 + type BlockVersionMain struct + 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 func(TxVersion) error + type TxVersion interface + CheckCoinbaseArbitratorsReward func(coinbase *types.Transaction, rewardInCoinbase common.Fixed64) error + CheckCoinbaseMinerReward func(tx *types.Transaction, totalReward common.Fixed64) error + CheckOutputPayload func(txType types.TransactionType, output *types.Output) error + CheckOutputProgramHash func(programHash common.Uint168) error + CheckTxHasNoPrograms func(tx *types.Transaction) error + CheckVoteProducerOutputs func(outputs []*types.Output, references map[*types.Input]*types.Output, ...) error + GetVersion func() byte + type TxVersionMain struct + 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 struct + CompatibleBlockVersions map[uint32]BlockVersion + CompatibleTxVersions map[byte]TxVersion + DefaultBlockVersion uint32 + DefaultTxVersion byte