Spaces:
Running
Running
Update Blockchain.py
Browse files- Blockchain.py +5 -1
Blockchain.py
CHANGED
@@ -19,7 +19,11 @@ class Blockchain:
|
|
19 |
:return: ์๋ก ์์ฑ๋ ๋ธ๋ก
|
20 |
"""
|
21 |
for id, mem in self.user_gpus.items():
|
22 |
-
self.user_wallets
|
|
|
|
|
|
|
|
|
23 |
|
24 |
block = {
|
25 |
'index': len(self.chain) + 1,
|
|
|
19 |
:return: ์๋ก ์์ฑ๋ ๋ธ๋ก
|
20 |
"""
|
21 |
for id, mem in self.user_gpus.items():
|
22 |
+
if id in self.user_wallets:
|
23 |
+
self.user_wallets[id] += mem//2
|
24 |
+
else:
|
25 |
+
self.user_wallets[id] = 10
|
26 |
+
self.user_wallets[id] += mem//2
|
27 |
|
28 |
block = {
|
29 |
'index': len(self.chain) + 1,
|