Browse Source

Add comments for all BlockSubTypes

xno
codesoap 9 months ago
parent
commit
8835d4f53b
  1. 5
      block.go

5
block.go

@ -23,8 +23,13 @@ var ErrWorkMissing = fmt.Errorf("work is missing") @@ -23,8 +23,13 @@ var ErrWorkMissing = fmt.Errorf("work is missing")
type BlockSubType int64
const (
// SubTypeReceive denotes blocks which raise the balance.
SubTypeReceive BlockSubType = iota
// SubTypeChange denotes blocks which change the representative.
SubTypeChange
// SubTypeSend denotes block which lower the balance.
SubTypeSend
)

Loading…
Cancel
Save