Documentation ¶
Index ¶
- func GetSortedKeys(m interface{}) []string
- type TxValidationFlags
- func (obj TxValidationFlags) Flag(txIndex int) peer.TxValidationCode
- func (obj TxValidationFlags) IsInvalid(txIndex int) bool
- func (obj TxValidationFlags) IsSetTo(txIndex int, flag peer.TxValidationCode) bool
- func (obj TxValidationFlags) IsValid(txIndex int) bool
- func (obj TxValidationFlags) SetFlag(txIndex int, flag peer.TxValidationCode)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSortedKeys ¶
func GetSortedKeys(m interface{}) []string
GetSortedKeys returns the keys of the map in a sorted order. This function assumes that the keys are string
Types ¶
type TxValidationFlags ¶ added in v1.0.0
type TxValidationFlags []uint8
TxValidationFlags is array of transaction validation codes. It is used when commiter validates block.
func NewTxValidationFlags ¶ added in v1.0.0
func NewTxValidationFlags(size int) TxValidationFlags
NewTxValidationFlags Create new object-array of validation codes with target size. Default values: valid.
func (TxValidationFlags) Flag ¶ added in v1.0.0
func (obj TxValidationFlags) Flag(txIndex int) peer.TxValidationCode
Flag returns validation code at specified transaction
func (TxValidationFlags) IsInvalid ¶ added in v1.0.0
func (obj TxValidationFlags) IsInvalid(txIndex int) bool
IsInvalid checks if specified transaction is invalid
func (TxValidationFlags) IsSetTo ¶ added in v1.0.0
func (obj TxValidationFlags) IsSetTo(txIndex int, flag peer.TxValidationCode) bool
IsSetTo returns true if the specified transaction equals flag; false otherwise.
func (TxValidationFlags) IsValid ¶ added in v1.0.0
func (obj TxValidationFlags) IsValid(txIndex int) bool
IsValid checks if specified transaction is valid
func (TxValidationFlags) SetFlag ¶ added in v1.0.0
func (obj TxValidationFlags) SetFlag(txIndex int, flag peer.TxValidationCode)
SetFlag assigns validation code to specified transaction
Click to show internal directories.
Click to hide internal directories.