Skip to content

Commit 8b57f1b

Browse files
committed
Applied CR remarks
1 parent e531d78 commit 8b57f1b

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

versioned_docs/version-2.0.0/concepts/serialization/structures.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Account {#serialization-standard-account}
44

5-
An Account is a structure that represented a user on a legacy Casper network. Alongside the Condor protocol release, `Accounts` were replaced with `AddressableEntities` of the type `Account`. The account structure consists of the following fields:
5+
An Account is a structure that represented a user on a legacy Casper network. Alongside the Casper 2.0 protocol release, `Accounts` were replaced with `AddressableEntities` of the type `Account`. The account structure consists of the following fields:
66

77
- [`account_hash`](./types.md#account-hash)
88

@@ -47,10 +47,12 @@ To byte-serialize a `Block` you first need to serialize it's binary prefix and t
4747

4848
## BlockV1 {#block-v1}
4949

50-
This type encapsulates block data that used to be produced in versions of the nodes prior to 2.0.
51-
This type represents a historical block that was produced prior to 2.0
52-
Each block has a globally unique ID, achieved by hashing the contents of the block.
53-
Each block points to its parent. An exception is the first block, which has no parent.
50+
This type:
51+
* encapsulates block data that used to be produced in versions of the nodes prior to 2.0.
52+
* represents a historical block that was produced prior to 2.0
53+
Each block:
54+
* has a globally unique ID, achieved by hashing the contents of the block.
55+
* points to its parent. An exception is the first block, which has no parent.
5456

5557
A block is structurally defined as follows:
5658

@@ -97,7 +99,7 @@ Note that `EraEndV1` is an optional field. Thus the above scheme only applies if
9799

98100
### BlockBodyV1 {#blockbodyV1}
99101

100-
The body portion of a block, prior to the Condor upgrade, is structurally defined as:
102+
The body portion of a block, prior to the Casper 2.0 upgrade, is structurally defined as:
101103

102104
- `proposer`: The PublicKey which proposed this block.
103105
- `deploy_hashes`: Is a vector of hex-encoded hashes identifying Deploys included in this block.
@@ -134,7 +136,7 @@ The header portion of a block, structurally, is defined as follows:
134136
- `body_hash` the hash of the block body. It serializes to the byte representation of the body hash. The serialized buffer of the `body_hash` is 32 bytes long.
135137
- `random_bit` is a boolean needed for initializing a future era. It is serialized as a single byte; true maps to 1, while false maps to 0.
136138
- `accumulated_seed` is a seed needed for initializing a future era. It serializes to the byte representation of the parent Hash. The serialized buffer of the `accumulated_hash` is 32 bytes long.
137-
- `era_end` contains equivocation and reward information to be included in the terminal finalized block. It is an optional field. Thus if the field is set as `None`, it serializes to _0_. The serialization of the other case is described in the `EraEndV1`.
139+
- `era_end` contains equivocation and reward information to be included in the terminal finalized block. It is an optional field. Thus if the field is set as `None`, it serializes to _0_. The serialization of the other case is described in the `EraEndV2`.
138140
- `timestamp` The timestamp from when the block was proposed. It serializes as a single `u64` value. The serialization of a `u64` value is described in the CLValues section.
139141
- `era_id` Era ID in which this block was created. It serializes as a single `u64` value.
140142
- `height` The height of this block, i.e., the number of ancestors. It serializes as a single `u64` value.
@@ -145,7 +147,7 @@ The header portion of a block, structurally, is defined as follows:
145147

146148
### EraEndV2 {#eraendV2}
147149

148-
`EraEndV1` as represented within the block header, is a struct containing four fields.
150+
`EraEndV2` as represented within the block header, is a struct containing four fields.
149151

150152
- `equivocators`: A vector of `PublicKey` listing equivocators for the era.
151153
- `inactive_validators`: A list of inactive validators for the era.

0 commit comments

Comments
 (0)