Commit Graph

24 Commits

Author SHA1 Message Date
egglang b317e41769 Fixed issue #65. 2018-02-08 21:08:09 +09:00
Daniel van Flymen 250a01c83e
Merge pull request #31 from floscha/schemeless-url
Accept URLs without scheme (also includes #18 and #28)
2018-01-26 12:12:46 -05:00
Florian Schäfer 760317387c Remove type hint causing CI build to fail 2018-01-24 12:08:59 +01:00
Daniel van Flymen 1ebdb59beb
Merge branch 'master' into master 2018-01-24 00:02:07 -05:00
Daniel van Flymen a245174c24 Fix tests 2018-01-23 23:58:09 -05:00
Daniel van Flymen 62772084b9
Merge pull request #59 from hasanmehmood/fix-Docstring
update Docstring for method proof_of_work, remove duplication
2018-01-23 18:51:06 -05:00
Daniel van Flymen 926c895953
Merge branch 'master' into master 2018-01-23 18:49:27 -05:00
Hassan Mehmood 93969fc8e7 update Docstring for method proof_of_work, remove duplication 2018-01-11 16:56:53 +05:00
Shuhei Kitagawa 36d30167cd change to user last_block instead of self.chain[-1] 2018-01-11 09:31:24 +09:00
David W Grossman 877af0d375
Merge branch 'master' into master 2018-01-02 13:57:03 -05:00
Florian Schäfer 3064d88432
Merge branch 'master' into schemeless-url 2017-11-22 18:29:58 +01:00
Daniel van Flymen a864c6aef4 Fix major bug 2017-11-18 12:49:29 -05:00
Daniel van Flymen d02ce03dde Clean imports 2017-11-12 16:06:02 -05:00
Daniel van Flymen 3fa90ff8ba Remove Type Annotations
I have some reasons for this, but could be swayed to keep them:

- For folks who are learning, it tends to get in the way—there are way
too many questions about this.
- It doesn’t bring much value if there are reasonable tests.
- Not many folks are using `mypy` before run time.
2017-11-12 15:32:10 -05:00
Daniel van Flymen 5c6f5109c6
Merge pull request #19 from rbalazs/master
Fix of type errors
2017-11-01 11:32:03 -04:00
Daniel van Flymen b1a8a34662 New block needs the previous hash 2017-10-30 00:51:55 -04:00
Florian Schäfer f50bd347e0 Accept URLs without scheme (also includes #18 and #28) 2017-10-28 13:29:35 +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
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
massa142 a26be06080 Add type hints 2017-10-05 18:20:56 +09:00
mbeigel 5f25d92be6 Add option to choose port from command line 2017-09-30 18:07:06 -04:00
Daniel van Flymen 94d6f9dfda Add Full Blockchain 2017-09-24 15:40:01 -04:00