Skip to main content

Blocks

As you might have suspected, the points in time in a flake are not actually dates, they look a little more like this:

SubjectPredicateObjectTimeOperation
12345Hair ColorRed-9true
12345Birthday1/30/85-9true
12345Fav Nums7-10true
12345Full NameJane Doe-10true
12345Fav Nums28-10true
12345Hair ColorRed-11false
12345Hair ColorBrown-11true
12345Fav Nums101-11true

Transactions that are submitted to the ledger by the same request are atomic. They either all succeed or all fail. That group of transactions is considered a block. Block start with 1, and increase by 1 with each block.

Within each block, individual transactions are given a time, t. t is a more granular notion of time than a block. The order of the ts within a block is the order in which transactions were processed by Fluree.

t is a negative integer, which decreases by one for every transaction. As we see above, there are multiple ts for every block:

Block 2: -9, -10 Block 3: -11

Information like hashes, which ts belong to which block, and what clock time is associated with each block is stored in additional metadata flakes. This is something we'll discuss in a later lesson.

Challenge:

The below two flakes are part of the same block, block 4.

SubjectPredicateObjectTimeOperation
12345Eye ColorGreen-12true
12345FavNums0-13true