예제 #1
0
 public void Put(MPTNode node)
 {
     if (node is HashNode hn)
     {
         throw new System.InvalidOperationException("Means nothing to store HashNode");
     }
     store.Put(node.GetHash().ToArray(), node.Encode());
 }
예제 #2
0
 private void PutToStore(MPTNode node)
 {
     mptdb.Put(0xf0, node.Hash.ToArray(), node.Encode());
 }