To test the program, simply replace txs file that contains all the transactions and run node.py. Or run generate tx.py to create a new txs file.
- Authentic transactions that are resistant to theft
- Open competition amongst nodes to validate transactions
- Detection of double spending
- Use of proof-of-work to raise the cost of running attacks against the network
- Detection of and reaction to forks in the chain
- Three check: Verify the proof-of-work/Verify the prev hash/Validate the transaction in the block
- The first transaction in the transaction pool is the one in genesis block and genesis block is always valid and automatically added to the blockchain. Thus, it has to be valid in its own way when testing.