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); } }
public MPTReadOnlyDb(IKVReadOnlyStore store) { this.store = store; }