예제 #1
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;
        }
예제 #2
0
        public static void ImportWallet()
        {
            if (!File.Exists(Epicoin.Walletfile))
            {
                return;
            }
            string wa = File.ReadAllText(Epicoin.Walletfile);
            Wallet w  = Serialyze.Unserialize <Wallet>(wa);

            Wallet = w;
        }