From 6eaebb6758b69058ac91f8a1e01bfa47dd0c2689 Mon Sep 17 00:00:00 2001 From: Os-Environment <76887203+Os-Environment@users.noreply.github.com> Date: Sat, 2 Jan 2021 16:44:26 -0600 Subject: [PATCH] Update blockchain.py --- gymcoin/blockchain.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gymcoin/blockchain.py b/gymcoin/blockchain.py index 5feec37..1b98860 100644 --- a/gymcoin/blockchain.py +++ b/gymcoin/blockchain.py @@ -155,7 +155,7 @@ def chainJSONencode(self): blockJSON['prev'] = block.prev; blockJSON['time'] = block.time; blockJSON['nonse'] = block.nonse; - blockJSON['gym'] = block.gym; + blockJSON['os'] = block.os; transactionsJSON = []; @@ -190,7 +190,7 @@ def chainJSONdecode(self, chainJSON): block.hash = blockJSON['hash']; block.prev =blockJSON['prev']; block.nonse = blockJSON['nonse']; - block.gym = blockJSON['gym']; + block.os = blockJSON['os']; chain.append(block); return chain; @@ -218,10 +218,10 @@ def __init__(self, transactions, time, index): self.time = time; self.prev = ''; self.nonse = 0; - self.gym = self.calculateGym(); + self.os = self.calculateOs(); self.hash = self.calculateHash(); - def calculateGym(self): + def calculateOs(self): return "24 hr"; def calculateHash(self): @@ -307,4 +307,4 @@ def signTransaction(self, key, senderKey): self.signature = "made"; #print(key.sign(self.hash, "")); print("made signature!"); - return True; \ No newline at end of file + return True;