document slot better

This commit is contained in:
Jacek Sieka 2019-11-27 15:14:20 +01:00
parent e6ae9977b2
commit 63f49eff76
No known key found for this signature in database
GPG Key ID: A1B09461ABB656B8
1 changed files with 4 additions and 7 deletions

View File

@ -169,13 +169,10 @@ type
## blck.state_root == rdata.root ## blck.state_root == rdata.root
BlockSlot* = object BlockSlot* = object
## Unique identifier for a particular fork in the block chain - normally, ## Unique identifier for a particular fork and time in the block chain -
## there's a block for every slot, but in the case a block is not produced, ## normally, there's a block for every slot, but in the case a block is not
## the chain progresses anyway, producing a new state for every slot. ## produced, the chain progresses anyway, producing a new state for every
# ## slot.
# TODO: Isn't this type unnecessary?
# The `BlockRef` stored here already includes the `slot` number as well.
# We should either remove it or write a comment clarifying why it exists.
blck*: BlockRef blck*: BlockRef
slot*: Slot ##\ slot*: Slot ##\
## Slot time for this BlockSlot which may differ from blck.slot when time ## Slot time for this BlockSlot which may differ from blck.slot when time