Now we can use the code in our previous exercise to spot a broken link. Let’s try tampering with the contents of the block and see how that creates a mismatch between hash values.
Instantiate a new Blockchain object called
Add a new block to
my_blockchain and pass in
new_transactions as the argument.
Print out the contents of
my_blockchain to see the new block!
Select the transactions found in
chain attribute. Set the
transactions variable of Block 1 to the string
Now let’s check if the blockchain is still valid by calling the correct method on