Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
139 |
-
if not
|
140 |
-
add_transaction(
|
|
|
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)
|