예제 #1
0
 public Block(Config config, BlockHeader header, List <Transaction> data)
 {
     if (data == null)
     {
         data = new List <Transaction>();
     }
     Header     = header;
     Data       = data;
     MerkleRoot = (data.Count != 0) ? Merkle.GetMerkleRoot(config, Data) : "Not available due to transaction count.";
 }