Commit Graph

72 Commits

Author SHA1 Message Date
Florian Schäfer 572a70bbed Build Dockerfile using local code instead of pulling the GitHub repo 2017-10-28 13:27:49 +02:00
Richer Balázs f44f902753 Fix of type errors
Traceback (most recent call last):
  File "blockchain.py", line 12, in <module>
    class Blockchain:
  File "blockchain.py", line 135, in Blockchain
    def last_block(self) -> Dict[str: Any]:
  File "/usr/local/lib/python3.6/typing.py", line 682, in inner
    return func(*args, **kwds)
  File "/usr/local/lib/python3.6/typing.py", line 1106, in __getitem__
    params = tuple(_type_check(p, msg) for p in params)
  File "/usr/local/lib/python3.6/typing.py", line 1106, in <genexpr>
    params = tuple(_type_check(p, msg) for p in params)
  File "/usr/local/lib/python3.6/typing.py", line 374, in _type_check
    raise TypeError(msg + " Got %.100r." % (arg,))
TypeError: Parameters to generic types must be types. Got slice(<class 'str'>, typing.Any, None).
2017-10-16 20:56:31 +02:00
aw3717 b02379d769 fixed type errors 2017-10-15 21:26:31 -06:00
Daniel van Flymen f03d28f8ad Merge pull request #9 from massa142/master
Add type hints
2017-10-14 16:26:52 -04:00
David W Grossman d9f8529cef Corrected bug in proof_of_work: last_hash does not depend on the previous hash of last_block, but instead just on the hash of last_block. Thank you ashleyniemerg 2017-10-08 17:15:52 -04:00
David W Grossman 029350c7e6 Modified valid_proof and proof_of_work to include the hash of the previous block. 2017-10-08 11:59:36 -04:00
Daniel van Flymen 961e2aa2ee Merge pull request #8 from hannah98/master
Dockerfile
2017-10-05 23:13:47 -04:00
massa142 a26be06080 Add type hints 2017-10-05 18:20:56 +09:00
hannah98 94a1e72654 Specified using Docker is optional 2017-10-04 06:59:43 -05:00
hannah98 f04064c456 Update Dockerfile 2017-10-04 06:49:03 -05:00
hannah98 6ce594bf4b Update README.md 2017-10-03 13:01:36 -05:00
hannah98 c8957b0c59 Create Dockerfile 2017-10-03 12:58:10 -05:00
Daniel van Flymen d301492357 Merge pull request #6 from marius92mc/add-pipenv
Add pipenv instead of plain requirements.txt
2017-10-02 13:36:42 -04:00
Marius-Constantin Melemciuc 3bb27e586a Add pipenv instead of plain requirements.txt 2017-10-02 13:04:19 +03:00
Daniel van Flymen 05df765a64 Merge pull request #2 from mbeigel/choose-port
Add option to choose port from command line
2017-10-02 02:43:45 -04:00
mbeigel 79b8df15d3 Updated README on how to specify port number when running server 2017-10-01 16:37:17 -04:00
mbeigel 5f25d92be6 Add option to choose port from command line 2017-09-30 18:07:06 -04:00
Daniel van Flymen dbdf10eac3 Update README.md 2017-09-24 15:44:13 -04:00
Daniel van Flymen 94d6f9dfda Add Full Blockchain 2017-09-24 15:40:01 -04:00
Daniel van Flymen bba847624d Add Requirements 2017-09-24 15:39:57 -04:00
Daniel van Flymen 818cb340f7 Update gitignore 2017-09-24 15:39:51 -04:00
Daniel van Flymen 8a1e6756bd Initial commit 2017-09-24 15:36:36 -04:00