Spaces:
Runtime error
Runtime error
Update blockchain.py
Browse files- blockchain.py +3 -7
blockchain.py
CHANGED
|
@@ -64,13 +64,9 @@ class Blockchain:
|
|
| 64 |
return block
|
| 65 |
def print_previous_block(self):
|
| 66 |
return self.chain[-1]
|
| 67 |
-
def new_transaction(self,
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
'recipient': recipient,
|
| 71 |
-
'amount': amount
|
| 72 |
-
}
|
| 73 |
-
self.pending_transactions.append(transaction)
|
| 74 |
def proof_of_work(self, previous_proof):
|
| 75 |
new_proof = 1
|
| 76 |
check_proof = False
|
|
|
|
| 64 |
return block
|
| 65 |
def print_previous_block(self):
|
| 66 |
return self.chain[-1]
|
| 67 |
+
def new_transaction(self, block):
|
| 68 |
+
|
| 69 |
+
self.pending_transactions.append(block)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
def proof_of_work(self, previous_proof):
|
| 71 |
new_proof = 1
|
| 72 |
check_proof = False
|