Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tko22 authored Oct 16, 2017
1 parent 61e8e50 commit 368ceb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Follows some Bitcoin design principles including a peer-to-peer network, SHA-256
Includes a Command line interface that allows you to view blockchains at different indices and add new blocks. You
can do that 20 times until it automatically quits but you can change that. Control-c to quit.

And unfortunately, everything is stored in memory and is deleted when program quits.
And unfortunately, everything is stored in memory and is deleted when program quits.

## Peer-to-Peer Network
At first, I used WebSockets but a peer-to-peer system would require setting up a WS server and WS clients for each and every node.
Expand All @@ -23,7 +23,7 @@ There can only be one explicit set of blocks in the chain at a given time. If th

So if some other node sends in a new chain that's longer than yours, your chain is replaced.

**Note:** this was a simple implementation and thus, it replaces the entire chain except for the genesis block. For future improvements, each node should check the new chain with other nodes before it is added and entire nodes shouldn't be sent out.
**Note:** this was a simple implementation and thus, it replaces the entire chain except for the genesis block. For future improvements, each node should check the new chain with other nodes before it is added and entire nodes shouldn't be sent out. I didn't have access to other computers in the same network, so the nodes are connected through different ports inside your computer.

## BlockChain Object
#### Private Variables:
Expand Down

0 comments on commit 368ceb5

Please sign in to comment.