python_blockchain_app icon indicating copy to clipboard operation
python_blockchain_app copied to clipboard

timestamp is not included when calculate genesis block

Open u4113057 opened this issue 3 years ago • 2 comments

in node_server.py at line#39 when genesis block is generated timestamp is not included (included as '0') so every genesis block has the same hash

u4113057 avatar Nov 07 '22 06:11 u4113057

That is a good catch, ideally we should include a timestamp while calculating the genesis block.

satwikkansal avatar Nov 10 '22 06:11 satwikkansal

feel free to create a PR for the same if you like :)

satwikkansal avatar Nov 10 '22 06:11 satwikkansal