Exemplo n.º 1
0
 public static void ImportChain()
 {
     if (File.Exists(Epicoin.blockchainfile))
     {
         string chain            = File.ReadAllText(Epicoin.blockchainfile);
         Blockchain.Blockchain c = Serialyze.UnserializeBlockchain(chain);
         Coin = c;
     }
 }
Exemplo n.º 2
0
        public static void ImportChain()
        {
            if (!File.Exists(Epicoin.Blockchainfile))
            {
                return;
            }
            string chain = File.ReadAllText(Epicoin.Blockchainfile);

            Blockchain.Blockchain c = Serialyze.Unserialize <Blockchain.Blockchain>(chain);
            Coin = c;
        }
Exemplo n.º 3
0
 public static void Init()
 {
     Coin = new Blockchain.Blockchain(Wallet.Address[0]);
     Coin.AddBlock(Coin.CreateGenesisBlock());
 }