Implement the mining software

This commit is contained in:
2024-03-24 13:09:29 +01:00
parent 2f3216a0c4
commit 825b07bc11
7 changed files with 608 additions and 7 deletions

View File

@@ -23,7 +23,7 @@ def main():
if len(block) != 292:
break
timestamp = int.from_bytes(block[244:252], "big")
time_info = time.strftime("%d.%m.%Y %H:%M.%S", time.localtime(timestamp))
time_info = time.strftime("%d.%m.%Y %H:%M:%S", time.localtime(timestamp))
message = prepare_message(block[148:180])
print(f"[{time_info}] {message}")
except FileNotFoundError: