ldhldh commited on
Commit
aaaf4da
1 Parent(s): 24fbd15

Update BlockChain.py

Browse files
Files changed (1) hide show
  1. 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] -= int(data)
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