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;