ldhldh commited on
Commit
92d7e15
1 Parent(s): 0315d84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -135,9 +135,10 @@ def add_transaction(id, kind, data):
135
 
136
  def proof(model_name):
137
  peers = get_peers(model_name)
138
- for p in gpu_add_list:
139
- if not p in peers:
140
- add_transaction(get_id_from_p2p(peer), "out", 0)
 
141
 
142
  def get_coin(id):
143
  c = blockchain.get_user_balance(id)
 
135
 
136
  def proof(model_name):
137
  peers = get_peers(model_name)
138
+ for id in blockchain.user_gpus:
139
+ if not get_p(id) in peers:
140
+ add_transaction(id, "out", 0)
141
+
142
 
143
  def get_coin(id):
144
  c = blockchain.get_user_balance(id)