Spaces:
Running
Running
Update BlockChain.py
Browse files- BlockChain.py +1 -3
BlockChain.py
CHANGED
@@ -59,9 +59,7 @@ class Blockchain:
|
|
59 |
self.user_gpus[id] += int(data)
|
60 |
elif kind == "out":
|
61 |
if id in self.user_gpus:
|
62 |
-
self.user_gpus[id]
|
63 |
-
if self.user_gpus[id] < 0:
|
64 |
-
del(self.user_gpus[id])
|
65 |
|
66 |
return self.last_block['index'] + 1
|
67 |
|
|
|
59 |
self.user_gpus[id] += int(data)
|
60 |
elif kind == "out":
|
61 |
if id in self.user_gpus:
|
62 |
+
del(self.user_gpus[id])
|
|
|
|
|
63 |
|
64 |
return self.last_block['index'] + 1
|
65 |
|