Exemplo n.º 1
0
 public GenericBlockEntry(T data, String hash, Guid creater)
 {
     RawEntry   = (data != null) ? data : default(T);
     TimeStamp  = getTimeStamp();
     Index      = 0;
     Hash       = hash;
     PrevHash   = "";
     CreateUuid = creater;
     Owners     = new GenericBlockOwnerList(Hash, new GenericBlockOwnerListEntry(Hash, creater, TimeStamp));
 }
Exemplo n.º 2
0
 protected GenericBlockEntry(T data, double timeStamp, ulong index, String prevHash, String hash,
                             Guid creater)
 {
     RawEntry   = (data != null) ? data : default(T);
     TimeStamp  = timeStamp;
     Index      = index;
     Hash       = hash;
     PrevHash   = "";
     CreateUuid = creater;
     Owners     = new GenericBlockOwnerList(Hash, new GenericBlockOwnerListEntry(Hash, creater, TimeStamp));
 }
Exemplo n.º 3
0
        public void setNode(GenericBlockOwnerListEntry entry)
        {
            GenericBlockOwnerList node = new GenericBlockOwnerList(entry.Name, entry);

            setNode(node);
        }