From 15fee2c64d47093d36b0192b95f86465c198f6d7 Mon Sep 17 00:00:00 2001 From: Daxeel Soni Date: Sat, 27 Jan 2018 19:21:24 +0530 Subject: [PATCH 1/7] Blockshell installation instruction updated --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ba3058..ab28056 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ cd blockshell Step 6 - Install blockshell ``` -python setup.py install +pip install --editable . ``` Step 7 - Try "blockshell" command and test installation! From fb3d48069bac53928192bbd43a45fabe2630fee0 Mon Sep 17 00:00:00 2001 From: Daxeel Soni Date: Sat, 27 Jan 2018 20:35:58 +0530 Subject: [PATCH 2/7] Wiki article added --- README.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ab28056..81fc227 100644 --- a/README.md +++ b/README.md @@ -59,13 +59,8 @@ blockshell Output in terminal after calling BlockShell command -## Lanuch BlockShell Web -Step 1 - Start new terminal window, go to cloned directory +## Get Started with BlockShell +Check this article. -Step 2 - Start web.py -``` -python web.py -``` -Step 3 - Go to 127.0.0.1:5000 address in browser and boom! From a26d84e3cbc33a837e405f6d78e735bf8c03a44a Mon Sep 17 00:00:00 2001 From: Daxeel Soni Date: Sat, 27 Jan 2018 21:45:48 +0530 Subject: [PATCH 3/7] Top line added --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 81fc227..9444b96 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +README.md just includes installation guide. You can find detailed guide in this wiki page + # BlockShell A command line utility for learning Blockchain technical concepts likechaining, mining, proof of work etc. @@ -58,9 +60,3 @@ blockshell Output in terminal after calling BlockShell command - -## Get Started with BlockShell -Check this article. - - - From 3b27442721c890c820f7e1dd86ac3ee537313cda Mon Sep 17 00:00:00 2001 From: Daxeel Soni Date: Sun, 28 Jan 2018 11:29:57 +0530 Subject: [PATCH 4/7] Added emojis --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9444b96..867f267 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -README.md just includes installation guide. You can find detailed guide in this wiki page +📖 README.md just includes installation guide. You can find detailed guide in this wiki page # BlockShell A command line utility for learning Blockchain technical concepts likechaining, mining, proof of work etc. @@ -6,7 +6,7 @@ A command line utility for learning Blockchain technical concepts likechaining, -## About +## â„šī¸ About Anyone who wants to understand how blockchain technology works, then BlockShell should be a great start. Because I have created BlockShell keeping blockchain fundamentals in the center of development. With BlockShell you will actually create a tiny blockchain in your system where you can create blocks with data, explore blocks etc. So, by using BlockShell anyone can learn following blockchain concepts, @@ -15,14 +15,14 @@ So, by using BlockShell anyone can learn following blockchain concepts, * Mining * Proof of Work -## BlockShell Web Explorer +## 🌐 BlockShell Web Explorer

BlockShell comes with built-in blockchain explorer by which you can actully see how blocks are mined and what is stored and where.

Latest Mined Blocks | Block Details :------------------------------:|:-------------------------: ![](https://preview.ibb.co/iZa5jG/Screen_Shot_2018_01_25_at_11_25_22_PM.png) | ![](https://preview.ibb.co/cDB0Jb/Screen_Shot_2018_01_25_at_11_25_35_PM.png) -## Installation +## đŸ“Ļ Installation Step 1 - Create project directory ``` mkdir && cd project_name From a897180e1ae54d2fa601f7397a77983101e35486 Mon Sep 17 00:00:00 2001 From: Daxeel Soni Date: Sun, 28 Jan 2018 12:07:39 +0530 Subject: [PATCH 5/7] Added badges and tweet button --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 867f267..1f82126 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ + [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=https%3A%2F%2Ftwitter.com%2Fintent%2Ftweet%3Ftext%3DLearn%20blockchain%2020%20minutes%20-%20https%3A%2F%2Fgithub.com%2Fdaxeel%2Fblockshell) + 📖 README.md just includes installation guide. You can find detailed guide in this wiki page # BlockShell From 6aa5eec11aa107f754e2abdc86e79c4249578c2c Mon Sep 17 00:00:00 2001 From: Daxeel Soni Date: Sun, 28 Jan 2018 12:14:31 +0530 Subject: [PATCH 6/7] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1f82126..9c9036a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ - [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=https%3A%2F%2Ftwitter.com%2Fintent%2Ftweet%3Ftext%3DLearn%20blockchain%2020%20minutes%20-%20https%3A%2F%2Fgithub.com%2Fdaxeel%2Fblockshell) + [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=https%3A%2F%2Ftwitter.com%2Fintent%2Ftweet%3Ftext%3DLearn%20blockchain%2020%20minutes%20-%20https%3A%2F%2Fgithub.com%2Fdaxeel%2Fblockshell) 📖 README.md just includes installation guide. You can find detailed guide in this wiki page From ab402814e49ea4ae7e2cf5ea537e5903d2143b8c Mon Sep 17 00:00:00 2001 From: Daxeel Soni Date: Mon, 29 Jan 2018 17:54:02 +0530 Subject: [PATCH 7/7] Cleaned code --- blockchain/chain.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/blockchain/chain.py b/blockchain/chain.py index e423245..f674761 100644 --- a/blockchain/chain.py +++ b/blockchain/chain.py @@ -3,6 +3,7 @@ import datetime import json from colorama import Fore, Back, Style import time +import sys # index, timestamp, previousHash, blockHash, data @@ -26,6 +27,8 @@ class Block: while self.hash[:difficulty] != "0"*difficulty: self.nonce += 1 self.hash = self.calculateHash() + sys.stdout.write(self.hash) + sys.stdout.flush() endTime = time.time() print Back.BLUE + "[ Info ] Time Elapsed : " + str(endTime - startTime) + " seconds."