Beispiel #1
0
 private void button10_Click(object sender, EventArgs e)
 {
     if (blockchain.CheckBlocks())
     {
         richTextBox1.Text += "\nBlocks are not coherent\n";
     }
     else if (blockchain.CheckBlocksMerkle())
     {
         richTextBox1.Text += "\nTransactions have been tampered with\n";
     }
     else if (blockchain.CheckTransactionSignature())
     {
         richTextBox1.Text += "\nTransaction signatures have been tampered with\n";
     }
     else
     {
         richTextBox1.Text += "\nBlocks are coherent\n";
     }
 }