16 lines
322 B
Nim
Raw Normal View History

2024-12-10 16:10:12 +01:00
from pkg/mysticeti import CommitteeMember, `==`
import ../basics
2024-12-10 15:47:37 +01:00
import ../transaction
2024-12-10 16:10:12 +01:00
import ../hashing
2024-12-10 15:47:37 +01:00
import ./blockid
export mysticeti.CommitteeMember
2024-12-10 16:10:12 +01:00
export mysticeti.`==`
2024-12-10 15:47:37 +01:00
type Block* = ref object
author*: CommitteeMember
round*: uint64
2024-12-10 16:10:12 +01:00
parents*: seq[BlockId]
2024-12-10 15:47:37 +01:00
transactions*: seq[Transaction]
2024-12-10 16:10:12 +01:00
hash*: ?Hash