Created
January 21, 2018 11:37
-
-
Save ssaurel/b24b96a0166093332bf22a7720bbbf89 to your computer and use it in GitHub Desktop.
Our Blockchain in Action on toutsurlebitcoin.fr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fr.toutsurlebitcoin.myblockchain; | |
public class Main1 { | |
public static void main(String[] args) { | |
Blockchain blockchain = new Blockchain(4); | |
blockchain.addBlock(blockchain.newBlock("Tout sur le Bitcoin")); | |
blockchain.addBlock(blockchain.newBlock("Sylvain Saurel")); | |
blockchain.addBlock(blockchain.newBlock("https://www.toutsurlebitcoin.fr")); | |
System.out.println("Blockchain valid ? " + blockchain.isBlockChainValid()); | |
System.out.println(blockchain); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment