Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion simpleCoin/miner.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def mine(a, blockchain, node_pending_transactions):
# ...we reward the miner by adding a transaction
# First we load all pending transactions sent to the node server
NODE_PENDING_TRANSACTIONS = requests.get(MINER_NODE_URL + "/txion?update=" + MINER_ADDRESS).content
NODE_PENDING_TRANSACTIONS = json.loads(NODE_PENDING_TRANSACTIONS)
NODE_PENDING_TRANSACTIONS = json.loads(NODE_PENDING_TRANSACTIONS.decode('utf-8'))
# Then we add the mining reward
NODE_PENDING_TRANSACTIONS.append({
"from": "network",
Expand Down