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()); }
private void PutToStore(MPTNode node) { mptdb.Put(0xf0, node.Hash.ToArray(), node.Encode()); }