Spaces:
Runtime error
Runtime error
Update chatchain.py
Browse files- chatchain.py +2 -2
chatchain.py
CHANGED
|
@@ -237,7 +237,7 @@ class MyChainSend:
|
|
| 237 |
'message': message,
|
| 238 |
}
|
| 239 |
transaction = crypt.encrypt_trans(transaction,priv_key)
|
| 240 |
-
self.pending_transactions.append(transaction)
|
| 241 |
def proof_of_work(self, previous_proof):
|
| 242 |
new_proof = 1
|
| 243 |
check_proof = False
|
|
@@ -439,7 +439,7 @@ class MyChainRec:
|
|
| 439 |
}
|
| 440 |
transaction = crypt.encrypt_trans(transaction,pub_key)
|
| 441 |
|
| 442 |
-
self.pending_transactions.append(transaction)
|
| 443 |
def proof_of_work(self, previous_proof):
|
| 444 |
new_proof = 1
|
| 445 |
check_proof = False
|
|
|
|
| 237 |
'message': message,
|
| 238 |
}
|
| 239 |
transaction = crypt.encrypt_trans(transaction,priv_key)
|
| 240 |
+
self.pending_transactions.append(str(transaction))
|
| 241 |
def proof_of_work(self, previous_proof):
|
| 242 |
new_proof = 1
|
| 243 |
check_proof = False
|
|
|
|
| 439 |
}
|
| 440 |
transaction = crypt.encrypt_trans(transaction,pub_key)
|
| 441 |
|
| 442 |
+
self.pending_transactions.append(str(transaction))
|
| 443 |
def proof_of_work(self, previous_proof):
|
| 444 |
new_proof = 1
|
| 445 |
check_proof = False
|