Skip to content

Commit

Permalink
docs: balance null if invalid block
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwal-kr committed Apr 21, 2022
1 parent 06c7dbb commit fca5680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/pages/explore.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ As said earlier, this project has got no multiple wallet system. So transactions

### Validation

Whenever a transaction is made, a validation function is fired to ensure that all the blocks before the arriving blocks are valid. The validation function takes two blocks at onece, and hashes the first block and compares the hash to the `previous_hash` field of the second block. This is done for the entire chain, each time a new block is added. If the validation fails, no new transactions can be performed. It also means that as the number of blocks increases, the time taken for the validation function to run also increases. We have addressed this issue by adding something called a `master` block.
Whenever a transaction is made, a validation function is fired to ensure that all the blocks before the arriving blocks are valid. The validation function takes two blocks at onece, and hashes the first block and compares the hash to the `previous_hash` field of the second block. This is done for the entire chain, each time a new block is added. If the validation fails, no new transactions can be performed, and the balance returns 0. It also means that as the number of blocks increases, the time taken for the validation function to run also increases. We have addressed this issue by adding something called a `master` block.

### Master Block

Expand Down

0 comments on commit fca5680

Please sign in to comment.