python-local-blockchain/tests.py

4 lines
217 B
Python

# TODO write following tests:
# 1. Initializing empty blockchain should populate it with genesis block.
# 2. Genesis block should have previous_hash at 0.
# 3. Block proof should always start with {difficulty} zeros.