fixed type errors

This commit is contained in:
aw3717 2017-10-15 21:26:31 -06:00
parent f03d28f8ad
commit b02379d769
1 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ class Blockchain:
return False
def new_block(self, proof: int, previous_hash: Optional[str]) -> Dict[str, Any]:
def new_block(self, proof: int, previous_hash: Optional[str]=None) -> Dict[str, Any]:
"""
Create a new Block in the Blockchain
@ -132,7 +132,7 @@ class Blockchain:
return self.last_block['index'] + 1
@property
def last_block(self) -> Dict[str: Any]:
def last_block(self) -> Dict[str, Any]:
return self.chain[-1]
@staticmethod