Exemple #1
0
        public MPTReadOnlyTrie(UInt256 root, IKVReadOnlyStore store)
        {
            if (store is null)
            {
                throw new System.ArgumentNullException();
            }

            this.rodb = new MPTReadOnlyDb(store);
            if (root is null)
            {
                this.root = HashNode.EmptyNode();
            }
            else
            {
                this.root = new HashNode(root);
            }
        }
Exemple #2
0
 public MPTReadOnlyDb(IKVReadOnlyStore store)
 {
     this.store = store;
 }