fix(block-chain): improve description of data

This commit is contained in:
davhojt 2022-05-05 12:05:37 +01:00
parent ff3f9be5f9
commit 0d2116bbec
No known key found for this signature in database
GPG Key ID: C8C3C515E7AF0D2D
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ A block must have the following properties:
- `index`
- `hash`: a computed hash using the `hashCode` function provided. You will need to pass it a concatenation of the block's `index`, the previous block's `hash` and the block's stringified `data`.
- `data`: any valid JSON object.
- `data`: any valid object.
- `prev`: the previous block.
- `chain`: a function that accepts `data` as an argument, and creates the next block with it.