Plan the carrotcoin launch

This commit is contained in:
2024-03-16 15:56:52 +01:00
parent 53e659fc9d
commit 9204f87c56
2 changed files with 10 additions and 3 deletions

View File

@@ -68,8 +68,13 @@ class Block:
return False
if not self.transaction.is_valid_after_block(prev_block):
return False
elif self.transaction is not None:
return False
else:
if self.transaction is not None:
return False
# check for the correct miner pubkey - which will become public at launch day
h = hashlib.sha256(self.miner_pubkey).hexdigest()
if h != "88023d392db35f2d3936abd0532003ae0a38b4d35e4d123a0fa28c568c7e3e2f":
return False
B_1_difficulty_sum, B_1_timestamp = self.get_difficulty_info(1, blockchain)
B_10_difficulty_sum, B_10_timestamp = self.get_difficulty_info(10, blockchain)
D = B_1_difficulty_sum - B_10_difficulty_sum