Spaces:
Sleeping
Sleeping
Update Blockchain.py (#4)
Browse files- Update Blockchain.py (ac0d14b302e9776361cd55eb1c69186b148e2ccc)
Co-authored-by: JUNHOLEE <Lanvizu@users.noreply.huggingface.co>
- Blockchain.py +1 -0
Blockchain.py
CHANGED
@@ -12,6 +12,7 @@ class Blockchain:
|
|
12 |
# Genesis ๋ธ๋ก ์์ฑ
|
13 |
self.new_block(previous_hash="1")
|
14 |
|
|
|
15 |
def new_block(self, previous_hash=None):
|
16 |
"""
|
17 |
๋ธ๋ก์ฒด์ธ์ ์๋ก์ด ๋ธ๋ก ์ถ๊ฐ
|
|
|
12 |
# Genesis ๋ธ๋ก ์์ฑ
|
13 |
self.new_block(previous_hash="1")
|
14 |
|
15 |
+
|
16 |
def new_block(self, previous_hash=None):
|
17 |
"""
|
18 |
๋ธ๋ก์ฒด์ธ์ ์๋ก์ด ๋ธ๋ก ์ถ๊ฐ
|