Skip to content

Commit bc0a150

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f171519 commit bc0a150

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

blockchain/proof_of_work.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from datetime import datetime, timezone
22
import hashlib
33

4+
45
class Block:
56
def __init__(self, index: int, previous_hash: str, data: str, timestamp: str):
67
self.index = index
@@ -13,5 +14,5 @@ def mine_block(self, difficulty: int) -> None:
1314
pass
1415

1516
@staticmethod
16-
def create_genesis_block() -> 'Block':
17+
def create_genesis_block() -> "Block":
1718
return Block(0, "0", "Genesis Block", datetime.now(timezone.utc).isoformat())

0 commit comments

Comments
 (0)