Пример #1
0
 public Block(DateTime timeStamp, string previousHash, Valuation valuation)
 {
     Index        = 0;
     TimeStamp    = timeStamp;
     PreviousHash = previousHash;
     Valuation    = valuation;
 }
Пример #2
0
        public Block CreateGenesisBlock()
        {
            Teacher   teacher   = new Teacher("", "", null, "", "", "");
            Valuation valuation = new Valuation(teacher, 0, "");
            Block     block     = new Block(DateTime.Now, null, valuation);

            return(block);
        }